17 #if !defined( __CINT__) || defined(__MAKECINT__)
22 #include "AliEventplane.h"
31 fIsHeavyIon(IsHeavyIon),
32 fUseChargedTrackMult(UseChargedTrackMult),
34 fBGEventCounter(NULL),
38 fNBinsMultiplicity(5+
Int_t(fUseChargedTrackMult)),
39 fBinLimitsArrayRP(NULL),
40 fBinLimitsArrayZ(NULL),
41 fBinLimitsArrayMultiplicity(NULL),
241 AliEventplane *EventPlane = fInputEvent->GetEventplane();
242 if(
fIsHeavyIon ==1)eventplaneangle = EventPlane->GetEventplane(
"V0",fInputEvent,2);
243 else eventplaneangle = 0.0;
246 Double_t vertexz = fInputEvent->GetPrimaryVertex()->GetZ();
250 if(psibin >= 0 && zbin >= 0 ){
262 AliEventplane *EventPlane = fInputEvent->GetEventplane();
263 if(
fIsHeavyIon ==1)eventplaneangle = EventPlane->GetEventplane(
"V0",fInputEvent,2);
264 else eventplaneangle = 0.0;
267 Double_t vertexz=fInputEvent->GetPrimaryVertex()->GetZ();
271 if(psibin >= 0 && zbin >= 0 ){
283 if(eventGammas->GetEntriesFast()==0)
return;
288 if(
FindBins(eventGammas,fInputEvent,psi,z)){
309 for(
Int_t i = 0; i < eventGammas->GetEntriesFast(); i++){
318 if(eventGammas->GetEntries()==0)
return;
323 if(
FindBins(eventGammas,fInputEvent,psi,z)){
344 for(
Int_t i = 0; i < eventGammas->GetEntries(); i++){
357 if(
FindBins(eventGammas,fInputEvent,psibin,zbin)){
358 return &(
fBGEvents[psibin][zbin][event]);
367 if(
FindBins(eventGammas,fInputEvent,psibin,zbin)){
368 return &(
fBGEvents[psibin][zbin][event]);
378 if(
FindBins(eventGammas,fInputEvent,psibin,zbin)){
388 if(
FindBins(eventGammas,fInputEvent,psibin,zbin)){
Double_t * fBinLimitsArrayZ
bin limits RP array
AliGammaConversionPhotonVector * GetBGGoodGammas(TObjArray *const eventGammas, AliVEvent *fInputEvent, Int_t event)
Bool_t FindBins(TObjArray *const eventGammas, AliVEvent *fInputEvent, Int_t &psibin, Int_t &zbin)
Int_t GetNBGEvents() const
Int_t GetZBinIndex(Double_t z) const
AliConversionAODBGHandlerRP(Bool_t IsHeavyIon=kFALSE, Bool_t UseChargedTrackMult=kTRUE, Int_t NEvents=10)
Int_t GetRPBinIndex(Double_t psi) const
Bool_t fUseChargedTrackMult
Int_t GetMultiplicityBinIndex(Int_t mult) const
Double_t * fBinLimitsArrayMultiplicity
bin limits z array
Int_t fNBinsRP
n BG events
vector< AliGammaConversionPhotonVector > AliGammaConversionBGEventVector
AliGammaConversionBGVector fBGEvents
bin limit multiplicity array
vector< AliGammaConversionBGEventVector > AliGammaConversionVertexPositionVector
void AddEvent(TObjArray *const eventGammas, AliVEvent *fInputEvent)
Double_t * fBinLimitsArrayRP
Int_t ** fNBGEvents
bg counter
vector< AliAODConversionPhoton * > AliGammaConversionPhotonVector
virtual ~AliConversionAODBGHandlerRP()