]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/PHOSTasks/PHOSCalib/AliCaloPhotonC.cxx
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGGA / PHOSTasks / PHOSCalib / AliCaloPhotonC.cxx
CommitLineData
450dbb9c 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// Minimal class to store photon infomation for pi0, tagged and isolated photon analysis
19//
20//-- Author: Dmitri Peressounko (RRC "KI")
21
22#include "AliCaloPhotonC.h"
23ClassImp(AliCaloPhotonC)
24//===============================================
25AliCaloPhotonC::AliCaloPhotonC():TLorentzVector(),fMomV2(),fDisp(0),
26 fTof(0),fCpv(0),fCpv2(0),fPCA(0),fTrig(0),
27 fIsTagged(0),fIsIsolated(0),
28 fX(0.),fY(0.),fZ(0.),
29 fLambda0(0.),fLambda1(0.),
30 fModule(0),fBadDist(0),fNCells(0)
31{
32
33
34}
35//===============================================
36AliCaloPhotonC::AliCaloPhotonC(Double_t px,Double_t py,Double_t pz,Double_t energy):
37 TLorentzVector(px,py,pz,energy),fMomV2(),fDisp(0),
38 fTof(0),fCpv(0),fCpv2(0),fPCA(0),fTrig(0),
39 fIsTagged(0),fIsIsolated(0),
40 fX(0.),fY(0.),fZ(0.),
41 fLambda0(0.),fLambda1(0.),
42 fModule(0),fBadDist(0),fNCells(0)
43{
44
45}
46//===============================================
47Bool_t AliCaloPhotonC::IsPIDOK(Int_t ipid)const{
48 // returns true if photon satisfies given PID criterium
49 switch(ipid){
50 case 0: return kTRUE ; //No PID at all
51 case 1: return fPCA; //Overall PID calculated in AliPHOSPIDv1
52 case 2: return fDisp ; //only dispersion cut
53 case 3: return fTof ; //Only TOF cut
54 case 4: return fCpv ; //Only CPV cut
55 case 5: return fDisp&&fTof ; //Dispersion and TOF
56 case 6: return fDisp&&fCpv ; //Dispersion and CPV
57 case 7: return fTof && fCpv; //TOF and CPV
58 case 8: return fDisp&&fTof&&fCpv ; // all 3 cuts
59 default: return kFALSE ; //Not known combination
60 }
61}