![]() |
AliPhysics
b095172 (b095172)
|
Allows to modify the tracks to implement toy models. More...
#include <AliTrackContainerToyModel.h>
Public Member Functions | |
AliTrackContainerToyModel () | |
AliTrackContainerToyModel (const char *name) | |
void | SetTrackScalePt (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 |
![]() | |
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 | 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 |
void | SetSelectionModeAny () |
void | SetSelectionModeAll () |
void | NextEvent () |
const char * | GetTitle () const |
const AliTrackIterableContainer | all () const |
const AliTrackIterableContainer | accepted () const |
const AliTrackIterableMomentumContainer | all_momentum () const |
const AliTrackIterableMomentumContainer | accepted_momentum () const |
![]() | |
AliParticleContainer () | |
AliParticleContainer (const char *name) | |
virtual | ~AliParticleContainer () |
virtual TObject * | operator[] (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 |
Protected Attributes | |
Double_t | fTrackScalePt |
![]() | |
ETrackFilterType_t | fTrackFilterType |
track filter type More... | |
TObjArray * | fListOfCuts |
list of track cut objects More... | |
Bool_t | fSelectionModeAny |
accept track if any of the cuts is fulfilled More... | |
UInt_t | fAODFilterBits |
track filter bits More... | |
TString | fTrackCutsPeriod |
period string used to generate track cuts More... | |
AliEmcalTrackSelection * | fEmcalTrackSelection |
! track selection object More... | |
TObjArray * | fFilteredTracks |
! tracks filtered using fEmcalTrackSelection More... | |
TArrayC | fTrackTypes |
! track types More... | |
![]() | |
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 | |
![]() | |
enum | ETrackType_t { kRejected = -1, kUndefined = 0, kHybridGlobal = 0, kHybridConstrained = 1, kHybridConstrainedNoITSrefit = 2 } |
Status of a track after track selection. More... | |
typedef AliEmcalTrackSelection::ETrackFilterType_t | ETrackFilterType_t |
![]() | |
enum | EChargeCut_t { kNoChargeCut, kCharged, kNeutral, kPositiveCharge, kNegativeCharge } |
![]() | |
static void | SetDefTrackCutsPeriod (const char *period) |
static TString | GetDefTrackCutsPeriod () |
![]() | |
static TString | fgDefTrackCutsPeriod = "" |
! default period string used to generate track cuts More... | |
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
Definition at line 37 of file AliTrackContainerToyModel.h.
AliTrackContainerToyModel::AliTrackContainerToyModel | ( | ) |
This is the default constructor, used for ROOT I/O purposes.
Definition at line 25 of file AliTrackContainerToyModel.cxx.
AliTrackContainerToyModel::AliTrackContainerToyModel | ( | const char * | name | ) |
This is the standard named constructor.
name | Name of the particle collection |
Definition at line 35 of file AliTrackContainerToyModel.cxx.
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.
[out] | mom | Momentum vector of the accepted particle |
[in] | i | Index to check |
Reimplemented from AliTrackContainer.
Definition at line 86 of file AliTrackContainerToyModel.cxx.
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.
[out] | mom | Momentum vector of the \( i^{th} \) particle in the array |
[in] | i | Index of the particle to check |
Reimplemented from AliTrackContainer.
Definition at line 68 of file AliTrackContainerToyModel.cxx.
|
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.
[out] | mom | Momentum vector to be filled |
[in] | track | Track from which the momentum information is obtained. |
[in] | mass | (Optional) Mass hypothesis |
Reimplemented from AliTrackContainer.
Definition at line 51 of file AliTrackContainerToyModel.cxx.
|
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.
[out] | mom | Momentum vector of the next particle in the array |
Reimplemented from AliTrackContainer.
Definition at line 120 of file AliTrackContainerToyModel.cxx.
|
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.
[out] | mom | Momentum vector of the next particle |
Reimplemented from AliTrackContainer.
Definition at line 103 of file AliTrackContainerToyModel.cxx.
void AliTrackContainerToyModel::ScalePtOfLorentzVector | ( | TLorentzVector & | mom | ) | const |
Scales the pt of a TLorentzVector with a constant factor.
mom | TLorentzVector object reference to be scaled. |
Definition at line 131 of file AliTrackContainerToyModel.cxx.
Referenced by GetAcceptMomentum(), GetMomentum(), GetMomentumFromTrack(), GetNextAcceptMomentum(), and GetNextMomentum().
|
inline |
Definition at line 42 of file AliTrackContainerToyModel.h.
|
protected |
Definition at line 54 of file AliTrackContainerToyModel.h.
Referenced by ScalePtOfLorentzVector(), and SetTrackScalePt().