PandaRoot
PndParticleQATask.h
Go to the documentation of this file.
1 #ifndef PndParticleQATask_H
2 #define PndParticleQATask_H 1
3 
4 #include "FairTask.h"
5 #include <map>
6 #include <string>
7 #include "TLorentzVector.h"
8 #include "TString.h"
9 
10 class TClonesArray;
11 class TObjectArray;
12 class TH1F;
13 class TH2F;
14 
16 class PndAnalysis;
17 class RhoCandList;
18 class RhoTuple;
20 
21 typedef std::vector<TString> StringList;
22 
23 class PndParticleQATask : public FairTask {
24 
25  public:
26  // ** Default constructor
27  PndParticleQATask(bool fastsim = false, bool dumpchrg = true, bool dumpneut = true, bool dumpmc = true, int mode = 0);
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 
40  void SetFastSim(bool fsim = true) { fFastSim = fsim; }
41  void SetPidArrayNames(TString names) { fPidArrayNames = names; }
42 
43  protected:
44  private:
45  // *** event counter
46  int fEvtCount;
47  TString fPidArrayNames;
48 
49  // *** a method
50  int SelectTruePid(PndAnalysis *ana, RhoCandList &l);
51  int SplitString(TString s, TString delim, StringList &toks); // routine to split a string in pieces
52 
53  // *** declare NTuple
54  RhoTuple *nmc; // mc truth
55  RhoTuple *ntp; // tuple to store vars from charged
56  RhoTuple *ntpn; // tuple to store vars from neutrals
57 
58  // *** the PndAnalysis object
59  PndAnalysis *fAnalysis;
60 
61  bool fFastSim;
62  bool fDumpChrg;
63  bool fDumpNeut;
64  bool fDumpMc;
65  int fMode;
66 
67  StringList fPidList;
68 
69  // *** Get parameter containers
70  virtual void SetParContainers();
71 
72  ClassDef(PndParticleQATask, 1);
73 };
74 
75 #endif
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
void SetFastSim(bool fsim=true)
std::vector< TString > StringList
virtual void Finish()
PndParticleQATask(bool fastsim=false, bool dumpchrg=true, bool dumpneut=true, bool dumpmc=true, int mode=0)
void SetPidArrayNames(TString names)