AliPhysics  aaf9c62 (aaf9c62)
AliGammaConversionAODBGHandler.h
Go to the documentation of this file.
1 //-*- Mode: C++ -*-
2 #ifndef ALIGAMMACONVERSIONAODBGHANDLER_H
3 #define ALIGAMMACONVERSIONAODBGHANDLER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
8 //---------------------------------------------
9 // Class for handling of background calculation
10 //---------------------------------------------
12 
13 #include <vector>
14 
15 
16 // --- ROOT system ---
17 #include <TObject.h>
18 #include "AliKFParticle.h"
19 #include "AliAODConversionPhoton.h"
20 #include "AliAODConversionMother.h"
21 #include "TClonesArray.h"
22 #include "AliESDVertex.h"
23 
24 typedef std::vector<AliAODConversionPhoton*> AliGammaConversionAODVector;
25 typedef std::vector<AliAODConversionMother*> AliGammaConversionMotherAODVector;
26 
28 
29  public:
35  };
36 
38 
39  typedef std::vector<AliGammaConversionAODVector> AliGammaConversionBGEventVector;
40  typedef std::vector<AliGammaConversionBGEventVector> AliGammaConversionMultipicityVector;
41  typedef std::vector<AliGammaConversionMultipicityVector> AliGammaConversionBGVector;
42 
43  typedef std::vector<AliGammaConversionMotherAODVector> AliGammaConversionMotherBGEventVector;
44  typedef std::vector<AliGammaConversionMotherBGEventVector> AliGammaConversionMotherMultipicityVector;
45  typedef std::vector<AliGammaConversionMotherMultipicityVector> AliGammaConversionMotherBGVector;
46 
47 
48  AliGammaConversionAODBGHandler(); //constructor
49  AliGammaConversionAODBGHandler(Int_t binsZ,Int_t binsMultiplicity,Int_t nEvents); // constructor
50  AliGammaConversionAODBGHandler(Int_t collisionSystem,Int_t centMin,Int_t centMax,Int_t nEvents, Bool_t useTrackMult, Int_t mode,Int_t binsZ, Int_t binsMultiplicity);
53  virtual ~AliGammaConversionAODBGHandler(); //virtual destructor
54 
55  void Initialize(Double_t * const zBinLimitsArray, Double_t * const multiplicityBinLimitsArray);
56 
57  Int_t GetZBinIndex(Double_t z) const;
58 
60 
61  Int_t GetNBackgroundEventsInBuffer(Int_t binz, int binMult) const;
62 
63  void AddEvent(TList* const eventGammas, Double_t xvalue,Double_t yvalue,Double_t zvalue, Int_t multiplicity, Double_t epvalue = -100);
64  void AddMesonEvent(TList* const eventMothers, Double_t xvalue,Double_t yvalue,Double_t zvalue, Int_t multiplicity, Double_t epvalue = -100);
65  void AddMesonEvent(const std::vector<AliAODConversionMother> &eventMother, Double_t xvalue, Double_t yvalue, Double_t zvalue, Int_t multiplicity, Double_t epvalue = -100);
66  void AddElectronEvent(TClonesArray* const eventENeg, Double_t zvalue, Int_t multiplicity);
67 
68  Int_t GetNBGEvents()const {return fNEvents;}
69 
70  // Get BG photons
72 
73  // Get BG mesons
75 
76  // Get BG electron
77  AliGammaConversionAODVector* GetBGGoodENeg(Int_t event, Double_t zvalue, Int_t multiplicity);
78 
79  void PrintBGArray();
80 
81  GammaConversionVertex * GetBGEventVertex(Int_t zbin, Int_t mbin, Int_t event){return &fBGEventVertex[zbin][mbin][event];}
82 
84 
85  private:
86 
87  Int_t fNEvents; // number of events
94  Int_t fNBinsZ; //n z bins
95  Int_t fNBinsMultiplicity; //n bins multiplicity
98  AliGammaConversionBGVector fBGEvents; // photon background events
99  AliGammaConversionBGVector fBGEventsENeg; // electron background electron events
100  AliGammaConversionMotherBGVector fBGEventsMeson; // neutral meson background events
101 
103 };
104 #endif
double Double_t
Definition: External.C:58
GammaConversionVertex * GetBGEventVertex(Int_t zbin, Int_t mbin, Int_t event)
std::vector< AliGammaConversionBGEventVector > AliGammaConversionMultipicityVector
std::vector< AliGammaConversionMotherMultipicityVector > AliGammaConversionMotherBGVector
Int_t GetNBackgroundEventsInBuffer(Int_t binz, int binMult) const
GammaConversionVertex *** fBGEventVertex
prob per bin
void AddMesonEvent(TList *const eventMothers, Double_t xvalue, Double_t yvalue, Double_t zvalue, Int_t multiplicity, Double_t epvalue=-100)
AliGammaConversionAODVector * GetBGGoodENeg(Int_t event, Double_t zvalue, Int_t multiplicity)
AliGammaConversionBGVector fBGEvents
bin limit multiplicity array
std::vector< AliGammaConversionMotherBGEventVector > AliGammaConversionMotherMultipicityVector
AliGammaConversionAODBGHandler & operator=(const AliGammaConversionAODBGHandler &g)
std::vector< AliAODConversionPhoton * > AliGammaConversionAODVector
int Int_t
Definition: External.C:63
void AddEvent(TList *const eventGammas, Double_t xvalue, Double_t yvalue, Double_t zvalue, Int_t multiplicity, Double_t epvalue=-100)
std::vector< AliAODConversionMother * > AliGammaConversionMotherAODVector
void AddElectronEvent(TClonesArray *const eventENeg, Double_t zvalue, Int_t multiplicity)
void Initialize(Double_t *const zBinLimitsArray, Double_t *const multiplicityBinLimitsArray)
std::vector< AliGammaConversionMotherAODVector > AliGammaConversionMotherBGEventVector
Double_t nEvents
plot quality messages
Int_t mode
Definition: anaM.C:41
Double_t centMax
Int_t ** fBGEventMesonCounter
bg electron counter
AliGammaConversionAODVector * GetBGGoodV0s(Int_t zbin, Int_t mbin, Int_t event)
Double_t * fBinLimitsArrayMultiplicity
bin limits z array
AliGammaConversionMotherAODVector * GetBGGoodMesons(Int_t zbin, Int_t mbin, Int_t event)
std::vector< AliGammaConversionAODVector > AliGammaConversionBGEventVector
bool Bool_t
Definition: External.C:53
std::vector< AliGammaConversionMultipicityVector > AliGammaConversionBGVector
Double_t centMin
AliGammaConversionMotherBGVector fBGEventsMeson