1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
17 //_________________________________________________________________________
18 // Minimal class to store photon infomation for pi0, tagged and isolated photon analysis
20 //-- Author: Dmitri Peressounko (RRC "KI")
22 #include "AliCaloPhoton.h"
23 ClassImp(AliCaloPhoton)
24 //===============================================
25 AliCaloPhoton::AliCaloPhoton() :
55 //===============================================
56 AliCaloPhoton::AliCaloPhoton(Double_t px,Double_t py,Double_t pz,Double_t energy):
57 TLorentzVector(px,py,pz,energy),
85 //===============================================
86 Bool_t AliCaloPhoton::IsPIDOK(Int_t ipid)const{
87 // returns true if photon satisfies given PID criterium
89 case 0: return kTRUE ; //No PID at all
90 case 1: return fPCA; //Overall PID calculated in AliPHOSPIDv1
91 case 2: return fDisp ; //only dispersion cut
92 case 3: return fTof ; //Only TOF cut
93 case 4: return fCpv ; //Only CPV cut
94 case 5: return fDisp&&fTof ; //Dispersion and TOF
95 case 6: return fDisp&&fCpv ; //Dispersion and CPV
96 case 7: return fTof && fCpv; //TOF and CPV
97 case 8: return fDisp&&fTof&&fCpv ; // all 3 cuts
98 default: return kFALSE ; //Not known combination