CbmRoot
PairAnalysisHF.h
Go to the documentation of this file.
1 #ifndef PAIRANALYSISHF_H
2 #define PAIRANALYSISHF_H
3 
4 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 //#############################################################
8 //# #
9 //# Class PairAnalysisHF #
10 //# #
11 //# Authors: #
12 //# Julian Book, Uni-Frankfurt / Julian.Book@cern.ch #
13 //# #
14 //#############################################################
15 
16 #include <TBits.h>
17 #include <THnBase.h>
18 #include <TNamed.h>
19 #include <TObjArray.h>
20 
21 #include "PairAnalysisHistos.h"
22 #include "PairAnalysisVarManager.h"
23 
24 class PairAnalysisHF : public PairAnalysisHistos {
25 public:
26  enum { kMaxCuts = 20 };
27 
29  PairAnalysisHF(const char* name, const char* title);
30 
31  virtual ~PairAnalysisHF();
32 
33  void Init();
34  Int_t GetNumberOfBins() const;
35  const TObjArray* GetHistArray() const { return &fArrDielHistos; }
36 
37  // functions to define the grid
39  TVectorD* binLimits,
40  Bool_t leg = kFALSE);
41 
42  // functions to fill objects
43  Int_t FindCell(const Double_t* values);
44  void FillClass(const char* histClass, const Double_t* values);
45  // TODO: check, remove, implement
46  void Fill(Int_t pairIndex, const PairAnalysisPair* particle);
47  void Fill(Int_t label1, Int_t label2, Int_t nSignal);
48  void Fill(Int_t Index,
49  Double_t* const valuesPair,
50  Double_t* const valuesLeg1,
51  Double_t* const valuesLeg2);
52 
53  // functions to get and draw histograms
54  void ReadFromFile(const char* file = "histos.root",
55  const char* task = "",
56  const char* config = "");
57 
58 private:
59  TBits* fUsedVars; // list of used variables
60 
61  TObjArray fArrDielHistos; //-> array of papahistos
62  TObjArray* fSignalsMC;
63 
64  UShort_t fVarCuts[kMaxCuts]; // cut variables
65  TBits* fVarCutType; // array to store leg booleans
66  // Bool_t fVarCutType[kMaxCuts]; // array to store leg booleans
67  TObjArray fAxes; // Axis descriptions of the cut binning
68 
71 
72  ClassDef(PairAnalysisHF, 1) // Histogram matrix
73 };
74 
75 
76 #endif
PairAnalysisHF::PairAnalysisHF
PairAnalysisHF(const PairAnalysisHF &c)
PairAnalysisHF::~PairAnalysisHF
virtual ~PairAnalysisHF()
Definition: PairAnalysisHF.cxx:89
PairAnalysisHF::PairAnalysisHF
PairAnalysisHF()
PairAnalysisHF::GetNumberOfBins
Int_t GetNumberOfBins() const
Definition: PairAnalysisHF.cxx:410
PairAnalysisHF::fUsedVars
TBits * fUsedVars
Definition: PairAnalysisHF.h:59
PairAnalysisHF::AddCutVariable
void AddCutVariable(PairAnalysisVarManager::ValueTypes type, TVectorD *binLimits, Bool_t leg=kFALSE)
Definition: PairAnalysisHF.cxx:100
PairAnalysisHF::ReadFromFile
void ReadFromFile(const char *file="histos.root", const char *task="", const char *config="")
Definition: PairAnalysisHF.cxx:140
PairAnalysisPair
Definition: PairAnalysisPair.h:25
PairAnalysisVarManager.h
PairAnalysisHF::GetHistArray
const TObjArray * GetHistArray() const
Definition: PairAnalysisHF.h:35
PairAnalysisHF::fSignalsMC
TObjArray * fSignalsMC
Definition: PairAnalysisHF.h:62
PairAnalysisHF::operator=
PairAnalysisHF & operator=(const PairAnalysisHF &c)
PairAnalysisHF::FindCell
Int_t FindCell(const Double_t *values)
Definition: PairAnalysisHF.cxx:421
PairAnalysisHF::fVarCutType
TBits * fVarCutType
Definition: PairAnalysisHF.h:65
task
@ task
Definition: CbmMvdSensorPlugin.h:22
PairAnalysisHF
Definition: PairAnalysisHF.h:24
PairAnalysisHF::fAxes
TObjArray fAxes
Definition: PairAnalysisHF.h:67
PairAnalysisHF::kMaxCuts
@ kMaxCuts
Definition: PairAnalysisHF.h:26
PairAnalysisHF::FillClass
void FillClass(const char *histClass, const Double_t *values)
Definition: PairAnalysisHF.cxx:122
PairAnalysisHF::Init
void Init()
Definition: PairAnalysisHF.cxx:345
PairAnalysisHF::fVarCuts
UShort_t fVarCuts[kMaxCuts]
array of MC signals to be stupapad
Definition: PairAnalysisHF.h:64
PairAnalysisVarManager::ValueTypes
ValueTypes
Definition: PairAnalysisVarManager.h:71
PairAnalysisHistos.h
PairAnalysisHF::Fill
void Fill(Int_t pairIndex, const PairAnalysisPair *particle)
Definition: PairAnalysisHF.cxx:220
PairAnalysisHF::fArrDielHistos
TObjArray fArrDielHistos
Definition: PairAnalysisHF.h:61