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