CbmRoot
PairAnalysisCutQA.h
Go to the documentation of this file.
1 #ifndef PAIRANALYSISCUTQA_H
2 #define PAIRANALYSISCUTQA_H
3 //#################################################################
4 //# #
5 //# Class PairAnalysisCutQA #
6 //# PairAnalysis Group of cuts #
7 //# #
8 //# Authors: #
9 //# Julian Book, Uni Ffm / Julian.Book@cern.ch #
10 //# #
11 //#################################################################
12 
13 #include <TH1I.h>
14 #include <TH2I.h>
15 #include <THashList.h>
16 #include <TList.h>
17 #include <TNamed.h>
18 #include <TProfile2D.h>
19 
20 #include "AnalysisFilter.h"
21 
22 class TCollection;
23 
24 class PairAnalysisCutQA : public TNamed {
25 
26 public:
28 
30  PairAnalysisCutQA(const char* name, const char* title);
31 
32  virtual ~PairAnalysisCutQA();
33 
34  void Init();
35  void AddTrackFilterMC(AnalysisFilter* trkFilterMC);
36  void AddTrackFilter(AnalysisFilter* trkFilter);
37  void AddPrePairFilter(AnalysisFilter* pairFilter);
38  void AddTrackFilter2(AnalysisFilter* trkFilter2);
39  void AddPairFilter(AnalysisFilter* pairFilter);
40  void AddEventFilter(AnalysisFilter* eventFilter);
41 
42  void Fill(UInt_t mask, TObject* obj, UInt_t addIdx = 0);
43  void FillAll(TObject* obj, UInt_t addIdx = 0); // { fCutQA->Fill(0); }
44 
45  const THashList* GetQAHistList() const { return &fQAHistList; }
46 
47 
48 private:
49  THashList fQAHistList; //-> list of QA histograms
50  Int_t fNCuts[kNtypes]; // number of cuts
51  const char* fCutNames[20][kNtypes]; // cut names
52  const char* fTypeKeys[kNtypes]; // type names
53 
54 
55  UInt_t GetObjIndex(TObject* obj); // return object index
56 
59 
60  ClassDef(PairAnalysisCutQA, 3) // Simple automatic cut QA
61 };
62 
63 #endif
PairAnalysisCutQA::kTrack
@ kTrack
Definition: PairAnalysisCutQA.h:27
PairAnalysisCutQA::kTrackMC
@ kTrackMC
Definition: PairAnalysisCutQA.h:27
PairAnalysisCutQA::PairAnalysisCutQA
PairAnalysisCutQA(const PairAnalysisCutQA &)
PairAnalysisCutQA::PairAnalysisCutQA
PairAnalysisCutQA()
AnalysisFilter.h
PairAnalysisCutQA::fCutNames
const char * fCutNames[20][kNtypes]
Definition: PairAnalysisCutQA.h:51
PairAnalysisCutQA::GetQAHistList
const THashList * GetQAHistList() const
Definition: PairAnalysisCutQA.h:45
PairAnalysisCutQA::fQAHistList
THashList fQAHistList
Definition: PairAnalysisCutQA.h:49
PairAnalysisCutQA::FillAll
void FillAll(TObject *obj, UInt_t addIdx=0)
Definition: PairAnalysisCutQA.cxx:448
PairAnalysisCutQA::AddPairFilter
void AddPairFilter(AnalysisFilter *pairFilter)
Definition: PairAnalysisCutQA.cxx:304
PairAnalysisCutQA::operator=
PairAnalysisCutQA & operator=(const PairAnalysisCutQA &)
PairAnalysisCutQA::kNtypes
@ kNtypes
Definition: PairAnalysisCutQA.h:27
PairAnalysisCutQA::AddTrackFilterMC
void AddTrackFilterMC(AnalysisFilter *trkFilterMC)
Definition: PairAnalysisCutQA.cxx:261
PairAnalysisCutQA::GetObjIndex
UInt_t GetObjIndex(TObject *obj)
Definition: PairAnalysisCutQA.cxx:519
PairAnalysisCutQA::AddPrePairFilter
void AddPrePairFilter(AnalysisFilter *pairFilter)
Definition: PairAnalysisCutQA.cxx:324
PairAnalysisCutQA::kPair
@ kPair
Definition: PairAnalysisCutQA.h:27
PairAnalysisCutQA::kEvent
@ kEvent
Definition: PairAnalysisCutQA.h:27
PairAnalysisCutQA
Definition: PairAnalysisCutQA.h:24
PairAnalysisCutQA::kTrack2
@ kTrack2
Definition: PairAnalysisCutQA.h:27
PairAnalysisCutQA::kPrePair
@ kPrePair
Definition: PairAnalysisCutQA.h:27
AnalysisFilter
Definition: AnalysisFilter.h:15
PairAnalysisCutQA::AddTrackFilter2
void AddTrackFilter2(AnalysisFilter *trkFilter2)
Definition: PairAnalysisCutQA.cxx:282
PairAnalysisCutQA::AddEventFilter
void AddEventFilter(AnalysisFilter *eventFilter)
Definition: PairAnalysisCutQA.cxx:345
PairAnalysisCutQA::~PairAnalysisCutQA
virtual ~PairAnalysisCutQA()
Definition: PairAnalysisCutQA.cxx:72
PairAnalysisCutQA::fTypeKeys
const char * fTypeKeys[kNtypes]
Definition: PairAnalysisCutQA.h:52
PairAnalysisCutQA::AddTrackFilter
void AddTrackFilter(AnalysisFilter *trkFilter)
Definition: PairAnalysisCutQA.cxx:240
PairAnalysisCutQA::Fill
void Fill(UInt_t mask, TObject *obj, UInt_t addIdx=0)
Definition: PairAnalysisCutQA.cxx:366
PairAnalysisCutQA::fNCuts
Int_t fNCuts[kNtypes]
Definition: PairAnalysisCutQA.h:50
PairAnalysisCutQA::Init
void Init()
Definition: PairAnalysisCutQA.cxx:80