]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/PHOSTasks/PHOS_pp_pi0/AliCaloPhoton.cxx
Removing printout (Davide)
[u/mrichter/AliRoot.git] / PWGGA / PHOSTasks / PHOS_pp_pi0 / AliCaloPhoton.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15 /* $Id$ */
16  
17 //_________________________________________________________________________
18 // Minimal class to store photon infomation for pi0, tagged and isolated photon analysis
19 //
20 //-- Author: Dmitri Peressounko (RRC "KI")
21
22 #include "AliCaloPhoton.h"
23 ClassImp(AliCaloPhoton) 
24 //===============================================
25 AliCaloPhoton::AliCaloPhoton() :
26   TLorentzVector(),
27   fMomV2(),
28   fDisp(0),
29   fDisp2(0),
30   fTof(0),
31   fCpv(0),
32   fCpv2(0),
33   fPCA(0),
34   fTrig(0),
35   fIsTagged(0),
36   fIsIsolated(0),
37   fIsPhoton(0),
38   fUnfolded(0),
39   fModule(0),
40   fBC(0),
41   fBadDist(0),
42   fNCells(0),
43   fFiducialArea(0),
44   fPi0Decayflag(0),
45   fPi0Id(0),
46   fConverted(0),
47   fConvertedPartner(0),
48   fIsolationTag(0),
49   fTagInfo(0),
50   fPrimary(-1),
51   fPrimaryAtVertex(-1),
52   fX(0.),
53   fY(0.),
54   fZ(0.),
55   fLambda0(0.),
56   fLambda1(0.),
57   fTime(0.),
58   fPartnerPt(0),
59   fWeight(1.),
60   fCluster(0x0)
61 {
62
63
64
65 //===============================================
66 AliCaloPhoton::AliCaloPhoton(Double_t px,Double_t py,Double_t pz,Double_t energy):
67   TLorentzVector(px,py,pz,energy),
68   fMomV2(),
69   fDisp(0),
70   fDisp2(0),
71   fTof(0),
72   fCpv(0),
73   fCpv2(0),
74   fPCA(0),
75   fTrig(0),
76   fIsTagged(0),
77   fIsIsolated(0),
78   fIsPhoton(0),
79   fUnfolded(0),
80   fModule(0),
81   fBC(0),
82   fBadDist(0),
83   fNCells(0),
84   fFiducialArea(0),
85   fPi0Decayflag(0),
86   fPi0Id(0),
87   fConverted(0),
88   fConvertedPartner(0),
89   fIsolationTag(0),
90   fTagInfo(0),
91   fPrimary(-1),
92   fPrimaryAtVertex(-1),
93   fX(0.),
94   fY(0.),
95   fZ(0.),
96   fLambda0(0.),
97   fLambda1(0.),
98   fTime(0.),
99   fPartnerPt(0),
100   fWeight(1.),
101   fCluster(0x0)
102 {
103   
104 }
105 //===============================================
106 Bool_t AliCaloPhoton::IsPIDOK(Int_t ipid)const{
107   // returns true if photon satisfies given PID criterium
108   switch(ipid){
109   case 0: return kTRUE ; //No PID at all
110   case 1: return fPCA; //Overall PID calculated in AliPHOSPIDv1
111   case 2: return fDisp ;   //only dispersion cut
112   case 3: return fTof ;    //Only TOF cut
113   case 4: return fCpv ;    //Only CPV cut
114   case 5: return fDisp&&fTof ;  //Dispersion and TOF
115   case 6: return fDisp&&fCpv ;  //Dispersion and CPV
116   case 7: return fTof && fCpv;  //TOF and CPV
117   case 8: return fDisp&&fTof&&fCpv ; // all 3 cuts
118   default: return kFALSE ; //Not known combination
119   }
120 }