AliPhysics  9b6b435 (9b6b435)
AliParticleContainer Class Reference

Container for particles within the EMCAL framework. More...

#include <AliParticleContainer.h>

Inheritance diagram for AliParticleContainer:

Public Types

enum  EChargeCut_t {
  kNoChargeCut, kCharged, kNeutral, kPositiveCharge,
  kNegativeCharge
}
 
- Public Types inherited from AliEmcalContainer
enum  RejectionReason {
  kNullObject = 1<<0, kPtCut = 1<<1, kAcceptanceCut = 1<<2, kMCLabelCut = 1<<3,
  kBitMapCut = 1<<4, kHFCut = 1<<5, kNotHybridTrack = 1<<7, kMCFlag = 1<<8,
  kMCGeneratorCut = 1<<9, kChargeCut = 1<<10, kMinDistanceTPCSectorEdgeCut = 1<<11, kIsEMCalCut = 1<<13,
  kTimeCut = 1<<14, kEnergyCut = 1<<15, kExoticCut = 1<<16, kAreaCut = 1<<18,
  kAreaEmcCut = 1<<19, kZLeadingChCut = 1<<20, kZLeadingEmcCut = 1<<21, kNEFCut = 1<<22,
  kMinLeadPtCut = 1<<23, kMaxTrackPtCut = 1<<24, kMaxClusterPtCut = 1<<25, kFlavourCut = 1<<26,
  kTagStatus = 1<<27, kMinNConstituents = 1<<28, kOverlapTpcHole = 1<<29
}
 Bit definition for the reason a particle was rejected. More...
 

Public Member Functions

 AliParticleContainer ()
 
 AliParticleContainer (const char *name)
 
virtual ~AliParticleContainer ()
 
virtual TObjectoperator[] (int index) const
 
virtual Bool_t ApplyParticleCuts (const AliVParticle *vp, UInt_t &rejectionReason) const
 
virtual Bool_t ApplyKinematicCuts (const AliTLorentzVector &mom, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptObject (Int_t i, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptObject (const TObject *obj, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptParticle (const AliVParticle *vp, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptParticle (Int_t i, UInt_t &rejectionReason) const
 
Double_t GetParticlePtCut () const
 
Double_t GetParticleEtaMin () const
 
Double_t GetParticleEtaMax () const
 
Double_t GetParticlePhiMin () const
 
Double_t GetParticlePhiMax () const
 
void SetParticlePtCut (Double_t cut)
 
void SetParticleEtaLimits (Double_t min, Double_t max)
 
void SetParticlePhiLimits (Double_t min, Double_t max)
 
virtual AliVParticle * GetLeadingParticle (const char *opt="")
 
virtual AliVParticle * GetParticle (Int_t i=-1) const
 
virtual AliVParticle * GetAcceptParticle (Int_t i=-1) const
 
virtual AliVParticle * GetNextAcceptParticle ()
 
virtual AliVParticle * GetNextParticle ()
 
virtual Bool_t GetMomentumFromParticle (TLorentzVector &mom, const AliVParticle *part, Double_t mass) const
 
virtual Bool_t GetMomentumFromParticle (TLorentzVector &mom, const AliVParticle *part) const
 
virtual Bool_t GetMomentum (TLorentzVector &mom, Int_t i) const
 
virtual Bool_t GetAcceptMomentum (TLorentzVector &mom, Int_t i) const
 
virtual Bool_t GetNextMomentum (TLorentzVector &mom)
 
virtual Bool_t GetNextAcceptMomentum (TLorentzVector &mom)
 
Int_t GetNParticles () const
 
Int_t GetNAcceptedParticles () const
 
void SetMinDistanceTPCSectorEdge (Double_t min)
 
void SetCharge (EChargeCut_t c)
 
void SelectHIJING (Bool_t s)
 
void SetGeneratorIndex (Short_t i)
 
void SetArray (const AliVEvent *event)
 
const char * GetTitle () const
 
const AliParticleIterableContainer all () const
 
const AliParticleIterableContainer accepted () const
 
const AliParticleIterableMomentumContainer all_momentum () const
 
const AliParticleIterableMomentumContainer accepted_momentum () const
 
- Public Member Functions inherited from AliEmcalContainer
 AliEmcalContainer ()
 Default constructor. More...
 
 AliEmcalContainer (const char *name)
 Standard (named) constructor. More...
 
virtual ~AliEmcalContainer ()
 Destructor. More...
 
TClonesArray * GetArray () const
 
const TStringGetArrayName () const
 
const TStringGetClassName () const
 
TClass * GetClass () const
 
Double_t GetMinE () const
 
Double_t GetMaxE () const
 
Double_t GetMinPt () const
 
Double_t GetMaxPt () const
 
Double_t GetMinEta () const
 
Double_t GetMaxEta () const
 
Double_t GetMinPhi () const
 
Double_t GetMaxPhi () const
 
Double_t GetEtaSwing () const
 
Double_t GetPhiSwing () const
 
Double_t GetAcceptance () const
 
Int_t GetCurrentID () const
 
Bool_t GetIsParticleLevel () const
 
Int_t GetIndexFromLabel (Int_t lab) const
 Get the index in the container from a given label. More...
 
Int_t GetNEntries () const
 
Int_t GetNAcceptEntries () const
 Count accepted entries in the container. More...
 
void ResetCurrentID (Int_t i=-1)
 Reset the iterator to a given index. More...
 
void SetArrayName (const char *n)
 
void SetVertex (Double_t *vtx)
 
void SetBitMap (UInt_t m)
 
void SetIsParticleLevel (Bool_t b)
 
void SortArray ()
 
TClass * GetLoadedClass ()
 
virtual void NextEvent (const AliVEvent *event)
 Preparation for the next event. More...
 
void SetMinMCLabel (Int_t s)
 
void SetMaxMCLabel (Int_t s)
 
void SetMCLabelRange (Int_t min, Int_t max)
 
void SetELimits (Double_t min, Double_t max)
 
void SetMinE (Double_t min)
 
void SetMaxE (Double_t max)
 
void SetPtLimits (Double_t min, Double_t max)
 
void SetMinPt (Double_t min)
 
void SetMaxPt (Double_t max)
 
void SetEtaLimits (Double_t min, Double_t max)
 
void SetPhiLimits (Double_t min, Double_t max)
 
void SetMassHypothesis (Double_t m)
 
void SetClassName (const char *clname)
 
void SetIsEmbedding (Bool_t b)
 Set embedding status. More...
 
Bool_t GetIsEmbedding () const
 Get embedding status. More...
 
const char * GetName () const
 
void SetName (const char *n)
 Set the name of the class of the objets inside the underlying array. More...
 
const AliEmcalIterableContainer all () const
 Create an iterable container interface over all objects in the EMCAL container. More...
 
const AliEmcalIterableContainer accepted () const
 Create an iterable container interface over accepted objects in the EMCAL container. More...
 
const AliEmcalIterableMomentumContainer all_momentum () const
 Create an iterable container interface over all objects in the EMCAL container. More...
 
const AliEmcalIterableMomentumContainer accepted_momentum () const
 Create an iterable container interface over accepted objects in the EMCAL container. More...
 

Static Public Member Functions

static const AliEmcalContainerIndexMap< TClonesArray, AliVParticle > & GetEmcalContainerIndexMap ()
 Get the EMCal container utils associated with particle containers. More...
 
- Static Public Member Functions inherited from AliEmcalContainer
static Double_t RelativePhi (Double_t ang1, Double_t ang2)
 Calculates the relative phi between two angle values and returns it in [-Pi, +Pi] range. More...
 
static Bool_t SamePart (const AliVParticle *part1, const AliVParticle *part2, Double_t dist=1.e-4)
 Helper function to calculate the distance between two jets or a jet and a particle. More...
 
static UShort_t GetRejectionReasonBitPosition (UInt_t rejectionReason)
 Returns the highest bit in the rejection map as reason why the object was rejected. More...
 

Protected Attributes

Double_t fMinDistanceTPCSectorEdge
 require minimum distance to edge of TPC sector edge More...
 
EChargeCut_t fChargeCut
 select particles according to their charge More...
 
Short_t fGeneratorIndex
 select MC particles with generator index (default = -1 = switch off selection) More...
 
- Protected Attributes inherited from AliEmcalContainer
TString fName
 object name More...
 
TString fClArrayName
 name of branch More...
 
TString fBaseClassName
 name of the base class that this container can handle More...
 
Bool_t fIsParticleLevel
 whether or not it is a particle level object collection More...
 
UInt_t fBitMap
 bitmap mask More...
 
Double_t fMinPt
 Min. cut on particle \( p_{t} \). More...
 
Double_t fMaxPt
 Max. cut on particle \( p_{t} \). More...
 
Double_t fMaxE
 Min. cut on particle energy. More...
 
Double_t fMinE
 Max. cut on particle energy. More...
 
Double_t fMinEta
 Min. cut on particle \( \eta \). More...
 
Double_t fMaxEta
 Max. cut on particle \( \eta \). More...
 
Double_t fMinPhi
 Min. cut on particle \( \phi \). More...
 
Double_t fMaxPhi
 Max. cut on particle \( \phi \). More...
 
Int_t fMinMCLabel
 minimum MC label More...
 
Int_t fMaxMCLabel
 maximum MC label More...
 
Double_t fMassHypothesis
 if < 0 it will use a PID mass when available More...
 
Bool_t fIsEmbedding
 if true, this container will connect to an external event More...
 
TClonesArray * fClArray
 ! Pointer to array in input event More...
 
Int_t fCurrentID
 ! current ID for automatic loops More...
 
AliNamedArrayIfLabelMap
 ! Label-Index map More...
 
Double_t fVertex [3]
 ! event vertex array More...
 
TClass * fLoadedClass
 ! Class of the objects contained in the TClonesArray More...
 

Static Protected Attributes

static AliEmcalContainerIndexMap< TClonesArray, AliVParticle > fgEmcalContainerIndexMap
 ! Mapping from containers to indices More...
 

Private Member Functions

 AliParticleContainer (const AliParticleContainer &obj)
 
AliParticleContaineroperator= (const AliParticleContainer &other)
 

Additional Inherited Members

- Protected Member Functions inherited from AliEmcalContainer
virtual TString GetDefaultArrayName (const AliVEvent *const ev) const
 Handling default Array names. More...
 
void GetVertexFromEvent (const AliVEvent *event)
 Retrieve the vertex from the given event. More...
 

Detailed Description

Container for particles within the EMCAL framework.

Author
Marta Verweij
Salvatore Aiola salva.nosp@m.tore.nosp@m..aiol.nosp@m.a@ce.nosp@m.rn.ch, Yale University

Container with name, TClonesArray and cuts for particles

Definition at line 31 of file AliParticleContainer.h.

Member Enumeration Documentation

Enumerator
kNoChargeCut 
kCharged 
kNeutral 
kPositiveCharge 
kNegativeCharge 

Definition at line 33 of file AliParticleContainer.h.

Constructor & Destructor Documentation

AliParticleContainer::AliParticleContainer ( )

Default constructor.

Definition at line 36 of file AliParticleContainer.cxx.

AliParticleContainer::AliParticleContainer ( const char *  name)

Standard constructor.

Parameters
nameName of the particle branch (TClonesArray)

Definition at line 50 of file AliParticleContainer.cxx.

virtual AliParticleContainer::~AliParticleContainer ( )
inlinevirtual

Definition at line 37 of file AliParticleContainer.h.

AliParticleContainer::AliParticleContainer ( const AliParticleContainer obj)
private

Member Function Documentation

const AliParticleIterableMomentumContainer AliParticleContainer::accepted_momentum ( ) const

Create an iterable container interface over accepted objects in the EMCAL container.

Returns
iterable container over accepted objects in the EMCAL container

Definition at line 489 of file AliParticleContainer.cxx.

Referenced by AliAnalysisTaskEmcalJetPerformance::ComputeBackground(), AliAnalysisTaskJetPP::EstimateLocalBg(), AliAnalysisTaskJetPP::FillHistograms(), AliEmcalJetTask::FindJets(), AliEmcalCorrectionClusterTrackMatcher::GenerateEmcalParticles(), and SetGeneratorIndex().

virtual Bool_t AliParticleContainer::AcceptObject ( Int_t  i,
UInt_t rejectionReason 
) const
inlinevirtual

Implements AliEmcalContainer.

Reimplemented in AliJetContainer, AliTrackContainer, and AliMCParticleContainer.

Definition at line 49 of file AliParticleContainer.h.

virtual Bool_t AliParticleContainer::AcceptObject ( const TObject obj,
UInt_t rejectionReason 
) const
inlinevirtual

Implements AliEmcalContainer.

Reimplemented in AliJetContainer, AliTrackContainer, and AliMCParticleContainer.

Definition at line 50 of file AliParticleContainer.h.

Bool_t AliParticleContainer::AcceptParticle ( const AliVParticle *  vp,
UInt_t rejectionReason 
) const
virtual

Perform full particle selection consisting of kinematical and particle property selection on the particle provided. In case the particle is rejected, the reason for the rejection is encoded in the bitmap rejectionReason.

Parameters
vpParticle for which to perform the selection
rejectionReasonBitmap with the reason why the particle was accepted. Note: The value is not set to 0 in the function in order to combine the information with other selection steps.
Returns
True if the particle is accepted, false otherwise.

Reimplemented in AliTrackContainer, and AliMCParticleContainer.

Definition at line 271 of file AliParticleContainer.cxx.

Referenced by AcceptObject(), AliAnalysisTaskEmcal::AcceptTrack(), AliHadCorrTask::ApplyHadCorrAllTracks(), AliEmcalCorrectionClusterHadronicCorrection::ApplyHadCorrAllTracks(), AliHadCorrTask::ApplyHadCorrOneTrack(), AliEmcalCorrectionClusterHadronicCorrection::ApplyHadCorrOneTrack(), AliHadCorrTask::DoMatchedTracksLoop(), AliEmcalCorrectionClusterHadronicCorrection::DoMatchedTracksLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), GetAcceptParticle(), GetNAcceptedParticles(), AliAnalysisTaskLocalRho::PassesCuts(), AliAnalysisTaskJetV2::PassesCuts(), and TestParticleContainerIterator().

Bool_t AliParticleContainer::AcceptParticle ( Int_t  i,
UInt_t rejectionReason 
) const
virtual

Perform full particle selection consisting of kinematical and particle property selection on the \( i^{th} \) particle in the array. In case the particle is rejected, the reason for the rejection is encoded in the bitmap rejectionReason.

Parameters
[in]iIndex of the particle to select.
[out]rejectionReasonBitmap with the reason why the particle was accepted. Note: The value is not set to 0 in the function in order to combine the information with other selection steps.
Returns
True if the particle was accepted, false otherwise

Reimplemented in AliTrackContainer, and AliMCParticleContainer.

Definition at line 301 of file AliParticleContainer.cxx.

const AliParticleIterableContainer AliParticleContainer::all ( ) const

Create an iterable container interface over all objects in the EMCAL container.

Returns
iterable container over all objects in the EMCAL container

Definition at line 462 of file AliParticleContainer.cxx.

Referenced by SetGeneratorIndex(), NS_AliAnalysisTaskEmcalJetCDF::SortTracksPt(), and TestParticleContainerIterator().

const AliParticleIterableMomentumContainer AliParticleContainer::all_momentum ( ) const

Create an iterable container interface over all objects in the EMCAL container.

Returns
iterable container over all objects in the EMCAL container

Definition at line 480 of file AliParticleContainer.cxx.

Referenced by AliAnalysisTaskEmcalJetQA::DoTrackLoop(), and SetGeneratorIndex().

Bool_t AliParticleContainer::ApplyKinematicCuts ( const AliTLorentzVector mom,
UInt_t rejectionReason 
) const
virtual

Apply kinematical cuts to the momentum vector provided. In addition to the standard kinematical cuts in \( p_{t} \), \( \eta \) and \( \phi \), implemented in the AliEmcalContainer::ApplyKinematicCuts, also the distance to the TPC sector boundary is checked.

Parameters
[in]momMomentum vector for which
[out]rejectionReasonBitmap with the reason why the particle was accepted. Note: The value is not set to 0 in the function in order to combine the information with other selection steps.
Returns
True if the momentum vector was selected under the given cuts, false otherwise

Reimplemented from AliEmcalContainer.

Definition at line 398 of file AliParticleContainer.cxx.

Referenced by AliJetContainer::AcceptJet(), AliMCParticleContainer::AcceptMCParticle(), AliHFAODMCParticleContainer::AcceptMCParticle(), AcceptParticle(), AliTrackContainer::AcceptTrack(), and operator[]().

Bool_t AliParticleContainer::ApplyParticleCuts ( const AliVParticle *  vp,
UInt_t rejectionReason 
) const
virtual

Apply cuts on the particle properties. Implemented are

Parameters
[in]vpParticle for which the selection is performed
[out]rejectionReasonBitmap with the reason why the particle was accepted. Note: The value is not set to 0 in the function in order to combine the information with other selection steps.
Returns
True if the particle is accepted, False otherwise

Definition at line 324 of file AliParticleContainer.cxx.

Referenced by AcceptParticle(), AliMCParticleContainer::ApplyMCParticleCuts(), AliTrackContainer::ApplyTrackCuts(), and operator[]().

Bool_t AliParticleContainer::GetAcceptMomentum ( TLorentzVector &  mom,
Int_t  i 
) const
virtual

Fills a TLorentzVector with the monentum infomation of the \( i^{th} \) accepted particle in the container, using a global mass hypothesis. In case the provided index is out of range, or the particle under the index is not accepted, false is returned as return value.

Parameters
[out]momMomentum vector of the accepted particle
[in]iIndex to check
Returns
True if the request was successfull, false otherwise

Implements AliEmcalContainer.

Reimplemented in AliJetContainer, AliTrackContainer, AliMCParticleContainerToyModel, and AliTrackContainerToyModel.

Definition at line 239 of file AliParticleContainer.cxx.

Referenced by AliMCParticleContainerToyModel::GetAcceptMomentum(), and SetParticlePhiLimits().

static const AliEmcalContainerIndexMap<TClonesArray, AliVParticle>& AliParticleContainer::GetEmcalContainerIndexMap ( )
inlinestatic
AliVParticle * AliParticleContainer::GetLeadingParticle ( const char *  opt = "")
virtual

Get the leading particle in the container. If "p" is contained in the parameter opt, then the absolute momentum is use instead of the transverse momentum.

Parameters
[in]optOptions for the selection of the leading particle
Returns
Leading particle in the container

Definition at line 66 of file AliParticleContainer.cxx.

Referenced by AliMCParticleContainer::GetLeadingMCParticle(), AliTrackContainer::GetLeadingTrack(), AliAnalysisTaskChargedJetsHadronCF::Run(), and SetParticlePhiLimits().

Bool_t AliParticleContainer::GetMomentum ( TLorentzVector &  mom,
Int_t  i 
) const
virtual

Fills a TLorentzVector with the monentum infomation of the \( i^{th} \) particle in the container, using a global mass hypothesis. In case the provided index is out of range, false is returned as return value.

Parameters
[out]momMomentum vector of the \( i^{th} \) particle in the array
[in]iIndex of th particle to check
Returns
True if the request was successfull, false otherwise

Implements AliEmcalContainer.

Reimplemented in AliJetContainer, AliTrackContainer, AliMCParticleContainerToyModel, and AliTrackContainerToyModel.

Definition at line 207 of file AliParticleContainer.cxx.

Referenced by AliMCParticleContainer::AcceptMCParticle(), AliHFAODMCParticleContainer::AcceptMCParticle(), AcceptParticle(), AliMCParticleContainerToyModel::GetMomentum(), and SetParticlePhiLimits().

Bool_t AliParticleContainer::GetMomentumFromParticle ( TLorentzVector &  mom,
const AliVParticle *  part,
Double_t  mass 
) const
virtual

Retrieve momentum information of a particle (part) and fill a TLorentzVector with it. In case the optional parameter mass is provided, it is used as mass hypothesis, otherwise the mass hypothesis from the particle itself is used.

Parameters
[out]momMomentum vector to be filled
[in]partParticle from which the momentum information is obtained.
[in]mass(Optional) Mass hypothesis
Returns

Definition at line 173 of file AliParticleContainer.cxx.

Referenced by AliMCParticleContainer::AcceptMCParticle(), AliHFAODMCParticleContainer::AcceptMCParticle(), AcceptParticle(), GetAcceptMomentum(), GetMomentum(), AliMCParticleContainerToyModel::GetMomentumFromParticle(), GetMomentumFromParticle(), GetNextAcceptMomentum(), GetNextMomentum(), and SetParticlePhiLimits().

Bool_t AliParticleContainer::GetMomentumFromParticle ( TLorentzVector &  mom,
const AliVParticle *  part 
) const
virtual

Fills a TLorentzVector with the momentum information of the particle provided under a global mass hypothesis.

Parameters
[out]momMomentum vector of the particle provided
[in]partParticle from which to obtain the momentum information
Returns
Always true

Definition at line 193 of file AliParticleContainer.cxx.

Bool_t AliParticleContainer::GetNextAcceptMomentum ( TLorentzVector &  mom)
virtual

Fills a TLorentzVector with the monentum infomation of the next accepted particle in the container, using a global mass hypothesis. In case the iteration reached the end of the array, false is returned as return value.

Deprecated:
Old style iterator - use accept_iterator instead
Parameters
[out]momMomentum vector of the next particle in the array
Returns
True if the request was successfull, false (no more entries) otherwise

Implements AliEmcalContainer.

Reimplemented in AliJetContainer, AliTrackContainer, AliMCParticleContainerToyModel, and AliTrackContainerToyModel.

Definition at line 255 of file AliParticleContainer.cxx.

Referenced by AliMCParticleContainerToyModel::GetNextAcceptMomentum(), and SetParticlePhiLimits().

AliVParticle * AliParticleContainer::GetNextAcceptParticle ( )
virtual

Iterator over accepted particles in the container. Get the next accepted particle in the array. If the end is reached, NULL is returned.

Deprecated:
Only for backward compatibility - use accept_iterator instead
Returns
Next accepted particle in the array (NULL if the end is reached)

Reimplemented in AliTrackContainer, and AliMCParticleContainer.

Definition at line 132 of file AliParticleContainer.cxx.

Referenced by AliAnalysisTaskSEDmesonsFilterCJ::AddEventTracks(), AliAnalysisTaskSEDmesonsFilterCJ::AddMCEventTracks(), AliAnalysisTaskEmcalJetSparseMaker::CalcAysPlane(), AliAnalysisTaskEmcalTmpSparseMaker::CalcAysPlane(), AliAnalysisTaskJetV2::CalculateRandomCone(), AliAnalysisTaskSoftDrop::CheckClusTrackMatching(), AliAnalysisTaskJetJTJT::CheckClusTrackMatching(), AliEmcalPicoTrackInGridMaker::CreateGridCells(), AliAnalysisTaskPi0Hadron::DoClusterLoop(), AliJetConstituentTagCopier::DoParticleLoop(), AliAnalysisTaskPi0Hadron::DoTrackLoop(), AliAnalysisTaskHJetSpectra::EstimateBgCone(), AliAnalysisTaskScale::FillHistograms(), AliAnalysisTaskDcalDijetPerf::FillHistograms(), AliAnalysisTaskSoftDrop::FillHistograms(), AliAnalysisTaskJetJTJT::FillHistograms(), AliAnalysisTaskEmcalJetTriggerQA::FillHistograms(), AliAnalysisTaskDijetHadron::FillHistograms(), AliAnalysisTaskEmcalTriggerPatchClusterMatch::FillHistograms(), AliAnalysisTaskEmcalTriggerPatchJetMatch::FillHistograms(), AliAnalysisTaskHJetSpectra::FillHistograms(), AliAnalysisTaskEmcalTmpSparseMaker::FillSparseTrks(), AliEmcalClusTrackMatcherTask::GenerateEmcalParticles(), AliAnalysisTaskEmcalJetMassBkg::GetCone(), AliAnalysisTaskHJetSpectra::GetConePt(), GetLeadingParticle(), GetNextAcceptMomentum(), AliAnalysisTaskDeltaPt::GetRandomCone(), AliAnalysisTaskParticleInJet::GetSelectedParticles(), EmcalHJetMassAnalysis::AliAnalysisTaskEmcalHJetMass::GetSingleInclusiveTT(), AliAnalysisTaskJetExtractor::IsTriggerTrackInEvent(), AliEmcalTrackPropagatorTask::Run(), AliAnalysisTaskRhoFlow::Run(), AliAnalysisTaskRhoAverage::Run(), AliAnalysisTaskEmcalJetv2QA::Run(), EmcalHJetMassAnalysis::AliAnalysisTaskEmcalHJetMass::Run(), AliAnalysisTaskEmcalJetFlavourTagExample::Run(), and SetParticlePhiLimits().

Bool_t AliParticleContainer::GetNextMomentum ( TLorentzVector &  mom)
virtual

Fills a TLorentzVector with the monentum infomation of the next particle in the container, using a global mass hypothesis. In case the iterator reached the end of the array, false is returned as return value.

Deprecated:
Old style iterator - use all_iterator instead
Parameters
[out]momMomentum vector of the next particle
Returns
True if the request was successfull, false otherwise

Implements AliEmcalContainer.

Reimplemented in AliJetContainer, AliTrackContainer, AliMCParticleContainerToyModel, and AliTrackContainerToyModel.

Definition at line 223 of file AliParticleContainer.cxx.

Referenced by AliMCParticleContainerToyModel::GetNextMomentum(), and SetParticlePhiLimits().

AliVParticle * AliParticleContainer::GetNextParticle ( )
virtual

Iterator over all particles in the container. Get the next particle in the array. If the end is reached, NULL is returned.

Deprecated:
Only for backward compatibility - use all_iterator instead.
Returns
Next particle in the array (NULL if the end is reached)

Reimplemented in AliTrackContainer, and AliMCParticleContainer.

Definition at line 151 of file AliParticleContainer.cxx.

Referenced by GetNextMomentum(), and SetParticlePhiLimits().

Double_t AliParticleContainer::GetParticlePhiMax ( ) const
inline
Double_t AliParticleContainer::GetParticlePhiMin ( ) const
inline
Double_t AliParticleContainer::GetParticlePtCut ( ) const
inline

Definition at line 53 of file AliParticleContainer.h.

const char * AliParticleContainer::GetTitle ( ) const

Make a title of the container name based on the min \( p_{t} \) used in the particle selection process.

Returns
Title of the container

Definition at line 434 of file AliParticleContainer.cxx.

Referenced by AliJetContainer::GenerateJetName(), and SetGeneratorIndex().

AliParticleContainer& AliParticleContainer::operator= ( const AliParticleContainer other)
private
virtual TObject* AliParticleContainer::operator[] ( int  index) const
inlinevirtual

Index operator: Providing access to track in the container with the given index.

Parameters
[in]indexIndex of the particle in the array
Returns
Particle at the given index

Implements AliEmcalContainer.

Definition at line 45 of file AliParticleContainer.h.

void AliParticleContainer::SelectHIJING ( Bool_t  s)
inline

Definition at line 76 of file AliParticleContainer.h.

void AliParticleContainer::SetArray ( const AliVEvent *  event)
virtual

Connect the container to the array with content stored inside the virtual event. The object name in the event must match the name given in the constructor.

Additionally register the array into the index map.

Parameters
eventInput event containing the array with content.

Reimplemented from AliEmcalContainer.

Reimplemented in AliJetContainer, and AliTrackContainer.

Definition at line 449 of file AliParticleContainer.cxx.

Referenced by AliEmcalCorrectionTask::ExecOnce(), AliAnalysisTaskEmcal::ExecOnce(), AliTrackContainer::SetArray(), and SetGeneratorIndex().

void AliParticleContainer::SetGeneratorIndex ( Short_t  i)
inline

Definition at line 77 of file AliParticleContainer.h.

void AliParticleContainer::SetMinDistanceTPCSectorEdge ( Double_t  min)
inline

Definition at line 74 of file AliParticleContainer.h.

void AliParticleContainer::SetParticleEtaLimits ( Double_t  min,
Double_t  max 
)
inline
void AliParticleContainer::SetParticlePhiLimits ( Double_t  min,
Double_t  max 
)
inline

Member Data Documentation

EChargeCut_t AliParticleContainer::fChargeCut
protected

select particles according to their charge

Definition at line 100 of file AliParticleContainer.h.

Referenced by ApplyParticleCuts(), and SetCharge().

AliEmcalContainerIndexMap< TClonesArray, AliVParticle > AliParticleContainer::fgEmcalContainerIndexMap
staticprotected

! Mapping from containers to indices

Definition at line 96 of file AliParticleContainer.h.

Referenced by SetArray(), and SetGeneratorIndex().

Short_t AliParticleContainer::fGeneratorIndex
protected

select MC particles with generator index (default = -1 = switch off selection)

Definition at line 101 of file AliParticleContainer.h.

Referenced by ApplyParticleCuts(), SelectHIJING(), and SetGeneratorIndex().

Double_t AliParticleContainer::fMinDistanceTPCSectorEdge
protected

require minimum distance to edge of TPC sector edge

Definition at line 99 of file AliParticleContainer.h.

Referenced by ApplyKinematicCuts(), and SetMinDistanceTPCSectorEdge().


The documentation for this class was generated from the following files: