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 //_________________________________________________________________________
19 #include "AliCaloTrackParticle.h"
20 ClassImp(AliCaloTrackParticle)
21 //===============================================
22 AliCaloTrackParticle::AliCaloTrackParticle():TLorentzVector(),
24 fL0(0), fL1(0), fModule(0), fBadDist(0), fNCells(0), fClusterTime(0), fClusterID(0), fAODClusterID(0),
25 kInSSA(0), kInTOF(0), kInTrackMatched(0),
26 fPhotonPairDTime(0), fPhotonPairDModule(0), fPhotonPairAsy(0), fPhotonPairAngle(0), fPhotonPairID0(0), fAODPhotonPairID0(0),fPhotonPairID1(0), fAODPhotonPairID1(0),
27 kIsLeading(0), kIsIsolated()
32 //===============================================
33 AliCaloTrackParticle::AliCaloTrackParticle(Double_t px,Double_t py,Double_t pz,Double_t energy):
34 TLorentzVector(px,py,pz,energy),
36 fL0(0), fL1(0), fModule(0),fBadDist(0),fNCells(0), fClusterTime(0), fClusterID(0), fAODClusterID(0),
37 kInSSA(0), kInTOF(0), kInTrackMatched(0),
38 fPhotonPairDTime(0), fPhotonPairDModule(0), fPhotonPairAsy(0), fPhotonPairAngle(0), fPhotonPairID0(0), fAODPhotonPairID0(0), fPhotonPairID1(0),fAODPhotonPairID1(0),
39 kIsLeading(0), kIsIsolated(0)
43 //===============================================
44 Bool_t AliCaloTrackParticle::IsPIDOK(Int_t ipid)const{
45 // returns true if photon satisfies given PID criterium
47 case 0: return kTRUE ; //No PID at all
48 case 1: return kInSSA ; //only shower shape cut
49 case 2: return !kInTrackMatched ; //Only track matched cut
50 case 3: return kInTOF ; //Only TOF cut
51 case 4: return kInSSA && !kInTrackMatched ; //shower shape and CPV
52 case 5: return kInSSA && kInTOF ; //shower shape and TOF
53 case 7: return !kInTrackMatched && kInTOF; //CPV and TOF
54 case 8: return kInSSA && !kInTrackMatched && kInTOF; // all 3 cuts
55 default: return kFALSE ; //Not known combination