]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/PHOSTasks/PHOS_pp_pi0/AliCaloPhoton.cxx
1/pT and DCAr/DCAzs + stat. errors added (Attilio)
[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),
29 fTof(0),
30 fCpv(0),
31 fPCA(0),
32 fTrig(0),
33 fIsTagged(0),
34 fIsIsolated(0),
35 fIsPhoton(0),
36 fX(0.),
37 fY(0.),
38 fZ(0.),
39 fModule(0),
40 fBadDist(0),
41 fNCells(0),
42 fPi0Decayflag(0),
43 fPi0Id(0),
44 fConverted(0),
45 fConvertedPartner(0),
46 fPartnerPt(0),
47 fPrimary(0)
dfff4b29 48{
49
50
51}
52//===============================================
53AliCaloPhoton::AliCaloPhoton(Double_t px,Double_t py,Double_t pz,Double_t energy):
b7784cea 54 TLorentzVector(px,py,pz,energy),
55 fMomV2(),
56 fDisp(0),
57 fTof(0),
58 fCpv(0),
59 fPCA(0),
60 fTrig(0),
61 fIsTagged(0),
62 fIsIsolated(0),
63 fIsPhoton(0),
64 fX(0.),
65 fY(0.),
66 fZ(0.),
67 fModule(0),
68 fBadDist(0),
69 fNCells(0),
70 fPi0Decayflag(0),
71 fPi0Id(0),
72 fConverted(0),
73 fConvertedPartner(0),
74 fPartnerPt(0),
75 fPrimary(0)
dfff4b29 76{
77
78}
79//===============================================
80Bool_t AliCaloPhoton::IsPIDOK(Int_t ipid)const{
81 // returns true if photon satisfies given PID criterium
82 switch(ipid){
83 case 0: return kTRUE ; //No PID at all
84 case 1: return fPCA; //Overall PID calculated in AliPHOSPIDv1
85 case 2: return fDisp ; //only dispersion cut
86 case 3: return fTof ; //Only TOF cut
87 case 4: return fCpv ; //Only CPV cut
88 case 5: return fDisp&&fTof ; //Dispersion and TOF
89 case 6: return fDisp&&fCpv ; //Dispersion and CPV
90 case 7: return fTof && fCpv; //TOF and CPV
91 case 8: return fDisp&&fTof&&fCpv ; // all 3 cuts
92 default: return kFALSE ; //Not known combination
93 }
94}