]>
Commit | Line | Data |
---|---|---|
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" | |
23 | ClassImp(AliCaloPhoton) | |
24 | //=============================================== | |
b7784cea | 25 | AliCaloPhoton::AliCaloPhoton() : |
26 | TLorentzVector(), | |
27 | fMomV2(), | |
28 | fDisp(0), | |
2cde7444 | 29 | fDisp2(0), |
b7784cea | 30 | fTof(0), |
31 | fCpv(0), | |
2cde7444 | 32 | fCpv2(0), |
b7784cea | 33 | fPCA(0), |
34 | fTrig(0), | |
35 | fIsTagged(0), | |
36 | fIsIsolated(0), | |
37 | fIsPhoton(0), | |
2cde7444 | 38 | fUnfolded(0), |
b7784cea | 39 | fX(0.), |
40 | fY(0.), | |
41 | fZ(0.), | |
da60a9d4 | 42 | fLambda0(0.), |
43 | fLambda1(0.), | |
b7784cea | 44 | fModule(0), |
45 | fBadDist(0), | |
46 | fNCells(0), | |
47 | fPi0Decayflag(0), | |
48 | fPi0Id(0), | |
49 | fConverted(0), | |
50 | fConvertedPartner(0), | |
51 | fPartnerPt(0), | |
52 | fPrimary(0) | |
dfff4b29 | 53 | { |
54 | ||
55 | ||
56 | } | |
57 | //=============================================== | |
58 | AliCaloPhoton::AliCaloPhoton(Double_t px,Double_t py,Double_t pz,Double_t energy): | |
b7784cea | 59 | TLorentzVector(px,py,pz,energy), |
60 | fMomV2(), | |
61 | fDisp(0), | |
2cde7444 | 62 | fDisp2(0), |
b7784cea | 63 | fTof(0), |
64 | fCpv(0), | |
2cde7444 | 65 | fCpv2(0), |
b7784cea | 66 | fPCA(0), |
67 | fTrig(0), | |
68 | fIsTagged(0), | |
69 | fIsIsolated(0), | |
70 | fIsPhoton(0), | |
2cde7444 | 71 | fUnfolded(0), |
b7784cea | 72 | fX(0.), |
73 | fY(0.), | |
74 | fZ(0.), | |
da60a9d4 | 75 | fLambda0(0.), |
76 | fLambda1(0.), | |
b7784cea | 77 | fModule(0), |
78 | fBadDist(0), | |
79 | fNCells(0), | |
80 | fPi0Decayflag(0), | |
81 | fPi0Id(0), | |
82 | fConverted(0), | |
83 | fConvertedPartner(0), | |
84 | fPartnerPt(0), | |
85 | fPrimary(0) | |
dfff4b29 | 86 | { |
87 | ||
88 | } | |
89 | //=============================================== | |
90 | Bool_t AliCaloPhoton::IsPIDOK(Int_t ipid)const{ | |
91 | // returns true if photon satisfies given PID criterium | |
92 | switch(ipid){ | |
93 | case 0: return kTRUE ; //No PID at all | |
94 | case 1: return fPCA; //Overall PID calculated in AliPHOSPIDv1 | |
95 | case 2: return fDisp ; //only dispersion cut | |
96 | case 3: return fTof ; //Only TOF cut | |
97 | case 4: return fCpv ; //Only CPV cut | |
98 | case 5: return fDisp&&fTof ; //Dispersion and TOF | |
99 | case 6: return fDisp&&fCpv ; //Dispersion and CPV | |
100 | case 7: return fTof && fCpv; //TOF and CPV | |
101 | case 8: return fDisp&&fTof&&fCpv ; // all 3 cuts | |
102 | default: return kFALSE ; //Not known combination | |
103 | } | |
104 | } |