]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/EMCALTasks/AliCaloTrackParticle.cxx
including setter to enable debugging printouts
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliCaloTrackParticle.cxx
CommitLineData
364c8fcb 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
9c1fcdc6 19#include "AliCaloTrackParticle.h"
20ClassImp(AliCaloTrackParticle)
364c8fcb 21//===============================================
9c1fcdc6 22AliCaloTrackParticle::AliCaloTrackParticle():TLorentzVector(),
364c8fcb 23fChargedSign(0),
24fL0(0), fL1(0), fModule(0), fBadDist(0), fNCells(0), fClusterTime(0), fClusterID(0), fAODClusterID(0),
25kInSSA(0), kInTOF(0), kInTrackMatched(0),
26fPhotonPairDTime(0), fPhotonPairDModule(0), fPhotonPairAsy(0), fPhotonPairAngle(0), fPhotonPairID0(0), fAODPhotonPairID0(0),fPhotonPairID1(0), fAODPhotonPairID1(0),
27kIsLeading(0), kIsIsolated()
28{
29
30
31}
32//===============================================
9c1fcdc6 33AliCaloTrackParticle::AliCaloTrackParticle(Double_t px,Double_t py,Double_t pz,Double_t energy):
364c8fcb 34TLorentzVector(px,py,pz,energy),
35fChargedSign(0),
36fL0(0), fL1(0), fModule(0),fBadDist(0),fNCells(0), fClusterTime(0), fClusterID(0), fAODClusterID(0),
37kInSSA(0), kInTOF(0), kInTrackMatched(0),
38fPhotonPairDTime(0), fPhotonPairDModule(0), fPhotonPairAsy(0), fPhotonPairAngle(0), fPhotonPairID0(0), fAODPhotonPairID0(0), fPhotonPairID1(0),fAODPhotonPairID1(0),
39kIsLeading(0), kIsIsolated(0)
40{
41
42}
43//===============================================
9c1fcdc6 44Bool_t AliCaloTrackParticle::IsPIDOK(Int_t ipid)const{
364c8fcb 45 // returns true if photon satisfies given PID criterium
46 switch(ipid){
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
56 }
57}