FairRoot/PandaRoot
PndPidTestTask.h
Go to the documentation of this file.
1 #ifndef PndPidTestTask_H
2 #define PndPidTestTask_H 1
3 
4 
5 #include "FairTask.h"
6 #include <map>
7 #include <string>
8 #include "TLorentzVector.h"
9 
10 class TClonesArray;
11 class TObjectArray;
12 class TH1F;
13 class TH2F;
14 
16 class PndAnalysis;
17 class RhoCandList;
18 class RhoTuple;
19 
20 
21 class PndPidTestTask : public FairTask
22 {
23 
24  public:
25 
26  // ** Default constructor
28 
29  // ** Destructor
31 
32  // ** Virtual method Init
33  virtual InitStatus Init();
34 
35  // ** Virtual method Exec
36  virtual void Exec(Option_t* opt);
37 
38  virtual void Finish();
39 
41  fClassifier = val;
42  }
43 
45  fSelector = val;
46  }
47 
48  void PrintConfusionMatrix(bool relative = false);
49 
50  std::vector<std::vector <int> > GetConfusionMatrix() const {return fConfusionMatrix;}
51 
52  protected:
53 
54 
55  private:
56  // *** event counter
57  int fEvtCount;
58 
59  std::vector<std::vector <int> > fConfusionMatrix;
60  std::map<int, int> fPdgIndex;
61  std::vector<std::string> fParticleNames;
62 
63 
64 
65  // *** the PndAnalysis object
67 
68 
69  // *** Get parameter containers
70  virtual void SetParContainers();
71 
74  std::vector<RhoCandList*> fCandLists;
75 
76 
78 
79 };
80 
81 #endif
virtual InitStatus Init()
ClassDef(PndPidTestTask, 1)
std::vector< std::vector< int > > GetConfusionMatrix() const
void PrintConfusionMatrix(bool relative=false)
PndAnalysis * fAnalysis
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
std::vector< RhoCandList * > fCandLists
virtual void SetParContainers()
std::map< int, int > fPdgIndex
void SetClassifier(TString val)
std::vector< std::string > fParticleNames
virtual void Finish()
TString fClassifier
void SetSelector(TString val)
virtual void Exec(Option_t *opt)
std::vector< std::vector< int > > fConfusionMatrix