AliPhysics  b6a3523 (b6a3523)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMCParticleContainerToyModel Class Reference

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

#include <AliMCParticleContainerToyModel.h>

Inheritance diagram for AliMCParticleContainerToyModel:

Public Member Functions

 AliMCParticleContainerToyModel ()
 
 AliMCParticleContainerToyModel (const char *name)
 
void SetTrackScalePt (Double_t t)
 
void SetRandomizeEtaPhi (Double_t t)
 
virtual Bool_t GetMomentumFromParticle (TLorentzVector &mom, const AliAODMCParticle *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 AliMCParticleContainer
 AliMCParticleContainer ()
 
 AliMCParticleContainer (const char *name)
 
virtual ~AliMCParticleContainer ()
 
virtual Bool_t ApplyMCParticleCuts (const AliAODMCParticle *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 Bool_t AcceptMCParticle (const AliAODMCParticle *vp, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptMCParticle (Int_t i, UInt_t &rejectionReason) const
 
virtual AliAODMCParticle * GetMCParticleWithLabel (Int_t lab) const
 
virtual AliAODMCParticle * GetAcceptMCParticleWithLabel (Int_t lab)
 
virtual AliAODMCParticle * GetLeadingMCParticle (const char *opt="")
 
virtual AliAODMCParticle * GetMCParticle (Int_t i=-1) const
 
virtual AliAODMCParticle * GetAcceptMCParticle (Int_t i=-1) const
 
virtual AliAODMCParticle * GetNextAcceptMCParticle ()
 
virtual AliAODMCParticle * GetNextMCParticle ()
 
virtual AliVParticle * GetParticle (Int_t i=-1) const
 
virtual AliVParticle * GetAcceptParticle (Int_t i=-1) const
 
virtual AliVParticle * GetNextAcceptParticle ()
 
virtual AliVParticle * GetNextParticle ()
 
void SetMCFlag (UInt_t m)
 
void SelectPhysicalPrimaries (Bool_t s)
 
const char * GetTitle () const
 
const
AliMCParticleIterableContainer 
all () const
 
const
AliMCParticleIterableContainer 
accepted () const
 
const
AliMCParticleIterableMomentumContainer 
all_momentum () const
 
const
AliMCParticleIterableMomentumContainer 
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)
 
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
 

Protected Member Functions

void ExecOnce ()
 
- Protected Member Functions inherited from AliMCParticleContainer
virtual TString GetDefaultArrayName (const AliVEvent *const ev) const
 

Protected Attributes

Double_t fTrackScalePt
 
Double_t fTrackEtaWindow
 
Double_t fRandomizeEtaPhi
 
- Protected Attributes inherited from AliMCParticleContainer
UInt_t fMCFlag
 select MC particles with flags 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...
 

Additional Inherited Members

- Public Types inherited from AliParticleContainer
enum  EChargeCut_t {
  kNoChargeCut, kCharged, kNeutral, kPositiveCharge,
  kNegativeCharge
}
 
- Static Public Member Functions inherited from AliParticleContainer
static const
AliEmcalContainerIndexMap
< TClonesArray, AliVParticle > & 
GetEmcalContainerIndexMap ()
 Get the EMCal container utils associated with particle containers. 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 AliMCParticleContainer. 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 24, 2016

Definition at line 37 of file AliMCParticleContainerToyModel.h.

Constructor & Destructor Documentation

AliMCParticleContainerToyModel::AliMCParticleContainerToyModel ( )

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

Definition at line 26 of file AliMCParticleContainerToyModel.cxx.

AliMCParticleContainerToyModel::AliMCParticleContainerToyModel ( const char *  name)

This is the standard named constructor.

Parameters
nameName of the particle collection

Definition at line 41 of file AliMCParticleContainerToyModel.cxx.

Member Function Documentation

void AliMCParticleContainerToyModel::ExecOnce ( )
protected

Definition at line 184 of file AliMCParticleContainerToyModel.cxx.

Bool_t AliMCParticleContainerToyModel::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 AliMCParticleContainer 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 AliParticleContainer.

Definition at line 96 of file AliMCParticleContainerToyModel.cxx.

Bool_t AliMCParticleContainerToyModel::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 AliMCParticleContainer 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 AliParticleContainer.

Definition at line 77 of file AliMCParticleContainerToyModel.cxx.

Bool_t AliMCParticleContainerToyModel::GetMomentumFromParticle ( TLorentzVector &  mom,
const AliAODMCParticle *  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 AliMCParticleContainer methods by applying a pT scaling factor to the TLorentzVector.

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

Definition at line 59 of file AliMCParticleContainerToyModel.cxx.

Bool_t AliMCParticleContainerToyModel::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 AliMCParticleContainer 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 AliParticleContainer.

Definition at line 132 of file AliMCParticleContainerToyModel.cxx.

Bool_t AliMCParticleContainerToyModel::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 AliMCParticleContainer 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 AliParticleContainer.

Definition at line 114 of file AliMCParticleContainerToyModel.cxx.

void AliMCParticleContainerToyModel::ScalePtOfLorentzVector ( TLorentzVector &  mom) const

Scales the pt of a TLorentzVector with a constant factor.

Parameters
momTLorentzVector object reference to be scaled.

Definition at line 144 of file AliMCParticleContainerToyModel.cxx.

Referenced by GetAcceptMomentum(), GetMomentum(), GetMomentumFromParticle(), GetNextAcceptMomentum(), and GetNextMomentum().

void AliMCParticleContainerToyModel::SetRandomEtaPhiOfLorentzVector ( TLorentzVector &  mom) const

Assigns random phi,eta to thetracks,keeping their momentum

Parameters
momTLorentzVector object reference to be scaled.

Definition at line 162 of file AliMCParticleContainerToyModel.cxx.

Referenced by GetAcceptMomentum(), GetMomentum(), GetMomentumFromParticle(), GetNextAcceptMomentum(), and GetNextMomentum().

void AliMCParticleContainerToyModel::SetRandomizeEtaPhi ( Double_t  t)
inline

Definition at line 43 of file AliMCParticleContainerToyModel.h.

void AliMCParticleContainerToyModel::SetTrackScalePt ( Double_t  t)
inline

Definition at line 42 of file AliMCParticleContainerToyModel.h.

Member Data Documentation

Double_t AliMCParticleContainerToyModel::fRandomizeEtaPhi
protected
Double_t AliMCParticleContainerToyModel::fTrackEtaWindow
protected

Definition at line 56 of file AliMCParticleContainerToyModel.h.

Referenced by SetRandomEtaPhiOfLorentzVector().

Double_t AliMCParticleContainerToyModel::fTrackScalePt
protected

Definition at line 55 of file AliMCParticleContainerToyModel.h.

Referenced by ScalePtOfLorentzVector(), and SetTrackScalePt().


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