7 #include <TClonesArray.h>
29 fClassName =
"AliVCluster";
59 AliVCluster *cluster = 0;
61 if (option.Contains(
"e")) {
63 if (cluster->E() > clusterMax->E()) clusterMax = cluster;
71 cluster->GetMomentum(mom,const_cast<Double_t*>(
fVertex));
90 if(i<0 || i>
fClArray->GetEntriesFast())
return 0;
91 AliVCluster *vp =
static_cast<AliVCluster*
>(
fClArray->At(i));
107 AliDebug(2,
"Cluster not accepted.");
170 if(vc) vc->GetMomentum(mom,const_cast<Double_t*>(
fVertex));
185 if (!clus->IsEMCAL()) {
192 AliDebug(2,
"MC Cluster not accepted because of MC bit map.");
199 AliDebug(2,
"Cluster not accepted because of bit map.");
215 TLorentzVector nPart;
216 clus->GetMomentum(nPart, const_cast<Double_t*>(
fVertex));
247 if (cls.InheritsFrom(
"AliVCluster"))
fClassName = clname;
248 else AliError(Form(
"Unable to set class name %s for a AliClusterContainer, it must inherits from AliVCluster!",clname));
Bool_t AcceptCluster(AliVCluster *vp)
Int_t GetIndexFromLabel(Int_t lab) const
AliVCluster * GetAcceptClusterWithLabel(Int_t lab)
void GetMomentum(TLorentzVector &mom, Int_t i) const
Int_t GetNAcceptedClusters()
AliVCluster * GetNextAcceptCluster(Int_t i=-1)
AliVCluster * GetLeadingCluster(const char *opt="")
UInt_t fRejectionReason
event vertex array
AliVCluster * GetAcceptCluster(Int_t i)
AliVCluster * GetNextCluster(Int_t i=-1)
ClassImp(AliClusterContainer) AliClusterContainer
AliVCluster * GetCluster(Int_t i) const
void SetClassName(const char *clname)
Double_t fVertex[3]
Label-Index map.
AliVCluster * GetClusterWithLabel(Int_t lab) const
Int_t GetNEntries() const
Int_t fCurrentID
TClonesArray.