AliPhysics  608b256 (608b256)
AliTrackContainerToyModel Class Reference

Allows to modify the tracks to implement toy models. More...

#include <AliTrackContainerToyModel.h>

Inheritance diagram for AliTrackContainerToyModel:

Public Member Functions

 AliTrackContainerToyModel ()
 
 AliTrackContainerToyModel (const char *name)
 
void SetTrackScalePt (Double_t t)
 
void SetRandomizeEtaPhi (Double_t t)
 
virtual Bool_t GetMomentumFromTrack (TLorentzVector &mom, const AliVTrack *track, Double_t mass) 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)
 
void ScalePtOfLorentzVector (TLorentzVector &mom) const
 
void SetRandomEtaPhiOfLorentzVector (TLorentzVector &mom) const
 
- Public Member Functions inherited from AliTrackContainer
 AliTrackContainer ()
 
 AliTrackContainer (const char *name, const char *period="")
 
virtual ~AliTrackContainer ()
 
virtual Bool_t ApplyTrackCuts (const AliVTrack *vp, 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 (Int_t i, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptParticle (const AliVParticle *vp, UInt_t &rejectionReason) const
 
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 AcceptTrack (const AliVTrack *vp, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptTrack (Int_t i, UInt_t &rejectionReason) const
 
virtual AliVTrack * GetLeadingTrack (const char *opt="")
 
virtual AliVTrack * GetTrack (Int_t i=-1) const
 
virtual AliVTrack * GetAcceptTrack (Int_t i=-1) const
 
virtual AliVTrack * GetNextAcceptTrack ()
 
virtual AliVTrack * GetNextTrack ()
 
Char_t GetTrackType (const AliVTrack *track) const
 
virtual Bool_t GetMomentumFromTrack (TLorentzVector &mom, const AliVTrack *track) const
 
Int_t GetNTracks () const
 
Int_t GetNAcceptedTracks ()
 
ETrackFilterType_t GetTrackFilterType () const
 
Char_t GetTrackType (Int_t i) const
 
void SetArray (const AliVEvent *event)
 
void SetTrackFilterType (ETrackFilterType_t f)
 
void SetFilterHybridTracks (Bool_t f)
 
void SetITSHybridTrackDistinction (Bool_t doUse)
 
void SetTrackCutsPeriod (const char *period)
 
void AddTrackCuts (AliVCuts *cuts)
 
Int_t GetNumberOfCutObjects () const
 
AliVCuts * GetTrackCuts (Int_t icut)
 
void SetAODFilterBits (UInt_t bits)
 
void AddAODFilterBit (UInt_t bit)
 
UInt_t GetAODFilterBits () const
 
Bool_t IsHybridTrackSelection () const
 
void SetSelectionModeAny ()
 
void SetSelectionModeAll ()
 
void NextEvent (const AliVEvent *event)
 
const char * GetTitle () const
 
Bool_t CheckArrayConsistency () const
 Test function checking whether the entries in the track array are the same as in the input array. More...
 
const AliTrackIterableContainer all () const
 
const AliTrackIterableContainer accepted () const
 
const AliTrackIterableMomentumContainer all_momentum () const
 
const AliTrackIterableMomentumContainer accepted_momentum () const
 
- Public Member Functions inherited from AliParticleContainer
 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
 
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 Bool_t GetMomentumFromParticle (TLorentzVector &mom, const AliVParticle *part, Double_t mass) const
 
virtual Bool_t GetMomentumFromParticle (TLorentzVector &mom, const AliVParticle *part) const
 
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)
 
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 ()
 
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...
 

Protected Member Functions

void ExecOnce ()
 
- Protected Member Functions inherited from AliTrackContainer
virtual TString GetDefaultArrayName (const AliVEvent *const ev) const
 
PWG::EMCAL::AliEmcalTrackSelResultHybrid::HybridType_t GetHybridDefinition (const PWG::EMCAL::AliEmcalTrackSelResultPtr &selectionResult) const
 
- Protected Member Functions inherited from AliEmcalContainer
void GetVertexFromEvent (const AliVEvent *event)
 Retrieve the vertex from the given event. More...
 

Protected Attributes

Double_t fTrackScalePt
 
Double_t fTrackEtaWindow
 
Double_t fRandomizeEtaPhi
 
- Protected Attributes inherited from AliTrackContainer
ETrackFilterType_t fTrackFilterType
 track filter type More...
 
TObjArrayfListOfCuts
 list of track cut objects More...
 
Bool_t fSelectionModeAny
 accept track if any of the cuts is fulfilled More...
 
Bool_t fITSHybridTrackDistinction
 Distinct hybrid tracks via SPD information. More...
 
UInt_t fAODFilterBits
 track filter bits More...
 
TString fTrackCutsPeriod
 period string used to generate track cuts More...
 
AliEmcalTrackSelectionfEmcalTrackSelection
 ! track selection object More...
 
TrackOwnerHandler fFilteredTracks
 ! tracks filtered using fEmcalTrackSelection More...
 
TArrayC fTrackTypes
 ! track types More...
 
- Protected Attributes inherited from AliParticleContainer
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...
 

Additional Inherited Members

- Public Types inherited from AliTrackContainer
enum  ETrackType_t {
  kRejected = -1, kUndefined = 0, kHybridGlobal = 0, kHybridConstrainedTrue = 1,
  kHybridConstrainedFake = 2, kHybridConstrainedNoITSrefit = 3
}
 Status of a track after track selection. More...
 
typedef AliEmcalTrackSelection::ETrackFilterType_t ETrackFilterType_t
 
- Public Types inherited from AliParticleContainer
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...
 
- Static Public Member Functions inherited from AliTrackContainer
static void SetDefTrackCutsPeriod (const char *period)
 
static TString GetDefTrackCutsPeriod ()
 
- Static Public Member Functions inherited from AliParticleContainer
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...
 
- Static Public Attributes inherited from AliTrackContainer
static const std::map< std::string, AliEmcalTrackSelection::ETrackFilterType_tfgkTrackFilterTypeMap
 Relates string to the track filter enumeration for YAML configuration. More...
 
- Static Protected Attributes inherited from AliTrackContainer
static TString fgDefTrackCutsPeriod = ""
 ! default period string used to generate track cuts More...
 
- Static Protected Attributes inherited from AliParticleContainer
static AliEmcalContainerIndexMap< TClonesArray, AliVParticle > fgEmcalContainerIndexMap
 ! Mapping from containers to indices More...
 

Detailed Description

Allows to modify the tracks to implement toy models.

This class derives from AliTrackContainer. It allows to select tracks based and modify their momenta according to some toy modeling. At the moment only pt scaling is implemented

Author
Salvatore Aiola salva.nosp@m.tore.nosp@m..aiol.nosp@m.a@ce.nosp@m.rn.ch, Yale University
Leticia Conqueiro Mendez letic.nosp@m.ia.c.nosp@m.unque.nosp@m.iro..nosp@m.mende.nosp@m.z@ce.nosp@m.rn.ch
Date
Jul 22, 2016

Definition at line 37 of file AliTrackContainerToyModel.h.

Constructor & Destructor Documentation

AliTrackContainerToyModel::AliTrackContainerToyModel ( )

This is the default constructor, used for ROOT I/O purposes.

Definition at line 26 of file AliTrackContainerToyModel.cxx.

AliTrackContainerToyModel::AliTrackContainerToyModel ( const char *  name)

This is the standard named constructor.

Parameters
nameName of the particle collection

Definition at line 38 of file AliTrackContainerToyModel.cxx.

Member Function Documentation

void AliTrackContainerToyModel::ExecOnce ( )
protected

Definition at line 174 of file AliTrackContainerToyModel.cxx.

Referenced by SetRandomizeEtaPhi().

Bool_t AliTrackContainerToyModel::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. Overrides the AliTrackContainer methods by applying a pT scaling factor to the TLorentzVector.

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

Reimplemented from AliTrackContainer.

Definition at line 93 of file AliTrackContainerToyModel.cxx.

Referenced by SetRandomizeEtaPhi().

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

Fills a TLorentzVector with the momentum information 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. Overrides the AliTrackContainer methods by applying a pT scaling factor to the TLorentzVector.

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

Reimplemented from AliTrackContainer.

Definition at line 74 of file AliTrackContainerToyModel.cxx.

Referenced by SetRandomizeEtaPhi().

Bool_t AliTrackContainerToyModel::GetMomentumFromTrack ( TLorentzVector &  mom,
const AliVTrack *  track,
Double_t  mass 
) const
virtual

Retrieve momentum information of a track 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. Overrides the AliTrackContainer methods by applying a pT scaling factor to the TLorentzVector.

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

Reimplemented from AliTrackContainer.

Definition at line 56 of file AliTrackContainerToyModel.cxx.

Referenced by SetRandomizeEtaPhi().

Bool_t AliTrackContainerToyModel::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. Overrides the AliTrackContainer methods by applying a pT scaling factor to the TLorentzVector.

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

Reimplemented from AliTrackContainer.

Definition at line 129 of file AliTrackContainerToyModel.cxx.

Referenced by SetRandomizeEtaPhi().

Bool_t AliTrackContainerToyModel::GetNextMomentum ( TLorentzVector &  mom)
virtual

Fills a TLorentzVector with the momentum information 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. Overrides the AliTrackContainer methods by applying a pT scaling factor to the TLorentzVector.

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

Reimplemented from AliTrackContainer.

Definition at line 111 of file AliTrackContainerToyModel.cxx.

Referenced by SetRandomizeEtaPhi().

void AliTrackContainerToyModel::ScalePtOfLorentzVector ( TLorentzVector &  mom) const

Scales the pt of a TLorentzVector with a constant factor.

Parameters
momTLorentzVector object reference to be scaled.

Definition at line 141 of file AliTrackContainerToyModel.cxx.

Referenced by GetAcceptMomentum(), GetMomentum(), GetMomentumFromTrack(), GetNextAcceptMomentum(), GetNextMomentum(), and SetRandomizeEtaPhi().

void AliTrackContainerToyModel::SetRandomEtaPhiOfLorentzVector ( TLorentzVector &  mom) const

Assigns random phi,eta to thetracks,keeping their momentum

Parameters
momTLorentzVector object reference to be scaled.

Definition at line 158 of file AliTrackContainerToyModel.cxx.

Referenced by GetAcceptMomentum(), GetMomentum(), GetMomentumFromTrack(), GetNextAcceptMomentum(), GetNextMomentum(), and SetRandomizeEtaPhi().

void AliTrackContainerToyModel::SetRandomizeEtaPhi ( Double_t  t)
inline

Definition at line 43 of file AliTrackContainerToyModel.h.

void AliTrackContainerToyModel::SetTrackScalePt ( Double_t  t)
inline

Definition at line 42 of file AliTrackContainerToyModel.h.

Member Data Documentation

Double_t AliTrackContainerToyModel::fRandomizeEtaPhi
protected
Double_t AliTrackContainerToyModel::fTrackEtaWindow
protected

Definition at line 55 of file AliTrackContainerToyModel.h.

Referenced by SetRandomEtaPhiOfLorentzVector().

Double_t AliTrackContainerToyModel::fTrackScalePt
protected

Definition at line 54 of file AliTrackContainerToyModel.h.

Referenced by ScalePtOfLorentzVector(), and SetTrackScalePt().


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