FairRoot/PandaRoot
PndPidIdealFwdOnlyAssociatorTask.h
Go to the documentation of this file.
1 #ifndef PID_IDEALFWDONLYASSOCIATOR_H
2 #define PID_IDEALFWDONLYASSOCIATOR_H
3 
4 // **************************************************************************
5 // Author: Ralf Kliemt (Uni Bonn)
6 //
7 // pid simple classifier
8 // Warning - will use Monte-Carlo information
9 //
10 // Created: 03 Feb. 2012
11 // Modified:
12 //
13 // **************************************************************************
14 
15 #include "TClonesArray.h"
16 #include "FairTask.h"
17 
18 class PndPidCandidate;
19 class PndPidProbability;
20 
21 class PndPidIdealFwdOnlyAssociatorTask : public FairTask {
22 
23 protected:
26 
27  TClonesArray* fPidChargedCand;
28  TClonesArray* fPidNeutralCand;
29  TClonesArray* fPidChargedProb;
30  TClonesArray* fPidNeutralProb;
31  TClonesArray* fMCTrack;
32 
33  void DoPidMatch(PndPidCandidate* pidcand, PndPidProbability* prob); // cheating for each candidate
34 
35 public:
36 
37  virtual void Exec(Option_t * option);
38  virtual InitStatus Init(); //
39 
40  void Register();
41  void Reset();
42 
43  PndPidIdealFwdOnlyAssociatorTask(const char *name, const char *title="Pnd Task");
46 
47  void SetToOnlyOne();
48  void SetVerbose(Bool_t verb) { fVerbose = verb ;};
49 
51  virtual void SetParContainers();
52  virtual void Finish();
53 
55 
56  ClassDef(PndPidIdealFwdOnlyAssociatorTask,1) // PndPidIdealFwdOnlyAssociatorTask
57 
58 };
59 
60 #endif
int fVerbose
Definition: poormantracks.C:24
TClonesArray * fPidChargedProb
PndPidCandidate TCA for neutral particles.
TClonesArray * fPidNeutralProb
PndPidProbability TCA for charged particles.
TString name
void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob)
Monte-Carlo Truth track TCA.
TClonesArray * fPidNeutralCand
PndPidCandidate TCA for charged particles.
TClonesArray * fMCTrack
PndPidProbability TCA for neutral particles.