]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGGA/PHOSTasks/PHOS_pp_pi0/AliCaloPhoton.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGGA / PHOSTasks / PHOS_pp_pi0 / AliCaloPhoton.h
index d49baee635c90f52f70024cd381a201f7efb13de..abcc75ba190bbe988c97fa2a33362357091ec0e9 100644 (file)
@@ -26,80 +26,87 @@ class AliCaloPhoton :public TLorentzVector{
   ~AliCaloPhoton(){} 
 
    const TLorentzVector * GetMomV2()const{return &fMomV2;}
-   Double_t EMCx(void)const {return fX;}
-   Double_t EMCy(void)const {return fY;}
-   Double_t EMCz(void)const {return fZ;}
-   Int_t    Module(void)const{return fModule;}
-   Int_t    GetBC()const{return fBC;}
-   Int_t    DistToBad()const  {return fBadDist ;}
-   Int_t    GetNCells()const { return fNCells ;} 
-   Double_t GetTime(void) const {return fTime ;}
-   void SetTime(Double_t t) {fTime=t ;}
+   Int_t    DistToBad() const {return fBadDist ;}
+   Double_t EMCx(void)  const {return fX;}
+   Double_t EMCy(void)  const {return fY;}
+   Double_t EMCz(void)  const {return fZ;}
+   Int_t    Module(void)const {return fModule;}
+   Int_t    GetBC(void) const {return fBC;}
+   Int_t    GetFiducialArea(void) const {return fFiducialArea ;}
+   Int_t    GetIsolationTag(void) const {return fIsolationTag ;}
+   Double_t GetLambda1(void) const {return fLambda0;}
+   Double_t GetLambda2(void) const {return fLambda1;}
+   Int_t    GetNCells() const { return fNCells ;} 
+   Int_t    GetPrimary()const {return fPrimary;}
+   Int_t    GetPrimaryAtVertex()  const {return fPrimaryAtVertex;}
+   Double_t GetPartnerPt(void)    const {return fPartnerPt;}  
+   Int_t    GetTagInfo(void) const {return fTagInfo;}
+   Double_t GetTime(void)    const {return fTime ;}
+   Double_t GetWeight(void)  const {return fWeight;}
 
-   Bool_t   IsDispOK(void)const {return fDisp;}
-   Bool_t   IsDisp2OK(void)const {return fDisp2;} //stricter cut
-   Bool_t   IsTOFOK(void)const {return fTof;}
-   Bool_t   IsCPVOK(void)const {return fCpv;}
-   Bool_t   IsCPV2OK(void)const {return fCpv2;}
-   Bool_t   IsIsolated(void)const{return fIsIsolated ;}
-   Bool_t   IsTagged(void) const{return fIsTagged ;} //check if this photon is tagged
-   Bool_t   IsTagged(Int_t i,Int_t k) const{return fIsTagged_reg[i][k] ;} //check if this photon is tagged
+   Int_t    IsConvertedPartner() const { if(fConvertedPartner == 1) return 1; else return 0; }
+   Bool_t   IsCPVOK(void)   const {return fCpv;}
+   Bool_t   IsCPV2OK(void)  const {return fCpv2;}
+   Bool_t   IsDispOK(void)  const {return fDisp;}
+   Bool_t   IsDisp2OK(void) const {return fDisp2;} //stricter cut
+   Bool_t   IsIsolated(void)const {return fIsIsolated ;}
+   Bool_t   IsPhoton() const {return fIsPhoton ;} //check if this particle is indeed photon (this bit is set with MC stack info
    Bool_t   IsPIDOK(const Int_t ipid) const ;
-   Bool_t   IsPhoton()const {return fIsPhoton ;} //check if this particle is indeed photon (this bit is set with MC stack info
-   Bool_t   IsntUnfolded()const{return fUnfolded;}
-   Int_t    IsConvertedPartner(){ if(fConvertedPartner == 1) return 1; else return 0; }
-   Bool_t   IsTrig(void)const{ return fTrig ; }
-   Double_t GetWeight(void){return fWeight;}
+   Bool_t   IsTagged(void)  const {return fIsTagged ;} //check if this photon is tagged
+   Bool_t   IsTagged(Int_t i,Int_t k) const {return fIsTagged_reg[i][k] ;} //check if this photon is tagged
+   Bool_t   IsTOFOK(void)   const {return fTof;}
+   Bool_t   IsTrig(void)    const{ return fTrig ; }
+   Bool_t   IsntUnfolded(void)const{return fUnfolded;}
 
    //ConvertedPair bit is set for events when photon's FirstMother is not e+/e- but pi0, but after pi0 decayed
 //there is conversion of one or both of the photons and results of their conversion are registered by PHOS.
 //This process is marked as tagged photons but actually the energy of photons is changed and pi0 can't be
 //correctly found.
-   Int_t IsConverted(){ if(fConverted == 1) return 1; else return 0; }
+   Int_t IsConverted(void) const { if(fConverted == 1) return 1; else return 0; }
 //Converted bit is set if this photon originate from e+/e- conversion on medium
-   Int_t IsPi0Decay(){ if(fPi0Decayflag == 1) return 1; else return 0; }
+   Int_t IsPi0Decay(void) const { if(fPi0Decayflag == 1) return 1; else return 0; }
 //Pi0Decayflag is set if this photon originate from pi0 decay
    void Pi0Decay(Int_t flag){ fPi0Decayflag=flag; }
    void Pi0Id(Int_t id){ fPi0Id=id; }
 //Id of pi0 from which this photon is decayed (to check if 2 photons originate from the same pi0 or not)
 
+   Int_t ComparePi0Ids( AliCaloPhoton *phot) { if(AliCaloPhoton::fPi0Id!=0 && (*phot).fPi0Id !=0 && AliCaloPhoton::fPi0Id == (*phot).fPi0Id) return 1; else return 0; }
 
-   void SetMomV2(TLorentzVector * p){fMomV2=(*p);}
-   void SetNCells(Int_t n){fNCells=n;}
+   void SetBC(Int_t bc){fBC = bc;}
+   void SetCluster(AliVCluster* cluster) { fCluster = cluster; }
    void SetConverted(Int_t flag){ fConverted=flag; }
-   Int_t ComparePi0Ids( AliCaloPhoton *phot) { if(AliCaloPhoton::fPi0Id!=0 && (*phot).fPi0Id !=0 && AliCaloPhoton::fPi0Id == (*phot).fPi0Id) return 1; else return 0; }
    void SetConvertedPartner(Int_t flag){ fConvertedPartner=flag; }
-   void SetPhoton(Int_t flag){ fIsPhoton=flag; }
-   void SetDispBit(Bool_t chi2){fDisp = chi2 ;} 
-   void SetDisp2Bit(Bool_t chi2){fDisp2 = chi2 ;} 
-   void SetTOFBit(Bool_t tof){fTof = tof ;} 
    void SetCPVBit(Bool_t cpv){fCpv = cpv; }
    void SetCPV2Bit(Bool_t cpv){fCpv2 = cpv; }
-   void SetPCAPID(Bool_t pca){fPCA = pca;}
-   void SetTrig(Bool_t trig){fTrig=trig;}
+   void SetDispBit(Bool_t chi2){fDisp = chi2 ;} 
+   void SetDisp2Bit(Bool_t chi2){fDisp2 = chi2 ;} 
+   void SetDistToBad(Int_t dist){fBadDist=dist;} 
    void SetEMCx(Double_t x){fX = x ;} 
    void SetEMCy(Double_t y){fY = y ;} 
    void SetEMCz(Double_t z){fZ = z ;} 
-   void SetModule(Int_t mod){fModule = mod ;} 
-   void SetBC(Int_t bc){fBC = bc;}
-   void SetDistToBad(Int_t dist){fBadDist=dist;} 
-   void SetTagged(Bool_t bit){fIsTagged=bit;}
-   void SetTagged(Bool_t bit,Int_t i,Int_t k){fIsTagged_reg[i][k]=bit;}
+   void SetFiducialArea(Int_t a){fFiducialArea=a ;}
+   void SetIsolationTag(Int_t tag){fIsolationTag=tag ;}
    void SetIsolated(Bool_t bit){fIsIsolated=bit;}
+   void SetLambdas(Double_t l1,Double_t l2){fLambda0=l1; fLambda1=l2;}
+   void SetModule(Int_t mod){fModule = mod ;} 
+   void SetMomV2(TLorentzVector * p){fMomV2=(*p);}
+   void SetNCells(Int_t n){fNCells=n;}
    void SetPartnerPt(Double_t pt){fPartnerPt=pt;}
+   void SetPCAPID(Bool_t pca){fPCA = pca;}
+   void SetPhoton(Int_t flag){ fIsPhoton=flag; }
    void SetPrimary(Int_t label){fPrimary=label;}
+   void SetPrimaryAtVertex(Int_t label){fPrimaryAtVertex=label;}
+   void SetTagged(Bool_t bit){fIsTagged=bit;}
+   void SetTagged(Bool_t bit,Int_t i,Int_t k){fIsTagged_reg[i][k]=bit;}
+   void SetTagInfo(Int_t bits){fTagInfo=bits;}
+   void SetTime(Double_t t) {fTime=t ;}
+   void SetTOFBit(Bool_t tof){fTof = tof ;} 
+   void SetTrig(Bool_t trig){fTrig=trig;}
    void SetUnfolded(Bool_t wasNotUnfolded){fUnfolded=wasNotUnfolded;} 
    void SetWeight(Double_t w){fWeight=w;}
 
-   void SetCluster(AliVCluster* cluster) { fCluster = cluster; }
    AliVCluster* GetCluster() { return fCluster; }
 
-   void SetLambdas(Double_t l1,Double_t l2){fLambda0=l1; fLambda1=l2;}
-   Double_t GetLambda1(void){return fLambda0;}
-   Double_t GetLambda2(void){return fLambda1;}
-
-   Int_t GetPrimary(){return fPrimary;}
-   Double_t GetPartnerPt(){return fPartnerPt;}  
 private:
   AliCaloPhoton(const AliCaloPhoton&); // not implemented
   AliCaloPhoton& operator=(const AliCaloPhoton&);
@@ -117,26 +124,30 @@ private:
   Bool_t    fIsIsolated ; //it is isolated
   Bool_t    fIsPhoton; //If it is really photon or not
   Bool_t    fUnfolded;  //True if was not unfolded
-  Double_t  fX ;        //Cluster coordinates in ALICE ref system 
-  Double_t  fY ;        //Cluster coordinates in ALICE ref system
-  Double_t  fZ ;        //Cluster coordinates in ALICE ref system
-  Double_t  fLambda0 ;  //Short and 
-  Double_t  fLambda1 ;  //Long dispersion axis
-  Double_t  fTime ;     //time of the cluster
   Int_t     fModule ;   //Module number
   Int_t     fBC ;       //Bunch crossing number (BC=0 is main-main collision)
   Int_t     fBadDist ;  //Distance to bad module in module units
   Int_t     fNCells ;   //Number of cells in cluster
+  Int_t     fFiducialArea ; //class of fiducial areas
   Int_t     fPi0Decayflag; //if this photon is from pi0 decay (from simulation)
   Int_t     fPi0Id;
   Int_t     fConverted; //If this photon originated from convertion on material (i.e. its primary is electron)
   Int_t            fConvertedPartner;
+  Int_t     fIsolationTag ;
+  Int_t     fTagInfo ;
+  Int_t     fPrimary;   //Primary entered PHOS
+  Int_t     fPrimaryAtVertex;   //Primary at vertex
+  Double_t  fX ;        //Cluster coordinates in ALICE ref system 
+  Double_t  fY ;        //Cluster coordinates in ALICE ref system
+  Double_t  fZ ;        //Cluster coordinates in ALICE ref system
+  Double_t  fLambda0 ;  //Short and 
+  Double_t  fLambda1 ;  //Long dispersion axis
+  Double_t  fTime ;     //time of the cluster
   Double_t  fPartnerPt;
   Double_t  fWeight ;   //Weight of parent particle
-  Int_t     fPrimary;   //Primary label
   AliVCluster* fCluster; //! Originating Cluster the Photon Candidate is based on
 
-  ClassDef(AliCaloPhoton,6);
+  ClassDef(AliCaloPhoton,7);
 
 };