9 #include <TClonesArray.h> 11 #include <TLorentzVector.h> 14 #include "AliVCluster.h" 15 #include "AliVParticle.h" 25 fCleanBeforeCopy(kFALSE),
27 fMCParticleContainer(0)
35 fCleanBeforeCopy(kFALSE),
37 fMCParticleContainer(0)
70 AliVCluster *cluster = 0;
73 cont->ResetCurrentID();
75 Int_t mcLabel = cluster->GetLabel();
76 if (mcLabel > 0) cluster->SetBit(TObject::kBitMask, kFALSE);
83 cont->ResetCurrentID();
85 Int_t mcLabel = cluster->GetLabel();
89 cluster->GetMomentum(vect,
fVertex);
90 AliDebug(2, Form(
"Cluster %d, pt = %f, eta = %f, phi = %f, label = %d",
91 cont->GetCurrentID(), cluster->E(), vect.Eta(), vect.Phi(), mcLabel));
92 totalEnergy += cluster->E();
94 if (index < 0)
continue;
97 AliError(Form(
"%s: Could not get MC particle %d", GetName(), index));
100 AliDebug(2, Form(
"Matched with particle %d, pt = %f, eta = %f, phi = %f",
101 index, part->E(), part->Eta(), part->Phi()));
102 UInt_t bits = (
UInt_t)part->TestBits(TObject::kBitMask);
103 cluster->SetBit(bits);
107 AliDebug(2, Form(
"Total energy of MC clusters = %f", totalEnergy));
113 AliVParticle *track = 0;
116 cont->ResetCurrentID();
118 Int_t mcLabel = TMath::Abs(track->GetLabel());
119 if (mcLabel > 0) track->SetBit(TObject::kBitMask, kFALSE);
125 cont->ResetCurrentID();
127 Int_t mcLabel = TMath::Abs(track->GetLabel());
131 if (index < 0)
continue;
134 AliError(Form(
"%s: Could not get MC particle %d", GetName(), index));
137 AliDebug(3, Form(
"Track %d, pt = %f, eta = %f, phi = %f, label = %d is matched with particle %d, pt = %f, eta = %f, phi = %f",
138 cont->GetCurrentID(), track->Pt(), track->Eta(), track->Phi(), mcLabel, index, part->Pt(), part->Eta(), part->Phi()));
139 UInt_t bits = (
UInt_t)part->TestBits(TObject::kBitMask);
void DoClusterLoop(AliClusterContainer *cont)
TObjArray fClusterCollArray
cluster collection array
virtual AliVParticle * GetNextAcceptParticle()
Base task in the EMCAL framework.
void DoParticleLoop(AliParticleContainer *cont)
AliJetConstituentTagCopier()
virtual ~AliJetConstituentTagCopier()
Container for particles within the EMCAL framework.
TObjArray fParticleCollArray
particle/track collection array
virtual AliVParticle * GetParticle(Int_t i=-1) const
Double_t fVertex[3]
!event vertex
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
AliParticleContainer * fMCParticleContainer
Container structure for EMCAL clusters.
AliVCluster * GetNextAcceptCluster()