FairRoot/PandaRoot
PndKFParticleFinderPID.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 //-----------------------------------------------------------
3 
4 #ifndef PndKFParticleFinderPID_HH
5 #define PndKFParticleFinderPID_HH
6 
7 #include "FairTask.h"
8 
9 #include "TString.h"
10 
11 #include <vector>
12 
13 class TClonesArray;
14 class TFile;
15 class TObject;
16 
17 class PndKFParticleFinderPID : public FairTask {
18  public:
19 
20  // Constructors/Destructors ---------
21  PndKFParticleFinderPID(const char* name = "PndKFParticleFinderPID", Int_t iVerbose = 0);
23 
27 
28  virtual InitStatus Init();
29  virtual void Exec(Option_t* opt);
30  virtual void Finish();
31 
32  void SetPIDMode(int mode) { fPIDMode = mode; }
33  void UseNoPID() { fPIDMode = 0; }
34  void UseMCPID() { fPIDMode = 1; }
35  void UseRecoPID() { fPIDMode = 2; }
36  const std::vector<int>& GetPID() const { return fPID; }
37 
38  private:
39 
40  void SetMCPID();
41  void SetRecoPID();
42 
43  //names of input branches
44  //names of input branches
48 
49  //input branches
50  TClonesArray *fChargedTrackArray;
51  TClonesArray *fNeutralTrackArray;
52  TClonesArray *fMCTrackArray; //mc tracks
53 
54  //PID variables
55  Int_t fPIDMode;
56  std::vector<int> fPID;
57 
59 };
60 
61 #endif
ClassDef(PndKFParticleFinderPID, 1)
const std::vector< int > & GetPID() const
void SetChargedTrackBranchName(const TString &name)
Int_t mode
Definition: autocutx.C:47
PndKFParticleFinderPID(const char *name="PndKFParticleFinderPID", Int_t iVerbose=0)
TString fMCTracksBranchName
Name of the input TCA.
TString fNeutralTrackBranchName
Name of the input TCA.
TString name
void SetNeutralTrackBranchName(const TString &name)
Int_t iVerbose
TClonesArray * fChargedTrackArray
Name of the input TCA with MC tracks.
virtual void Exec(Option_t *opt)
void SetMCTrackBranchName(const TString &name)