AliPhysics  8b695ca (8b695ca)
AliAODConversionMother.h
Go to the documentation of this file.
1 #ifndef ALIAODCONVERSIONMOTHER_H
2 #define ALIAODCONVERSIONMOTHER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
7 //---------------------------------------------
8 // Class reconstructing the mother particle of conversion gammas
9 //---------------------------------------------
11 
12 //Author Daniel Lohner (Daniel.Lohner@cern.ch)
13 
14 #include "TLorentzVector.h"
16 #include "AliAODConversionPhoton.h"
17 #include "AliKFConversionMother.h"
18 #include "AliKFParticle.h"
19 
21 
22  public:
23 
24  //Default Constructor
26 
27  // Constructor for ESD to AOD Conversion
29 
30  //Constructor Decay Mother Particle
32  // Constructor Mother particle from one photon and one meson
34  // Constructor Mother particle from two mesons
36 
37  //Destructor
38  virtual ~AliAODConversionMother();
39 
40  // MC
42  Int_t GetMCLabel() const {return fMCLabel;}
43  TParticle *GetMCParticle(AliMCEvent *mcEvent);
44  Bool_t IsTrueMeson(AliMCEvent *mcEvent,Int_t pdgcode);
45 
47  void SetChi2(Float_t chi2) {fChi2 = chi2;}
48 
49  //Get the Chi2 of particle
50  Float_t Chi2() const {return fChi2;}
51 
53  void SetLabel1(Int_t label){fLabel[0] = label;}
54  void SetLabel2(Int_t label){fLabel[1] = label;}
55  void SetLabel3(Int_t label){fLabel[2] = label;}
56  void SetLabels(Int_t label1, Int_t label2, Int_t label3 = 0){fLabel[0] = label1; fLabel[1] = label2; fLabel[2] = label3;}
57 
58  Int_t GetLabel(Int_t i) const {return fLabel[i];}
59  Int_t GetLabel1() const {return fLabel[0];}
60  Int_t GetLabel2() const {return fLabel[1];}
61  Int_t GetLabel3() const {return fLabel[2];}
62 
64  Double_t GetProductionX() const {return fProductionVtx[0];}
65  Double_t GetProductionY() const {return fProductionVtx[1];}
66  Double_t GetProductionZ() const {return fProductionVtx[2];}
67 
72  fProductionVtx[0] = point[0];
73  fProductionVtx[1] = point[1];
74  fProductionVtx[2] = point[2];
75  }
76 
80  UChar_t GetMesonQuality() const {return fQuality;}
81 
83 
84  Double_t GetAlpha() const { return fAlpha;}
85 
86  void SetWeight(Double_t weight) {fWeight=weight;}
87  Double_t GetWeight() const {return fWeight;}
88 
90  void CalculateDistanceOfClossetApproachToPrimVtx(const AliVVertex* primVertex);
92 
93  void SetTrueMesonValue(Int_t trueMeson) {fTrueMeson = trueMeson;}
95 
96 
97  private:
109  // 0 : no
110  // 1 : pi0
111  // 2 : eta
112  // 3 : eta'
113  // 4 : omega
114  UChar_t fQuality;
115  // 0: garbage
116  // 1: both photons quality 1
117  // 2: 1 photon quality 1, 1 photon quality 2
118  // 3: 1 photon quality 1, 1 photon quality 3
119  // 4: both photons quality 2
120  // 5: 1 photon quality 2, 1 photon quality 3
121  // 6: both photons quality 3
122 
123  ClassDef(AliAODConversionMother,6)
124 };
125 
126 #endif
Float_t fdcaBetweenPhotons
dca R of meson to primary vertex
Double_t GetProductionRadius() const
void SetLabels(Int_t label1, Int_t label2, Int_t label3=0)
double Double_t
Definition: External.C:58
void SetWeight(Double_t weight)
Float_t fChi2
Production vertex.
Double_t fProductionVtx[3]
Weight for BG Calculation.
Int_t GetLabel(Int_t i) const
UChar_t GetMesonQuality() const
void SetProductionPoint(Double_t *point)
void SetTrueMesonValue(Int_t trueMeson)
Bool_t IsTrueMeson(AliMCEvent *mcEvent, Int_t pdgcode)
Float_t fdcaZPrimVtx
Chi sq of reconstructed mother.
int Int_t
Definition: External.C:63
void SetChi2(Float_t chi2)
Set the Chi2 of reconstructed conversion gamma.
float Float_t
Definition: External.C:68
TParticle * GetMCParticle(AliMCEvent *mcEvent)
UChar_t fQuality
is true meson
void SetLabel1(Int_t label)
Set track or MC labels.
Double_t GetOpeningAngle() const
void DetermineMesonQuality(const AliAODConversionPhoton *y1, const AliAODConversionPhoton *y2)
Float_t GetDCABetweenPhotons() const
Float_t CalculateDistanceBetweenPhotons(const AliAODConversionPhoton *y1, const AliAODConversionPhoton *y2, Double_t prodPoint[3])
Float_t fdcaRPrimVtx
dca Z of meson to primary vertex
Double_t GetProductionZ() const
Double_t GetProductionX() const
Float_t GetDCARMotherPrimVtx() const
Int_t fLabel[3]
dca between the two photons
Double_t GetProductionY() const
Int_t fMCLabel
Labels of the decay photons.
bool Bool_t
Definition: External.C:53
Float_t GetDCAZMotherPrimVtx() const
TString meson
void CalculateDistanceOfClossetApproachToPrimVtx(const AliVVertex *primVertex)