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
21 //*-- Author: Gustavo Conesa (LNF-INFN)
22 //////////////////////////////////////////////////////////////////////////////
25 // --- ROOT system ---
27 #include <TParticle.h>
29 #include <TClonesArray.h>
30 //#include "Riostream.h"
32 //---- ANALYSIS system ----
33 #include "AliCaloTrackMCReader.h"
35 #include "AliGenEventHeader.h"
37 #include "AliAODCaloCluster.h"
38 #include "AliAODTrack.h"
40 ClassImp(AliCaloTrackMCReader)
42 //____________________________________________________________________________
43 AliCaloTrackMCReader::AliCaloTrackMCReader() :
44 AliCaloTrackReader(), fDecayPi0(0),
45 fNeutralParticlesArray(0x0), fChargedParticlesArray(0x0),
46 fStatusArray(0x0), fKeepAllStatus(0), fClonesArrayType(0),
47 fCheckOverlap(0), fEMCALOverlapAngle(0),fPHOSOverlapAngle(0),
52 //Initialize parameters
58 //____________________________________________________________________________
59 AliCaloTrackMCReader::AliCaloTrackMCReader(const AliCaloTrackMCReader & g) :
60 AliCaloTrackReader(g), fDecayPi0(g.fDecayPi0),
61 fNeutralParticlesArray(g.fNeutralParticlesArray?new TArrayI(*g.fNeutralParticlesArray):0x0),
62 fChargedParticlesArray(g.fChargedParticlesArray?new TArrayI(*g.fChargedParticlesArray):0x0),
63 fStatusArray(g.fStatusArray?new TArrayI(*g.fStatusArray):0x0),
64 fKeepAllStatus(g.fKeepAllStatus), fClonesArrayType(g.fClonesArrayType),
65 fCheckOverlap(g.fCheckOverlap),
66 fEMCALOverlapAngle( g.fEMCALOverlapAngle), fPHOSOverlapAngle(g.fPHOSOverlapAngle),
67 fIndex2ndPhoton(g.fIndex2ndPhoton)
72 //_________________________________________________________________________
73 AliCaloTrackMCReader & AliCaloTrackMCReader::operator = (const AliCaloTrackMCReader & source)
75 // assignment operator
77 if(&source == this) return *this;
79 fDecayPi0 = source.fDecayPi0;
81 delete fChargedParticlesArray;
82 fChargedParticlesArray = source.fChargedParticlesArray?new TArrayI(*source.fChargedParticlesArray):0x0;
84 delete fNeutralParticlesArray;
85 fNeutralParticlesArray = source.fNeutralParticlesArray?new TArrayI(*source.fNeutralParticlesArray):0x0;
88 fStatusArray = source.fStatusArray?new TArrayI(*source.fStatusArray):0x0;
90 fKeepAllStatus = source.fKeepAllStatus ;
91 fClonesArrayType = source.fClonesArrayType ;
97 //_________________________________
98 AliCaloTrackMCReader::~AliCaloTrackMCReader() {
101 if(fChargedParticlesArray) delete fChargedParticlesArray ;
102 if(fNeutralParticlesArray) delete fNeutralParticlesArray ;
103 if(fStatusArray) delete fStatusArray ;
107 //____________________________________________________________________________
108 void AliCaloTrackMCReader::GetVertex(Double_t v[3]) const {
109 //Return vertex position
112 GetGenEventHeader()->PrimaryVertex(pv);
120 //_______________________________________________________________
121 void AliCaloTrackMCReader::InitParameters()
124 //Initialize the parameters of the analysis.
128 fChargedParticlesArray = new TArrayI(1);
129 fChargedParticlesArray->SetAt(11,0);
130 //Int_t pdgarray[]={12,14,16};// skip neutrinos
131 //fNeutralParticlesArray = new TArrayI(3, pdgarray);
132 fNeutralParticlesArray = new TArrayI(3);
133 fNeutralParticlesArray->SetAt(12,0); fNeutralParticlesArray->SetAt(14,1); fNeutralParticlesArray->SetAt(16,2);
134 fStatusArray = new TArrayI(1);
135 fStatusArray->SetAt(1,0);
137 fKeepAllStatus = kTRUE;
138 fClonesArrayType = kAliAOD ;
140 fCheckOverlap = kFALSE;
141 fEMCALOverlapAngle = 2.5 * TMath::DegToRad();
142 fPHOSOverlapAngle = 0.5 * TMath::DegToRad();
143 fIndex2ndPhoton = -1;
145 //____________________________________________________________________________
146 void AliCaloTrackMCReader::CheckOverlap(const Float_t anglethres, const Int_t imom, Int_t & iPrimary, Int_t & index, TLorentzVector & mom, Int_t & pdg) {
147 //Check overlap of decay photons
148 if( fIndex2ndPhoton==iPrimary ){
152 else fIndex2ndPhoton=-1;
157 TLorentzVector ph1, ph2;
158 TParticle *meson = GetStack()->Particle(imom);
159 Int_t mepdg = meson->GetPdgCode();
160 Int_t idaug1 = meson->GetFirstDaughter();
161 if((mepdg == 111 || mepdg == 221 ) && meson->GetNDaughters() == 2){ //Check only decay in 2 photons
162 TParticle * d1 = GetStack()->Particle(idaug1);
163 TParticle *d2 = GetStack()->Particle(idaug1+1);
164 if(d1->GetPdgCode() == 22 && d2->GetPdgCode() == 22 ){
167 //printf("angle %2.2f\n",ph1.Angle(ph2.Vect()));
169 if(anglethres > ph1.Angle(ph2.Vect())){
173 meson->Momentum(mom);
174 //printf("Overlap:: pt %2.2f, phi %2.2f, eta %2.2f\n",mom.Pt(),mom.Phi(),mom.Eta());
175 if(iPrimary == idaug1) iPrimary++; //skip next photon in list
178 //Do not check overlapping for next decay photon from same meson
179 if(iPrimary == idaug1) {fIndex2ndPhoton = idaug1+1;
184 }//Meson Decay with 2 photon daughters
187 //____________________________________________________________________________
188 void AliCaloTrackMCReader::FillCalorimeters(Int_t & iParticle, TParticle* particle, TLorentzVector momentum,
189 Int_t &indexPHOS, Int_t &indexEMCAL) {
190 //Fill AODCaloClusters or TParticles lists of PHOS or EMCAL
192 if(fFillPHOS && fFidutialCut->IsInFidutialCut(momentum,"PHOS") && momentum.Pt() > fPHOSPtMin){
194 if(fClonesArrayType == kTParticle) new((*fAODPHOS)[indexPHOS++]) TParticle(*particle) ;
196 Int_t index = iParticle ;
197 Int_t pdg = TMath::Abs(particle->GetPdgCode());
199 CheckOverlap(fPHOSOverlapAngle,particle->GetFirstMother(),index, iParticle, momentum, pdg);
201 Char_t ttype= AliAODCluster::kPHOSNeutral;
202 Int_t labels[] = {index};
203 Float_t x[] = {momentum.X(), momentum.Y(), momentum.Z()};
204 AliAODCaloCluster *calo = new((*fAODPHOS)[indexPHOS++])
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("Fill MC PHOS :: Selected tracks %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());
214 else if(fFillEMCAL && fFidutialCut->IsInFidutialCut(momentum,"EMCAL") && momentum.Pt() > fEMCALPtMin){
215 if(fClonesArrayType == kTParticle) new((*fAODEMCAL)[indexEMCAL++]) TParticle(*particle) ;
217 Int_t index = iParticle ;
218 Int_t pdg = TMath::Abs(particle->GetPdgCode());
221 CheckOverlap(fEMCALOverlapAngle,particle->GetFirstMother(),iParticle, index, momentum, pdg);
223 Char_t ttype= AliAODCluster::kEMCALClusterv1;
224 Int_t labels[] = {index};
225 Float_t x[] = {momentum.X(), momentum.Y(), momentum.Z()};
226 AliAODCaloCluster *calo = new((*fAODEMCAL)[indexEMCAL++])
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("Fill MC EMCAL :: Selected tracks %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());
237 //____________________________________________________________________________
238 void AliCaloTrackMCReader::FillInputEvent(Int_t iEntry){
239 //Fill the event counter and input lists that are needed, called by the analysis maker.
241 fEventNumber = iEntry;
243 if(fClonesArrayType == kTParticle){
244 fAODCTS = new TClonesArray("TParticle",0);
245 fAODEMCAL = new TClonesArray("TParticle",0);
246 fAODPHOS = new TClonesArray("TParticle",0);
248 else if(fClonesArrayType == kAliAOD){
249 fAODCTS = new TClonesArray("AliAODTrack",0);
250 fAODPHOS = new TClonesArray("AliAODCaloCluster",0);
251 fAODEMCAL = new TClonesArray("AliAODCaloCluster",0);
253 else {AliFatal("Wrong clones type");}
257 Int_t indexEMCAL = 0 ;
258 Int_t indexPHOS = 0 ;
260 Int_t iParticle = 0 ;
261 Double_t charge = 0.;
263 for (iParticle = 0 ; iParticle < GetStack()->GetNtrack() ; iParticle++) {
264 TParticle * particle = GetStack()->Particle(iParticle);
265 TLorentzVector momentum;
268 Int_t pdg = particle->GetPdgCode();
270 //Keep particles with a given status
271 if(KeepParticleWithStatus(particle->GetStatusCode()) && (particle->Pt() > 0) ){
273 //Skip bizarre particles, they crash when charge is calculated
274 // if(TMath::Abs(pdg) == 3124 || TMath::Abs(pdg) > 10000000) continue ;
276 charge = TDatabasePDG::Instance()->GetParticle(pdg)->Charge();
277 particle->Momentum(momentum);
278 //---------- Charged particles ----------------------
279 if((charge != 0) && (momentum.Pt() > fCTSPtMin) && (fFidutialCut->IsInFidutialCut(momentum,"CTS"))){
281 //Particles in CTS acceptance
282 if(fDebug > 3 && momentum.Pt() > 0.2)
283 printf("Fill MC CTS :: Selected tracks E %3.2f, pt %3.2f, phi %3.2f, eta %3.2f\n",
284 momentum.E(),momentum.Pt(),momentum.Phi()*TMath::RadToDeg(),momentum.Eta());
286 if(fClonesArrayType == kTParticle) new((*fAODCTS)[indexCh++]) TParticle(*particle) ;
288 x[0] = particle->Vx(); x[1] = particle->Vy(); x[2] = particle->Vz();
289 p[0] = particle->Px(); p[1] = particle->Py(); p[2] = particle->Pz();
290 AliAODTrack *aodTrack = new((*fAODCTS)[indexCh++])
291 AliAODTrack(0, iParticle, p, kTRUE, x, kFALSE,NULL, 0, 0,
294 kFALSE, // No fit performed
295 kFALSE, // No fit performed
296 AliAODTrack::kPrimary,
298 SetTrackChargeAndPID(pdg, aodTrack);
301 //Keep some charged particles in calorimeters lists
302 if((fFillPHOS || fFillEMCAL) && KeepChargedParticles(pdg)) FillCalorimeters(iParticle, particle, momentum, indexPHOS, indexEMCAL);
306 //-------------Neutral particles ----------------------
307 else if(charge == 0 && (fFillPHOS || fFillEMCAL)){
308 //Skip neutrinos or other neutral particles
309 //if(SkipNeutralParticles(pdg) || particle->IsPrimary()) continue ; // protection added (MG)
310 if(SkipNeutralParticles(pdg)) continue ;
311 //Fill particle/calocluster arrays
313 FillCalorimeters(iParticle, particle, momentum, indexPHOS, indexEMCAL);
316 //Sometimes pi0 are stable for the generator, if needed decay it by hand
318 if(momentum.Pt() > fPHOSPtMin || momentum.Pt() > fEMCALPtMin){
319 TLorentzVector lvGamma1, lvGamma2 ;
320 //Double_t angle = 0;
323 MakePi0Decay(momentum,lvGamma1,lvGamma2);//,angle);
325 //Check if Pi0 is in the acceptance of the calorimeters, if aperture angle is small, keep it
326 TParticle * pPhoton1 = new TParticle(22,1,iParticle,0,0,0,lvGamma1.Px(),lvGamma1.Py(),
327 lvGamma1.Pz(),lvGamma1.E(),0,0,0,0);
328 TParticle * pPhoton2 = new TParticle(22,1,iParticle,0,0,0,lvGamma2.Px(),lvGamma2.Py(),
329 lvGamma2.Pz(),lvGamma2.E(),0,0,0,0);
330 //Fill particle/calocluster arrays
331 FillCalorimeters(iParticle,pPhoton1,lvGamma1, indexPHOS, indexEMCAL);
332 FillCalorimeters(iParticle,pPhoton2,lvGamma2, indexPHOS, indexEMCAL);
335 else FillCalorimeters(iParticle,particle, momentum, indexPHOS, indexEMCAL); //Add the rest
338 } //particle with correct status
341 fIndex2ndPhoton = -1; //In case of overlapping studies, reset for each event
344 //________________________________________________________________
345 Bool_t AliCaloTrackMCReader::KeepParticleWithStatus(Int_t status) const {
346 //Check if status is equal to one of the list
347 //These particles will be used in analysis.
349 for(Int_t i= 0; i < fStatusArray->GetSize(); i++)
350 if(status == fStatusArray->At(i)) return kTRUE ;
359 //________________________________________________________________
360 Bool_t AliCaloTrackMCReader::KeepChargedParticles(Int_t pdg) const {
361 //Check if pdg is equal to one of the charged particles list
362 //These particles will be added to the calorimeters lists.
364 for(Int_t i= 0; i < fChargedParticlesArray->GetSize(); i++)
365 if(TMath::Abs(pdg) == fChargedParticlesArray->At(i)) return kTRUE ;
371 //________________________________________________________________
372 void AliCaloTrackMCReader::Print(const Option_t * opt) const
374 //Print some relevant parameters set for the analysis
378 Info("**** Print **** ", "%s %s", GetName(), GetTitle() ) ;
380 printf("Decay Pi0? : %d\n", fDecayPi0) ;
381 printf("TClonesArray type : %d\n", fClonesArrayType) ;
382 printf("Check Overlap in Calo? : %d\n", fCheckOverlap) ;
383 printf("Keep all status? : %d\n", fKeepAllStatus) ;
385 if(!fKeepAllStatus) printf("Keep particles with status : ");
386 for(Int_t i= 0; i < fStatusArray->GetSize(); i++)
387 printf(" %d ; ", fStatusArray->At(i));
390 printf("Skip neutral particles in calo : ");
391 for(Int_t i= 0; i < fNeutralParticlesArray->GetSize(); i++)
392 printf(" %d ; ", fNeutralParticlesArray->At(i));
395 printf("Keep charged particles in calo : ");
396 for(Int_t i= 0; i < fChargedParticlesArray->GetSize(); i++)
397 printf(" %d ; ", fChargedParticlesArray->At(i));
402 //____________________________________________________________________________
403 void AliCaloTrackMCReader::MakePi0Decay(TLorentzVector &p0, TLorentzVector &p1,
404 TLorentzVector &p2) const {//, Double_t &angle) {
405 // Perform isotropic decay pi0 -> 2 photons
406 // p0 is pi0 4-momentum (inut)
407 // p1 and p2 are photon 4-momenta (output)
408 // cout<<"Boost vector"<<endl;
409 Double_t mPi0 = TDatabasePDG::Instance()->GetParticle(111)->Mass();
410 TVector3 b = p0.BoostVector();
411 //cout<<"Parameters"<<endl;
412 //Double_t mPi0 = p0.M();
413 Double_t phi = TMath::TwoPi() * gRandom->Rndm();
414 Double_t cosThe = 2 * gRandom->Rndm() - 1;
415 Double_t cosPhi = TMath::Cos(phi);
416 Double_t sinPhi = TMath::Sin(phi);
417 Double_t sinThe = TMath::Sqrt(1-cosThe*cosThe);
418 Double_t ePi0 = mPi0/2.;
419 //cout<<"ePi0 "<<ePi0<<endl;
420 //cout<<"Components"<<endl;
421 p1.SetPx(+ePi0*cosPhi*sinThe);
422 p1.SetPy(+ePi0*sinPhi*sinThe);
423 p1.SetPz(+ePi0*cosThe);
425 //cout<<"p1: "<<p1.Px()<<" "<<p1.Py()<<" "<<p1.Pz()<<" "<<p1.E()<<endl;
426 //cout<<"p1 Mass: "<<p1.Px()*p1.Px()+p1.Py()*p1.Py()+p1.Pz()*p1.Pz()-p1.E()*p1.E()<<endl;
427 p2.SetPx(-ePi0*cosPhi*sinThe);
428 p2.SetPy(-ePi0*sinPhi*sinThe);
429 p2.SetPz(-ePi0*cosThe);
431 //cout<<"p2: "<<p2.Px()<<" "<<p2.Py()<<" "<<p2.Pz()<<" "<<p2.E()<<endl;
432 //cout<<"p2 Mass: "<<p2.Px()*p2.Px()+p2.Py()*p2.Py()+p2.Pz()*p2.Pz()-p2.E()*p2.E()<<endl;
433 //cout<<"Boost "<<b.X()<<" "<<b.Y()<<" "<<b.Z()<<endl;
435 //cout<<"p1: "<<p1.Px()<<" "<<p1.Py()<<" "<<p1.Pz()<<" "<<p1.E()<<endl;
437 //cout<<"p2: "<<p2.Px()<<" "<<p2.Py()<<" "<<p2.Pz()<<" "<<p2.E()<<endl;
438 //cout<<"angle"<<endl;
439 //angle = p1.Angle(p2.Vect());
443 //____________________________________________________________________________
444 void AliCaloTrackMCReader::SetInputEvent(TObject* /*esd*/, TObject* aod, TObject* mc) {
445 // Connect the data pointer
446 SetMC((AliMCEvent*) mc);
447 SetAOD((AliAODEvent*) aod);
451 //________________________________________________________________
452 Bool_t AliCaloTrackMCReader::SkipNeutralParticles(Int_t pdg) const {
453 //Check if pdg is equal to one of the neutral particles list
454 //These particles will be skipped from analysis.
456 for(Int_t i= 0; i < fNeutralParticlesArray->GetSize(); i++)
457 if(TMath::Abs(pdg) == fNeutralParticlesArray->At(i)) return kTRUE ;
464 //____________________________________________________________________
465 void AliCaloTrackMCReader::SetTrackChargeAndPID(const Int_t pdgCode, AliAODTrack *track) const {
466 //Give a PID weight for tracks equal to 1 depending on the particle type
468 Float_t pid[10] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
474 pid[AliAODTrack::kUnknown] = 1.;
479 track->SetCharge(-1);
480 pid[AliAODTrack::kElectron] = 1.;
485 track->SetCharge(+1);
486 pid[AliAODTrack::kElectron] = 1.;
491 track->SetCharge(-1);
492 pid[AliAODTrack::kMuon] = 1.;
497 track->SetCharge(+1);
498 pid[AliAODTrack::kMuon] = 1.;
504 pid[AliAODTrack::kUnknown] = 1.;
509 track->SetCharge(+1);
510 pid[AliAODTrack::kPion] = 1.;
515 track->SetCharge(-1);
516 pid[AliAODTrack::kPion] = 1.;
522 pid[AliAODTrack::kUnknown] = 1.;
527 track->SetCharge(+1);
528 pid[AliAODTrack::kKaon] = 1.;
533 track->SetCharge(-1);
534 pid[AliAODTrack::kKaon] = 1.;
540 pid[AliAODTrack::kUnknown] = 1.;
545 track->SetCharge(+1);
546 pid[AliAODTrack::kProton] = 1.;
550 case -2212: // anti-p
551 track->SetCharge(-1);
552 pid[AliAODTrack::kProton] = 1.;
558 pid[AliAODTrack::kUnknown] = 1.;
564 pid[AliAODTrack::kUnknown] = 1.;
568 case -311: // anti-K0
570 pid[AliAODTrack::kUnknown] = 1.;
576 pid[AliAODTrack::kUnknown] = 1.;
582 pid[AliAODTrack::kUnknown] = 1.;
587 track->SetCharge(+1);
588 pid[AliAODTrack::kUnknown] = 1.;
593 track->SetCharge(-1);
594 pid[AliAODTrack::kUnknown] = 1.;
599 track->SetCharge(-1);
600 pid[AliAODTrack::kUnknown] = 1.;
606 pid[AliAODTrack::kUnknown] = 1.;
611 track->SetCharge(-1);
612 pid[AliAODTrack::kUnknown] = 1.;
617 track->SetCharge(-1);
618 pid[AliAODTrack::kUnknown] = 1.;
624 pid[AliAODTrack::kUnknown] = 1.;
628 case -3122: // anti-Lambda
630 pid[AliAODTrack::kUnknown] = 1.;
634 case -3222: // anti-Sigma-
635 track->SetCharge(-1);
636 pid[AliAODTrack::kUnknown] = 1.;
640 case -3212: // anti-Sigma0
642 pid[AliAODTrack::kUnknown] = 1.;
646 case -3112: // anti-Sigma+
647 track->SetCharge(+1);
648 pid[AliAODTrack::kUnknown] = 1.;
652 case -3322: // anti-Xi0
654 pid[AliAODTrack::kUnknown] = 1.;
658 case -3312: // anti-Xi+
659 track->SetCharge(+1);
662 case -3334: // anti-Omega+
663 track->SetCharge(+1);
664 pid[AliAODTrack::kUnknown] = 1.;
669 track->SetCharge(+1);
670 pid[AliAODTrack::kUnknown] = 1.;
675 track->SetCharge(-1);
676 pid[AliAODTrack::kUnknown] = 1.;
682 pid[AliAODTrack::kUnknown] = 1.;
686 case -421: // anti-D0
688 pid[AliAODTrack::kUnknown] = 1.;
693 track->SetCharge(-99);
694 pid[AliAODTrack::kUnknown] = 1.;
703 //____________________________________________________________________
704 void AliCaloTrackMCReader::SetCaloClusterPID(const Int_t pdgCode, AliAODCaloCluster *calo) const {
705 //Give a PID weight for CaloClusters equal to 1 depending on the particle type
707 Float_t pid[13] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
712 pid[AliAODCaloCluster::kPhoton] = 1.;
717 pid[AliAODCaloCluster::kElectron] = 1.;
722 pid[AliAODCaloCluster::kElectron] = 1.;
727 pid[AliAODCaloCluster::kCharged] = 1.;
732 pid[AliAODCaloCluster::kCharged] = 1.;
737 pid[AliAODCaloCluster::kPi0] = 1.;
742 pid[AliAODCaloCluster::kCharged] = 1.;
747 pid[AliAODCaloCluster::kCharged] = 1.;
752 pid[AliAODCaloCluster::kKaon0] = 1.;
753 pid[AliAODCaloCluster::kNeutral] = 1;
758 pid[AliAODCaloCluster::kCharged] = 1.;
763 pid[AliAODCaloCluster::kCharged] = 1.;
768 pid[AliAODCaloCluster::kNeutron] = 1.;
769 pid[AliAODCaloCluster::kNeutral] = 1.;
774 pid[AliAODCaloCluster::kCharged] = 1.;
778 case -2212: // anti-p
779 pid[AliAODCaloCluster::kCharged] = 1.;
784 pid[AliAODCaloCluster::kKaon0] = 1.;
785 pid[AliAODCaloCluster::kNeutral] = 1.;
790 pid[AliAODCaloCluster::kKaon0] = 1.;
791 pid[AliAODCaloCluster::kNeutral] = 1.;
795 case -311: // anti-K0
796 pid[AliAODCaloCluster::kKaon0] = 1.;
797 pid[AliAODCaloCluster::kNeutral] = 1.;
802 pid[AliAODCaloCluster::kNeutral] = 1.;
807 pid[AliAODCaloCluster::kUnknown] = 1.;
812 pid[AliAODCaloCluster::kUnknown] = 1.;
817 pid[AliAODCaloCluster::kUnknown] = 1.;
822 pid[AliAODCaloCluster::kUnknown] = 1.;
827 pid[AliAODCaloCluster::kUnknown] = 1.;
832 pid[AliAODCaloCluster::kUnknown] = 1.;
837 pid[AliAODCaloCluster::kUnknown] = 1.;
842 pid[AliAODCaloCluster::kNeutron] = 1.;
843 pid[AliAODCaloCluster::kNeutral] = 1.;
847 case -3122: // anti-Lambda
848 pid[AliAODCaloCluster::kUnknown] = 1.;
852 case -3222: // anti-Sigma-
853 pid[AliAODCaloCluster::kUnknown] = 1.;
857 case -3212: // anti-Sigma0
858 pid[AliAODCaloCluster::kUnknown] = 1.;
862 case -3112: // anti-Sigma+
863 pid[AliAODCaloCluster::kUnknown] = 1.;
867 case -3322: // anti-Xi0
868 pid[AliAODCaloCluster::kUnknown] = 1.;
872 case -3312: // anti-Xi+
873 pid[AliAODCaloCluster::kUnknown] = 1.;
877 case -3334: // anti-Omega+
878 pid[AliAODCaloCluster::kUnknown] = 1.;
883 pid[AliAODCaloCluster::kUnknown] = 1.;
888 pid[AliAODCaloCluster::kUnknown] = 1.;
893 pid[AliAODCaloCluster::kUnknown] = 1.;
897 case -421: // anti-D0
898 pid[AliAODCaloCluster::kUnknown] = 1.;
903 pid[AliAODCaloCluster::kUnknown] = 1.;