AliPhysics  9c66e61 (9c66e61)
AliConversionAODBGHandlerRP.h
Go to the documentation of this file.
1 #ifndef __ALICONVERSIONAODBGHANDLERRP_H__
2 #define __ALICONVERSIONAODBGHANDLERRP_H__
3 
4 #include "AliLog.h"
5 #include "TObject.h"
7 #include "TObjArray.h"
8 #include "TList.h"
9 #include <vector>
10 
11 using namespace std;
12 
13 // typedef vector<AliAODConversionPhoton*> AliGammaConversionPhotonVector; // Vector containing photons
14 // typedef vector<AliGammaConversionPhotonVector> AliGammaConversionBGEventVector; // Event contains vector of gammas (AliConversionPhotons)
15 // typedef vector<AliGammaConversionBGEventVector> AliGammaConversionMultiplicityVector; // Multiplicity classes containing event vectors
16 // typedef vector<AliGammaConversionMultiplicityVector> AliGammaConversionBGVector; // z vertex position ...
17 typedef vector<AliAODConversionPhoton*> AliGammaConversionPhotonVector; // Vector containing photons
18 typedef vector<AliGammaConversionPhotonVector> AliGammaConversionBGEventVector; // Event contains vector of gammas (AliConversionPhotons)
19 typedef vector<AliGammaConversionBGEventVector> AliGammaConversionVertexPositionVector; // z vertex position ...
20 typedef vector<AliGammaConversionVertexPositionVector> AliGammaConversionBGVector; // RP angle
21 
22 
23 
25 
26  public:
27 
28  AliConversionAODBGHandlerRP ( Bool_t IsHeavyIon=kFALSE,
29  Bool_t UseChargedTrackMult=kTRUE,
30  Int_t NEvents=10 );
31 
32  virtual ~AliConversionAODBGHandlerRP();
33 
34  Int_t GetRPBinIndex (Double_t psi) const;
35  Int_t GetZBinIndex ( Double_t z ) const;
36  Int_t GetMultiplicityBinIndex ( Int_t mult ) const;
37  void Initialize ();
38  Bool_t FindBins ( TObjArray * const eventGammas,
39  AliVEvent *fInputEvent,
40  Int_t &psibin,
41  Int_t &zbin);
42  Bool_t FindBins ( TList * const eventGammas,
43  AliVEvent *fInputEvent,
44  Int_t &psibin,
45  Int_t &zbin);
46 
47 
48  AliGammaConversionPhotonVector* GetBGGoodGammas ( TObjArray * const eventGammas,
49  AliVEvent *fInputEvent,
50  Int_t event );
51  AliGammaConversionPhotonVector* GetBGGoodGammas ( TList * const eventGammas,
52  AliVEvent *fInputEvent,
53  Int_t event );
54  void AddEvent ( TObjArray * const eventGammas,
55  AliVEvent *fInputEvent );
56  void AddEvent ( TList * const eventGammas,
57  AliVEvent *fInputEvent );
58  Int_t GetNBGEvents ()const { return fNEvents ;} // Size of the Pool (20)
59  Int_t GetNBGEvents ( TObjArray * const eventGammas,
60  AliVEvent *fInputEvent );
61  Int_t GetNBGEvents ( TList * const eventGammas,
62  AliVEvent *fInputEvent );
63  Int_t GetNRPBins ()const { return fNBinsRP ;}
64  Int_t GetNZBins ()const { return fNBinsZ ;}
65  Int_t GetNMultiplicityBins ()const { return fNBinsMultiplicity ;}
66 
67  private:
68  Bool_t fIsHeavyIon; // flag for heavy ion
69  Bool_t fUseChargedTrackMult; // flag for multiplicity switch
70  Int_t fNEvents; // number of events
73  Int_t fNBinsRP; //n RP bins
74  Int_t fNBinsZ; //n z bins
75  Int_t fNBinsMultiplicity; //n bins multiplicity
80 // AliGammaConversionBGVector fBGPool; //background events
81 
84 
85  ClassDef(AliConversionAODBGHandlerRP,1);
86 
87 };
88 #endif
Double_t * fBinLimitsArrayZ
bin limits RP array
double Double_t
Definition: External.C:58
vector< AliGammaConversionVertexPositionVector > AliGammaConversionBGVector
int Int_t
Definition: External.C:63
Double_t * fBinLimitsArrayMultiplicity
bin limits z array
vector< AliGammaConversionPhotonVector > AliGammaConversionBGEventVector
AliGammaConversionBGVector fBGEvents
bin limit multiplicity array
vector< AliGammaConversionBGEventVector > AliGammaConversionVertexPositionVector
bool Bool_t
Definition: External.C:53
vector< AliAODConversionPhoton * > AliGammaConversionPhotonVector