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 // Class for reading data (Kinematics) in order to do prompt gamma
19 // or other particle identification and correlations
20 // Separates generated particles into charged (CTS)
21 // and neutral (PHOS or EMCAL acceptance)
23 //*-- Author: Gustavo Conesa (LNF-INFN)
24 //////////////////////////////////////////////////////////////////////////////
27 // --- ROOT system ---
29 #include <TParticle.h>
30 #include <TDatabasePDG.h>
33 #include "TParticle.h"
34 //#include "Riostream.h"
36 //---- ANALYSIS system ----
37 #include "AliCaloTrackMCReader.h"
38 #include "AliGenEventHeader.h"
40 #include "AliAODCaloCluster.h"
41 #include "AliAODTrack.h"
42 #include "AliAODEvent.h"
43 #include "AliFidutialCut.h"
44 #include "AliMCAnalysisUtils.h"
46 ClassImp(AliCaloTrackMCReader)
48 //____________________________________________________________________________
49 AliCaloTrackMCReader::AliCaloTrackMCReader() :
50 AliCaloTrackReader(), fDecayPi0(0),
51 fNeutralParticlesArray(0x0), fChargedParticlesArray(0x0),
52 fStatusArray(0x0), fKeepAllStatus(0), fCheckOverlap(0),
53 fEMCALOverlapAngle(0),fPHOSOverlapAngle(0), fIndex2ndPhoton(0)
57 //Initialize parameters
63 //____________________________________________________________________________
64 AliCaloTrackMCReader::AliCaloTrackMCReader(const AliCaloTrackMCReader & g) :
65 AliCaloTrackReader(g), fDecayPi0(g.fDecayPi0),
66 fNeutralParticlesArray(g.fNeutralParticlesArray?new TArrayI(*g.fNeutralParticlesArray):0x0),
67 fChargedParticlesArray(g.fChargedParticlesArray?new TArrayI(*g.fChargedParticlesArray):0x0),
68 fStatusArray(g.fStatusArray?new TArrayI(*g.fStatusArray):0x0),
69 fKeepAllStatus(g.fKeepAllStatus), fCheckOverlap(g.fCheckOverlap),
70 fEMCALOverlapAngle( g.fEMCALOverlapAngle), fPHOSOverlapAngle(g.fPHOSOverlapAngle),
71 fIndex2ndPhoton(g.fIndex2ndPhoton)
76 //_________________________________________________________________________
77 AliCaloTrackMCReader & AliCaloTrackMCReader::operator = (const AliCaloTrackMCReader & source)
79 // assignment operator
81 if(&source == this) return *this;
83 fDecayPi0 = source.fDecayPi0;
85 delete fChargedParticlesArray;
86 fChargedParticlesArray = source.fChargedParticlesArray?new TArrayI(*source.fChargedParticlesArray):0x0;
88 delete fNeutralParticlesArray;
89 fNeutralParticlesArray = source.fNeutralParticlesArray?new TArrayI(*source.fNeutralParticlesArray):0x0;
92 fStatusArray = source.fStatusArray?new TArrayI(*source.fStatusArray):0x0;
94 fKeepAllStatus = source.fKeepAllStatus ;
100 //_________________________________
101 AliCaloTrackMCReader::~AliCaloTrackMCReader() {
104 if(fChargedParticlesArray) delete fChargedParticlesArray ;
105 if(fNeutralParticlesArray) delete fNeutralParticlesArray ;
106 if(fStatusArray) delete fStatusArray ;
110 //____________________________________________________________________________
111 void AliCaloTrackMCReader::GetVertex(Double_t v[3]) const {
112 //Return vertex position
115 GetGenEventHeader()->PrimaryVertex(pv);
123 //_______________________________________________________________
124 void AliCaloTrackMCReader::InitParameters()
127 //Initialize the parameters of the analysis.
131 fChargedParticlesArray = new TArrayI(1);
132 fChargedParticlesArray->SetAt(11,0);
133 //Int_t pdgarray[]={12,14,16};// skip neutrinos
134 //fNeutralParticlesArray = new TArrayI(3, pdgarray);
135 fNeutralParticlesArray = new TArrayI(3);
136 fNeutralParticlesArray->SetAt(12,0); fNeutralParticlesArray->SetAt(14,1); fNeutralParticlesArray->SetAt(16,2);
137 fStatusArray = new TArrayI(1);
138 fStatusArray->SetAt(1,0);
140 fKeepAllStatus = kTRUE;
142 fCheckOverlap = kFALSE;
143 fEMCALOverlapAngle = 2.5 * TMath::DegToRad();
144 fPHOSOverlapAngle = 0.5 * TMath::DegToRad();
145 fIndex2ndPhoton = -1;
147 //____________________________________________________________________________
148 void AliCaloTrackMCReader::CheckOverlap(const Float_t anglethres, const Int_t imom, Int_t & iPrimary, Int_t & index, TLorentzVector & mom, Int_t & pdg) {
149 //Check overlap of decay photons
150 if( fIndex2ndPhoton==iPrimary ){
154 else fIndex2ndPhoton=-1;
159 TLorentzVector ph1, ph2;
160 TParticle *meson = GetStack()->Particle(imom);
161 Int_t mepdg = meson->GetPdgCode();
162 Int_t idaug1 = meson->GetFirstDaughter();
163 if((mepdg == 111 || mepdg == 221 ) && meson->GetNDaughters() == 2){ //Check only decay in 2 photons
164 TParticle * d1 = GetStack()->Particle(idaug1);
165 TParticle *d2 = GetStack()->Particle(idaug1+1);
166 if(d1->GetPdgCode() == 22 && d2->GetPdgCode() == 22 ){
169 //printf("angle %2.2f\n",ph1.Angle(ph2.Vect()));
171 if(anglethres > ph1.Angle(ph2.Vect())){
175 meson->Momentum(mom);
176 //printf("Overlap:: pt %2.2f, phi %2.2f, eta %2.2f\n",mom.Pt(),mom.Phi(),mom.Eta());
177 if(iPrimary == idaug1) iPrimary++; //skip next photon in list
180 //Do not check overlapping for next decay photon from same meson
181 if(iPrimary == idaug1) {fIndex2ndPhoton = idaug1+1;
186 }//Meson Decay with 2 photon daughters
189 //____________________________________________________________________________
190 void AliCaloTrackMCReader::FillCalorimeters(Int_t & iParticle, TParticle* particle, TLorentzVector momentum,
192 //Fill AODCaloClusters or TParticles lists of PHOS or EMCAL
194 if(fFillPHOS && fFidutialCut->IsInFidutialCut(momentum,"PHOS") && momentum.Pt() > fPHOSPtMin){
195 Int_t index = iParticle ;
196 Int_t pdg = TMath::Abs(particle->GetPdgCode());
198 CheckOverlap(fPHOSOverlapAngle,particle->GetFirstMother(),index, iParticle, momentum, pdg);
200 Char_t ttype= AliAODCluster::kPHOSNeutral;
201 Int_t labels[] = {index};
202 Float_t x[] = {momentum.X(), momentum.Y(), momentum.Z()};
203 //Create object and write it to file
204 AliAODCaloCluster *calo = new((*(fOutputEvent->GetCaloClusters()))[ncalo++])
205 AliAODCaloCluster(index,1,labels,momentum.E(), x, NULL, ttype, 0);
207 SetCaloClusterPID(pdg,calo) ;
208 if(fDebug > 3 && momentum.Pt() > 0.2)
209 printf("AliCaloTrackMCReader::FillCalorimeters() - PHOS : Selected cluster %s E %3.2f, pt %3.2f, phi %3.2f, eta %3.2f\n",
210 particle->GetName(),momentum.E(),momentum.Pt(),momentum.Phi()*TMath::RadToDeg(),momentum.Eta());
211 fAODPHOS->Add(calo);//reference the selected object to the list
215 if(fFillEMCAL && fFidutialCut->IsInFidutialCut(momentum,"EMCAL") && momentum.Pt() > fEMCALPtMin){
216 Int_t index = iParticle ;
217 Int_t pdg = TMath::Abs(particle->GetPdgCode());
220 CheckOverlap(fEMCALOverlapAngle,particle->GetFirstMother(),iParticle, index, momentum, pdg);
222 Char_t ttype= AliAODCluster::kEMCALClusterv1;
223 Int_t labels[] = {index};
224 Float_t x[] = {momentum.X(), momentum.Y(), momentum.Z()};
225 //Create object and write it to file
226 AliAODCaloCluster *calo = new((*(fOutputEvent->GetCaloClusters()))[ncalo++])
227 AliAODCaloCluster(iParticle,1,labels,momentum.E(), x, NULL, ttype, 0);
229 SetCaloClusterPID(pdg,calo) ;
230 if(fDebug > 3 && momentum.Pt() > 0.2)
231 printf("AliCaloTrackMCReader::FillCalorimeters() - EMCAL : Selected cluster %s E %3.2f, pt %3.2f, phi %3.2f, eta %3.2f\n",
232 particle->GetName(),momentum.E(),momentum.Pt(),momentum.Phi()*TMath::RadToDeg(),momentum.Eta());
233 fAODEMCAL->Add(calo);//reference the selected object to the list
237 //____________________________________________________________________________
238 Bool_t AliCaloTrackMCReader::FillInputEvent(const Int_t iEntry, const char * currentFileName){
239 //Fill the event counter and input lists that are needed, called by the analysis maker.
241 fEventNumber = iEntry;
242 fCurrentFileName = TString(currentFileName);
244 //In case of analysis of events with jets, skip those with jet pt > 5 pt hard
245 if(fComparePtHardAndJetPt && GetStack()) {
246 if(!fMCUtils->ComparePtHardAndJetPt(GetGenEventHeader())) return kFALSE ;
249 Int_t iParticle = 0 ;
250 Double_t charge = 0.;
251 Int_t ncalo = (fOutputEvent->GetCaloClusters())->GetEntriesFast();
252 Int_t ntrack = (fOutputEvent->GetTracks())->GetEntriesFast();
254 for (iParticle = 0 ; iParticle < GetStack()->GetNtrack() ; iParticle++) {
255 TParticle * particle = GetStack()->Particle(iParticle);
256 TLorentzVector momentum;
259 Int_t pdg = particle->GetPdgCode();
261 //Keep particles with a given status
262 if(KeepParticleWithStatus(particle->GetStatusCode()) && (particle->Pt() > 0) ){
264 //Skip bizarre particles, they crash when charge is calculated
265 // if(TMath::Abs(pdg) == 3124 || TMath::Abs(pdg) > 10000000) continue ;
267 charge = TDatabasePDG::Instance()->GetParticle(pdg)->Charge();
268 particle->Momentum(momentum);
269 //---------- Charged particles ----------------------
270 if((charge != 0) && (momentum.Pt() > fCTSPtMin) && (fFidutialCut->IsInFidutialCut(momentum,"CTS"))){
272 //Particles in CTS acceptance
273 if(fDebug > 3 && momentum.Pt() > 0.2)
274 printf("AliCaloTrackMCReader::FillInputEvent() - CTS : Selected tracks E %3.2f, pt %3.2f, phi %3.2f, eta %3.2f\n",
275 momentum.E(),momentum.Pt(),momentum.Phi()*TMath::RadToDeg(),momentum.Eta());
277 x[0] = particle->Vx(); x[1] = particle->Vy(); x[2] = particle->Vz();
278 p[0] = particle->Px(); p[1] = particle->Py(); p[2] = particle->Pz();
279 //Create object and write it to file
280 AliAODTrack *aodTrack = new((*(fOutputEvent->GetTracks()))[ntrack++])
281 AliAODTrack(0, iParticle, p, kTRUE, x, kFALSE,NULL, 0, 0,
284 kFALSE, // No fit performed
285 kFALSE, // No fit performed
286 AliAODTrack::kPrimary,
288 SetTrackChargeAndPID(pdg, aodTrack);
289 fAODCTS->Add(aodTrack);//reference the selected object to the list
291 //Keep some charged particles in calorimeters lists
292 if((fFillPHOS || fFillEMCAL) && KeepChargedParticles(pdg)) FillCalorimeters(iParticle, particle, momentum, ncalo);
296 //-------------Neutral particles ----------------------
297 else if(charge == 0 && (fFillPHOS || fFillEMCAL)){
298 //Skip neutrinos or other neutral particles
299 //if(SkipNeutralParticles(pdg) || particle->IsPrimary()) continue ; // protection added (MG)
300 if(SkipNeutralParticles(pdg)) continue ;
301 //Fill particle/calocluster arrays
303 FillCalorimeters(iParticle, particle, momentum, ncalo);
306 //Sometimes pi0 are stable for the generator, if needed decay it by hand
308 if(momentum.Pt() > fPHOSPtMin || momentum.Pt() > fEMCALPtMin){
309 TLorentzVector lvGamma1, lvGamma2 ;
310 //Double_t angle = 0;
313 MakePi0Decay(momentum,lvGamma1,lvGamma2);//,angle);
315 //Check if Pi0 is in the acceptance of the calorimeters, if aperture angle is small, keep it
316 TParticle * pPhoton1 = new TParticle(22,1,iParticle,0,0,0,lvGamma1.Px(),lvGamma1.Py(),
317 lvGamma1.Pz(),lvGamma1.E(),0,0,0,0);
318 TParticle * pPhoton2 = new TParticle(22,1,iParticle,0,0,0,lvGamma2.Px(),lvGamma2.Py(),
319 lvGamma2.Pz(),lvGamma2.E(),0,0,0,0);
320 //Fill particle/calocluster arrays
321 FillCalorimeters(iParticle,pPhoton1,lvGamma1, ncalo);
322 FillCalorimeters(iParticle,pPhoton2,lvGamma2, ncalo);
325 else FillCalorimeters(iParticle,particle, momentum, ncalo); //Add the rest
328 } //particle with correct status
331 fIndex2ndPhoton = -1; //In case of overlapping studies, reset for each event
337 //________________________________________________________________
338 Bool_t AliCaloTrackMCReader::KeepParticleWithStatus(Int_t status) const {
339 //Check if status is equal to one of the list
340 //These particles will be used in analysis.
342 for(Int_t i= 0; i < fStatusArray->GetSize(); i++)
343 if(status == fStatusArray->At(i)) return kTRUE ;
352 //________________________________________________________________
353 Bool_t AliCaloTrackMCReader::KeepChargedParticles(Int_t pdg) const {
354 //Check if pdg is equal to one of the charged particles list
355 //These particles will be added to the calorimeters lists.
357 for(Int_t i= 0; i < fChargedParticlesArray->GetSize(); i++)
358 if(TMath::Abs(pdg) == fChargedParticlesArray->At(i)) return kTRUE ;
364 //________________________________________________________________
365 void AliCaloTrackMCReader::Print(const Option_t * opt) const
367 //Print some relevant parameters set for the analysis
371 printf("**** Print **** %s %s ****\n", GetName(), GetTitle() ) ;
373 printf("Decay Pi0? : %d\n", fDecayPi0) ;
374 printf("Check Overlap in Calo? : %d\n", fCheckOverlap) ;
375 printf("Keep all status? : %d\n", fKeepAllStatus) ;
377 if(!fKeepAllStatus) printf("Keep particles with status : ");
378 for(Int_t i= 0; i < fStatusArray->GetSize(); i++)
379 printf(" %d ; ", fStatusArray->At(i));
382 printf("Skip neutral particles in calo : ");
383 for(Int_t i= 0; i < fNeutralParticlesArray->GetSize(); i++)
384 printf(" %d ; ", fNeutralParticlesArray->At(i));
387 printf("Keep charged particles in calo : ");
388 for(Int_t i= 0; i < fChargedParticlesArray->GetSize(); i++)
389 printf(" %d ; ", fChargedParticlesArray->At(i));
394 //____________________________________________________________________________
395 void AliCaloTrackMCReader::MakePi0Decay(TLorentzVector &p0, TLorentzVector &p1,
396 TLorentzVector &p2) const {//, Double_t &angle) {
397 // Perform isotropic decay pi0 -> 2 photons
398 // p0 is pi0 4-momentum (inut)
399 // p1 and p2 are photon 4-momenta (output)
400 // cout<<"Boost vector"<<endl;
401 Double_t mPi0 = TDatabasePDG::Instance()->GetParticle(111)->Mass();
402 TVector3 b = p0.BoostVector();
403 //cout<<"Parameters"<<endl;
404 //Double_t mPi0 = p0.M();
405 Double_t phi = TMath::TwoPi() * gRandom->Rndm();
406 Double_t cosThe = 2 * gRandom->Rndm() - 1;
407 Double_t cosPhi = TMath::Cos(phi);
408 Double_t sinPhi = TMath::Sin(phi);
409 Double_t sinThe = TMath::Sqrt(1-cosThe*cosThe);
410 Double_t ePi0 = mPi0/2.;
411 //cout<<"ePi0 "<<ePi0<<endl;
412 //cout<<"Components"<<endl;
413 p1.SetPx(+ePi0*cosPhi*sinThe);
414 p1.SetPy(+ePi0*sinPhi*sinThe);
415 p1.SetPz(+ePi0*cosThe);
417 //cout<<"p1: "<<p1.Px()<<" "<<p1.Py()<<" "<<p1.Pz()<<" "<<p1.E()<<endl;
418 //cout<<"p1 Mass: "<<p1.Px()*p1.Px()+p1.Py()*p1.Py()+p1.Pz()*p1.Pz()-p1.E()*p1.E()<<endl;
419 p2.SetPx(-ePi0*cosPhi*sinThe);
420 p2.SetPy(-ePi0*sinPhi*sinThe);
421 p2.SetPz(-ePi0*cosThe);
423 //cout<<"p2: "<<p2.Px()<<" "<<p2.Py()<<" "<<p2.Pz()<<" "<<p2.E()<<endl;
424 //cout<<"p2 Mass: "<<p2.Px()*p2.Px()+p2.Py()*p2.Py()+p2.Pz()*p2.Pz()-p2.E()*p2.E()<<endl;
425 //cout<<"Boost "<<b.X()<<" "<<b.Y()<<" "<<b.Z()<<endl;
427 //cout<<"p1: "<<p1.Px()<<" "<<p1.Py()<<" "<<p1.Pz()<<" "<<p1.E()<<endl;
429 //cout<<"p2: "<<p2.Px()<<" "<<p2.Py()<<" "<<p2.Pz()<<" "<<p2.E()<<endl;
430 //cout<<"angle"<<endl;
431 //angle = p1.Angle(p2.Vect());
435 //____________________________________________________________________________
436 void AliCaloTrackMCReader::SetInputOutputMCEvent(AliVEvent* /*esd*/, AliAODEvent* aod, AliMCEvent* mc) {
437 // Connect the data pointer
443 //________________________________________________________________
444 Bool_t AliCaloTrackMCReader::SkipNeutralParticles(Int_t pdg) const {
445 //Check if pdg is equal to one of the neutral particles list
446 //These particles will be skipped from analysis.
448 for(Int_t i= 0; i < fNeutralParticlesArray->GetSize(); i++)
449 if(TMath::Abs(pdg) == fNeutralParticlesArray->At(i)) return kTRUE ;
456 //____________________________________________________________________
457 void AliCaloTrackMCReader::SetTrackChargeAndPID(const Int_t pdgCode, AliAODTrack *track) const {
458 //Give a PID weight for tracks equal to 1 depending on the particle type
460 Float_t pid[10] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
466 pid[AliAODTrack::kUnknown] = 1.;
471 track->SetCharge(-1);
472 pid[AliAODTrack::kElectron] = 1.;
477 track->SetCharge(+1);
478 pid[AliAODTrack::kElectron] = 1.;
483 track->SetCharge(-1);
484 pid[AliAODTrack::kMuon] = 1.;
489 track->SetCharge(+1);
490 pid[AliAODTrack::kMuon] = 1.;
496 pid[AliAODTrack::kUnknown] = 1.;
501 track->SetCharge(+1);
502 pid[AliAODTrack::kPion] = 1.;
507 track->SetCharge(-1);
508 pid[AliAODTrack::kPion] = 1.;
514 pid[AliAODTrack::kUnknown] = 1.;
519 track->SetCharge(+1);
520 pid[AliAODTrack::kKaon] = 1.;
525 track->SetCharge(-1);
526 pid[AliAODTrack::kKaon] = 1.;
532 pid[AliAODTrack::kUnknown] = 1.;
537 track->SetCharge(+1);
538 pid[AliAODTrack::kProton] = 1.;
542 case -2212: // anti-p
543 track->SetCharge(-1);
544 pid[AliAODTrack::kProton] = 1.;
550 pid[AliAODTrack::kUnknown] = 1.;
556 pid[AliAODTrack::kUnknown] = 1.;
560 case -311: // anti-K0
562 pid[AliAODTrack::kUnknown] = 1.;
568 pid[AliAODTrack::kUnknown] = 1.;
574 pid[AliAODTrack::kUnknown] = 1.;
579 track->SetCharge(+1);
580 pid[AliAODTrack::kUnknown] = 1.;
585 track->SetCharge(-1);
586 pid[AliAODTrack::kUnknown] = 1.;
591 track->SetCharge(-1);
592 pid[AliAODTrack::kUnknown] = 1.;
598 pid[AliAODTrack::kUnknown] = 1.;
603 track->SetCharge(-1);
604 pid[AliAODTrack::kUnknown] = 1.;
609 track->SetCharge(-1);
610 pid[AliAODTrack::kUnknown] = 1.;
616 pid[AliAODTrack::kUnknown] = 1.;
620 case -3122: // anti-Lambda
622 pid[AliAODTrack::kUnknown] = 1.;
626 case -3222: // anti-Sigma-
627 track->SetCharge(-1);
628 pid[AliAODTrack::kUnknown] = 1.;
632 case -3212: // anti-Sigma0
634 pid[AliAODTrack::kUnknown] = 1.;
638 case -3112: // anti-Sigma+
639 track->SetCharge(+1);
640 pid[AliAODTrack::kUnknown] = 1.;
644 case -3322: // anti-Xi0
646 pid[AliAODTrack::kUnknown] = 1.;
650 case -3312: // anti-Xi+
651 track->SetCharge(+1);
654 case -3334: // anti-Omega+
655 track->SetCharge(+1);
656 pid[AliAODTrack::kUnknown] = 1.;
661 track->SetCharge(+1);
662 pid[AliAODTrack::kUnknown] = 1.;
667 track->SetCharge(-1);
668 pid[AliAODTrack::kUnknown] = 1.;
674 pid[AliAODTrack::kUnknown] = 1.;
678 case -421: // anti-D0
680 pid[AliAODTrack::kUnknown] = 1.;
685 track->SetCharge(-99);
686 pid[AliAODTrack::kUnknown] = 1.;
695 //____________________________________________________________________
696 void AliCaloTrackMCReader::SetCaloClusterPID(const Int_t pdgCode, AliAODCaloCluster *calo) const {
697 //Give a PID weight for CaloClusters equal to 1 depending on the particle type
699 Float_t pid[13] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
704 pid[AliAODCaloCluster::kPhoton] = 1.;
709 pid[AliAODCaloCluster::kElectron] = 1.;
714 pid[AliAODCaloCluster::kElectron] = 1.;
719 pid[AliAODCaloCluster::kCharged] = 1.;
724 pid[AliAODCaloCluster::kCharged] = 1.;
729 pid[AliAODCaloCluster::kPi0] = 1.;
734 pid[AliAODCaloCluster::kCharged] = 1.;
739 pid[AliAODCaloCluster::kCharged] = 1.;
744 pid[AliAODCaloCluster::kKaon0] = 1.;
745 pid[AliAODCaloCluster::kNeutral] = 1;
750 pid[AliAODCaloCluster::kCharged] = 1.;
755 pid[AliAODCaloCluster::kCharged] = 1.;
760 pid[AliAODCaloCluster::kNeutron] = 1.;
761 pid[AliAODCaloCluster::kNeutral] = 1.;
766 pid[AliAODCaloCluster::kCharged] = 1.;
770 case -2212: // anti-p
771 pid[AliAODCaloCluster::kCharged] = 1.;
776 pid[AliAODCaloCluster::kKaon0] = 1.;
777 pid[AliAODCaloCluster::kNeutral] = 1.;
782 pid[AliAODCaloCluster::kKaon0] = 1.;
783 pid[AliAODCaloCluster::kNeutral] = 1.;
787 case -311: // anti-K0
788 pid[AliAODCaloCluster::kKaon0] = 1.;
789 pid[AliAODCaloCluster::kNeutral] = 1.;
794 pid[AliAODCaloCluster::kNeutral] = 1.;
799 pid[AliAODCaloCluster::kUnknown] = 1.;
804 pid[AliAODCaloCluster::kUnknown] = 1.;
809 pid[AliAODCaloCluster::kUnknown] = 1.;
814 pid[AliAODCaloCluster::kUnknown] = 1.;
819 pid[AliAODCaloCluster::kUnknown] = 1.;
824 pid[AliAODCaloCluster::kUnknown] = 1.;
829 pid[AliAODCaloCluster::kUnknown] = 1.;
834 pid[AliAODCaloCluster::kNeutron] = 1.;
835 pid[AliAODCaloCluster::kNeutral] = 1.;
839 case -3122: // anti-Lambda
840 pid[AliAODCaloCluster::kUnknown] = 1.;
844 case -3222: // anti-Sigma-
845 pid[AliAODCaloCluster::kUnknown] = 1.;
849 case -3212: // anti-Sigma0
850 pid[AliAODCaloCluster::kUnknown] = 1.;
854 case -3112: // anti-Sigma+
855 pid[AliAODCaloCluster::kUnknown] = 1.;
859 case -3322: // anti-Xi0
860 pid[AliAODCaloCluster::kUnknown] = 1.;
864 case -3312: // anti-Xi+
865 pid[AliAODCaloCluster::kUnknown] = 1.;
869 case -3334: // anti-Omega+
870 pid[AliAODCaloCluster::kUnknown] = 1.;
875 pid[AliAODCaloCluster::kUnknown] = 1.;
880 pid[AliAODCaloCluster::kUnknown] = 1.;
885 pid[AliAODCaloCluster::kUnknown] = 1.;
889 case -421: // anti-D0
890 pid[AliAODCaloCluster::kUnknown] = 1.;
895 pid[AliAODCaloCluster::kUnknown] = 1.;