]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/PHOSTasks/PHOSCalib/AliCaloPhotonC.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGGA / PHOSTasks / PHOSCalib / AliCaloPhotonC.h
CommitLineData
450dbb9c 1#ifndef ALICALOPHOTONC_H
2#define ALICALOPHOTONC_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5/* $Id: $ */
6
7//_________________________________________________________________________
8// Class to fill two-photon invariant mass hisograms
9// to be used to extract pi0 raw yield.
10//
11//-- Author: Dmitri Peressounko (RRC "KI")
12// This class contains all (minimal) necessary information about photon to
13// calculate invarint mass distr for pi0
14// and for tagging and isolation analysis
15
16
17#include "TLorentzVector.h"
18
19class AliCaloPhotonC :public TLorentzVector{
20
21 public:
22
23 AliCaloPhotonC() ;
24 AliCaloPhotonC(Double_t px,Double_t py,Double_t pz,Double_t E) ;
25 ~AliCaloPhotonC(){}
26
27 const TLorentzVector * GetMomV2()const{return &fMomV2;}
28 Double_t EMCx(void)const {return fX;}
29 Double_t EMCy(void)const {return fY;}
30 Double_t EMCz(void)const {return fZ;}
31 Int_t Module(void)const{return fModule;}
32 Int_t DistToBad()const {return fBadDist ;}
33 Int_t GetNCells()const { return fNCells ;}
34
35 Bool_t IsDispOK(void)const {return fDisp;}
36 Bool_t IsTOFOK(void)const {return fTof;}
37 Bool_t IsCPVOK(void)const {return fCpv;}
38 Bool_t IsCPV2OK(void)const {return fCpv2;}
39 Bool_t IsIsolated(void)const{return fIsIsolated ;}
40 Bool_t IsTagged(void) const{return fIsTagged ;} //check if this photon is tagged
41 Bool_t IsTagged(Int_t i,Int_t k) const{return fIsTagged_reg[i][k] ;} //check if this photon is tagged
42 Bool_t IsPIDOK(const Int_t ipid) const ;
43 Bool_t IsPhoton()const {return fIsPhoton ;} //check if this particle is indeed photon (this bit is set with MC stack info
44 Int_t IsConvertedPartner(){ if(fConvertedPartner == 1) return 1; else return 0; }
45//ConvertedPair bit is set for events when photon's FirstMother is not e+/e- but pi0, but after pi0 decayed
46//there is conversion of one or both of the photons and results of their conversion are registered by PHOS.
47//This process is marked as tagged photons but actually the energy of photons is changed and pi0 can't be
48//correctly found.
49 Int_t IsConverted(){ if(fConverted == 1) return 1; else return 0; }
50//Converted bit is set if this photon originate from e+/e- conversion on medium
51 Int_t IsPi0Decay(){ if(fPi0Decayflag == 1) return 1; else return 0; }
52//Pi0Decayflag is set if this photon originate from pi0 decay
53 void Pi0Decay(Int_t flag){ fPi0Decayflag=flag; }
54 void Pi0Id(Int_t id){ fPi0Id=id; }
55//Id of pi0 from which this photon is decayed (to check if 2 photons originate from the same pi0 or not)
56
57
58 void SetMomV2(TLorentzVector * p){fMomV2=(*p);}
59 void SetNCells(Int_t n){fNCells=n;}
60 void SetConverted(Int_t flag){ fConverted=flag; }
61 Int_t ComparePi0Ids( AliCaloPhotonC *phot) { if(AliCaloPhotonC::fPi0Id!=0 && (*phot).fPi0Id !=0 && AliCaloPhotonC::fPi0Id == (*phot).fPi0Id) return 1; else return 0; }
62 void SetConvertedPartner(Int_t flag){ fConvertedPartner=flag; }
63 void SetPhoton(Int_t flag){ fIsPhoton=flag; }
64 void SetDispBit(Bool_t chi2){fDisp = chi2 ;}
65 void SetTOFBit(Bool_t tof){fTof = tof ;}
66 void SetCPVBit(Bool_t cpv){fCpv = cpv; }
67 void SetCPVBit2(Bool_t cpv){fCpv2 = cpv; }
68 void SetPCAPID(Bool_t pca){fPCA = pca;}
69 void SetTrig(Bool_t trig){fTrig=trig;}
70 void SetEMCx(Double_t x){fX = x ;}
71 void SetEMCy(Double_t y){fY = y ;}
72 void SetEMCz(Double_t z){fZ = z ;}
73 void SetModule(Int_t mod){fModule = mod ;}
74 void SetDistToBad(Int_t dist){fBadDist=dist;}
75 void SetTagged(Bool_t bit){fIsTagged=bit;}
76 void SetTagged(Bool_t bit,Int_t i,Int_t k){fIsTagged_reg[i][k]=bit;}
77 void SetIsolated(Bool_t bit){fIsIsolated=bit;}
78 void SetPartnerPt(Double_t pt){fPartnerPt=pt;}
79 void SetPrimary(Int_t label){fPrimary=label;}
80
81 void SetLambdas(Double_t l1,Double_t l2){fLambda0=l1; fLambda1=l2;}
82 Double_t GetLambda1(void){return fLambda0;}
83 Double_t GetLambda2(void){return fLambda1;}
84
85 Int_t GetPrimary(){return fPrimary;}
86 Double_t GetPartnerPt(){return fPartnerPt;}
87private:
88 TLorentzVector fMomV2 ; //Alternative momentum
89 Bool_t fDisp ; //Dispersion bit
90 Bool_t fTof ; //TOF bit
91 Bool_t fCpv ; //Charged bit
92 Bool_t fCpv2 ; //Strict Charged bit
93 Bool_t fPCA ; //Principal Component Analysis bit
94 Bool_t fTrig ; //If this photon fired trigger
95 Bool_t fIsTagged; //If it is tagged
96 Bool_t fIsTagged_reg[10][20]; //If it is tagged
97 Bool_t fIsIsolated ; //it is isolated
98 Bool_t fIsPhoton; //If it is really photon or not
99 Double_t fX ; //Cluster coordinates in ALICE ref system
100 Double_t fY ; //Cluster coordinates in ALICE ref system
101 Double_t fZ ; //Cluster coordinates in ALICE ref system
102 Double_t fLambda0 ;
103 Double_t fLambda1 ;
104 Int_t fModule ; //Module number
105 Int_t fBadDist ; //Distance to bad module in module units
106 Int_t fNCells ; //Number of cells in cluster
107 Int_t fPi0Decayflag; //if this photon is from pi0 decay (from simulation)
108 Int_t fPi0Id;
109 Int_t fConverted; //If this photon originated from convertion on material (i.e. its primary is electron)
110 Int_t fConvertedPartner;
111 Double_t fPartnerPt;
112 Int_t fPrimary; //Primary label
113
114 ClassDef(AliCaloPhotonC,1)
115
116};
117
118#endif // #ifdef ALICALOPHOTON_H
119
120