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