}
//________________________________________________________________________
-AliVParticle* AliParticleContainer::GetParticle(Int_t i) const {
-
+AliVParticle* AliParticleContainer::GetParticle(Int_t i) const
+{
//Get i^th jet in array
if(i<0 || i>fClArray->GetEntriesFast()) return 0;
}
//________________________________________________________________________
-AliVParticle* AliParticleContainer::GetParticleWithLabel(Int_t lab) const {
-
+AliVParticle* AliParticleContainer::GetParticleWithLabel(Int_t lab) const
+{
//Get particle with label lab in array
Int_t i = GetIndexFromLabel(lab);
}
//________________________________________________________________________
-AliVParticle* AliParticleContainer::GetAcceptParticleWithLabel(Int_t lab) const {
-
+AliVParticle* AliParticleContainer::GetAcceptParticleWithLabel(Int_t lab) const
+{
//Get particle with label lab in array
Int_t i = GetIndexFromLabel(lab);
}
//________________________________________________________________________
-AliVParticle* AliParticleContainer::GetNextAcceptParticle(Int_t i) {
-
+AliVParticle* AliParticleContainer::GetNextAcceptParticle(Int_t i)
+{
//Get next accepted particle; if i >= 0 (re)start counter from i; return 0 if no accepted particle could be found
if (i>=0) fCurrentID = i;
}
//________________________________________________________________________
-AliVParticle* AliParticleContainer::GetNextParticle(Int_t i) {
-
+AliVParticle* AliParticleContainer::GetNextParticle(Int_t i)
+{
//Get next particle; if i >= 0 (re)start counter from i; return 0 if no particle could be found
if (i>=0) fCurrentID = i;
//________________________________________________________________________
Int_t AliParticleContainer::GetNAcceptedParticles()
{
+ // Get number of accepted particles
Int_t nPart = 0;
AliParticleContainer(const char *name);
virtual ~AliParticleContainer(){;}
- void SetParticlePtCut(Double_t cut) { fParticlePtCut = cut ; }
- void SetParticleEtaLimits(Double_t min, Double_t max) { fParticleMaxEta = max ; fParticleMinEta = min ; }
- void SetParticlePhiLimits(Double_t min, Double_t max) { fParticleMaxPhi = max ; fParticleMinPhi = min ; }
- void SetTrackBitMap(UInt_t m) { fTrackBitMap = m ; }
- void SetMCTrackBitMap(UInt_t m) { fMCTrackBitMap = m ; }
- void SetMinMCLabel(Int_t s) { fMinMCLabel = s ; }
-
+ Bool_t AcceptParticle(AliVParticle *vp) const;
Double_t GetParticlePtCut() const { return fParticlePtCut; }
Double_t GetParticleEtaMin() const { return fParticleMinEta; }
Double_t GetParticleEtaMax() const { return fParticleMaxEta; }
AliVParticle *GetNextAcceptParticle(Int_t i=-1) ;
AliVParticle *GetNextParticle(Int_t i=-1) ;
void GetMomentum(TLorentzVector &mom, Int_t i) const;
- Bool_t AcceptParticle(AliVParticle *vp) const;
Int_t GetNParticles() const {return GetNEntries();}
Int_t GetNAcceptedParticles() ;
void SetClassName(const char *clname);
+ void SetMCTrackBitMap(UInt_t m) { fMCTrackBitMap = m ; }
+ void SetMinMCLabel(Int_t s) { fMinMCLabel = s ; }
+ void SetParticlePtCut(Double_t cut) { fParticlePtCut = cut ; }
+ void SetParticleEtaLimits(Double_t min, Double_t max) { fParticleMaxEta = max ; fParticleMinEta = min ; }
+ void SetParticlePhiLimits(Double_t min, Double_t max) { fParticleMaxPhi = max ; fParticleMinPhi = min ; }
+ void SetTrackBitMap(UInt_t m) { fTrackBitMap = m ; }
protected:
Double_t fParticlePtCut; // cut on particle pt