]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/PHOSTasks/PHOS_pp_pi0/AliCaloPhoton.cxx
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGGA / PHOSTasks / PHOS_pp_pi0 / AliCaloPhoton.cxx
CommitLineData
dfff4b29 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 **************************************************************************/
898da7b3 15/* $Id$ */
dfff4b29 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"
23ClassImp(AliCaloPhoton)
24//===============================================
b7784cea 25AliCaloPhoton::AliCaloPhoton() :
26 TLorentzVector(),
27 fMomV2(),
28 fDisp(0),
2cde7444 29 fDisp2(0),
b7784cea 30 fTof(0),
31 fCpv(0),
2cde7444 32 fCpv2(0),
b7784cea 33 fPCA(0),
34 fTrig(0),
35 fIsTagged(0),
36 fIsIsolated(0),
37 fIsPhoton(0),
2cde7444 38 fUnfolded(0),
b7784cea 39 fModule(0),
80355243 40 fBC(0),
b7784cea 41 fBadDist(0),
42 fNCells(0),
0b9a6a23 43 fFiducialArea(0),
b7784cea 44 fPi0Decayflag(0),
45 fPi0Id(0),
46 fConverted(0),
47 fConvertedPartner(0),
0b9a6a23 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.),
b7784cea 58 fPartnerPt(0),
7063ee4d 59 fWeight(1.),
f8c12091 60 fCluster(0x0)
dfff4b29 61{
62
63
64}
65//===============================================
66AliCaloPhoton::AliCaloPhoton(Double_t px,Double_t py,Double_t pz,Double_t energy):
b7784cea 67 TLorentzVector(px,py,pz,energy),
68 fMomV2(),
69 fDisp(0),
2cde7444 70 fDisp2(0),
b7784cea 71 fTof(0),
72 fCpv(0),
2cde7444 73 fCpv2(0),
b7784cea 74 fPCA(0),
75 fTrig(0),
76 fIsTagged(0),
77 fIsIsolated(0),
78 fIsPhoton(0),
2cde7444 79 fUnfolded(0),
b7784cea 80 fModule(0),
42660c0d 81 fBC(0),
b7784cea 82 fBadDist(0),
83 fNCells(0),
0b9a6a23 84 fFiducialArea(0),
b7784cea 85 fPi0Decayflag(0),
86 fPi0Id(0),
87 fConverted(0),
88 fConvertedPartner(0),
0b9a6a23 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.),
b7784cea 99 fPartnerPt(0),
7063ee4d 100 fWeight(1.),
f8c12091 101 fCluster(0x0)
dfff4b29 102{
103
104}
105//===============================================
106Bool_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}