AliPhysics  914d8ff (914d8ff)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliFMDMCTrackELoss Class Reference

#include <AliFMDMCTrackELoss.h>

Inheritance diagram for AliFMDMCTrackELoss:

Classes

struct  Event
 
struct  Hit
 
struct  State
 

Public Member Functions

 AliFMDMCTrackELoss ()
 
 AliFMDMCTrackELoss (const char *name)
 
 AliFMDMCTrackELoss (const AliFMDMCTrackELoss &o)
 
AliFMDMCTrackELossoperator= (const AliFMDMCTrackELoss &o)
 
virtual ~AliFMDMCTrackELoss ()
 
Bool_t Calculate (const AliESDFMD &esd, const AliMCEvent &event, const TVector3 &ip, Double_t cent)
 
void CreateOutputObjects (TList *list)
 
void Print (Option_t *option="") const
 
Options
void SetUseTree (Bool_t use=true)
 
void SetMaxConsequtiveStrips (UShort_t n)
 
Access to cache
void Clear (Option_t *opt="")
 
AliFMDFloatMap & GetPrimaries ()
 
const AliFMDFloatMap & GetPrimaries () const
 
AliFMDFloatMap & GetSecondaries ()
 
const AliFMDFloatMap & GetSecondaries () const
 
AliFMDFloatMap & GetAll ()
 
const AliFMDFloatMap & GetAll () const
 
AliFMDFloatMap & GetEta ()
 
const AliFMDFloatMap & GetEta () const
 
TTreeGetTree () const
 
TClonesArray * GetHits () const
 
TH2GetBetaGammadEdx () const
 
TH2GetBetaGammaEta () const
 
TH2GetDEdxEta () const
 
- Public Member Functions inherited from AliBaseMCTrackDensity
 AliBaseMCTrackDensity ()
 
 AliBaseMCTrackDensity (const char *name)
 
 AliBaseMCTrackDensity (const AliBaseMCTrackDensity &o)
 
AliBaseMCTrackDensityoperator= (const AliBaseMCTrackDensity &o)
 
virtual ~AliBaseMCTrackDensity ()
 
void SetUseOnlyPrimary (Bool_t use)
 
void SetUseFlowWeights (Bool_t use)
 
void SetTrackGammaToPi0 (Bool_t use)
 
void SetDebug (Bool_t debug=true)
 
void SetWeights (AliBaseMCWeights *weights)
 
void SetTruthWeights (AliBaseMCWeights *weights)
 

Protected Member Functions

Int_t GetDetectorId () const
 
AliTrackReference * ProcessRef (AliMCParticle *particle, const AliMCParticle *mother, AliTrackReference *ref)
 
void BeginTrackRefs ()
 
void EndTrackRefs (Int_t nRefs)
 
Double_t StoreParticle (AliMCParticle *particle, const AliMCParticle *mother, AliTrackReference *ref) const
 
 ClassDef (AliFMDMCTrackELoss, 1)
 
- Protected Member Functions inherited from AliBaseMCTrackDensity
Bool_t ProcessTracks (const AliMCEvent &event, const TVector3 &ip, TH2D *primary)
 
Bool_t ProcessTrack (AliMCParticle *particle, const AliMCParticle *mother)
 
virtual Bool_t CheckTrackRef (AliTrackReference *) const
 
Bool_t GetCollisionParameters (const AliMCEvent &event)
 
Double_t GetTrackRefTheta (const AliTrackReference *ref) const
 
const AliMCParticle * GetMother (Int_t iTr, const AliMCEvent &event) const
 
Double_t CalculateWeight (const AliMCParticle *p, Bool_t isPrimary) const
 
Double_t CalculateTruthWeight (const AliMCParticle *p) const
 
 ClassDef (AliBaseMCTrackDensity, 6)
 

Protected Attributes

struct AliFMDMCTrackELoss::State fState
 
Event fEvent
 State. More...
 
UShort_t fMaxConsequtiveStrips
 
Bool_t fUseTree
 
TClonesArray * fHits
 
TTreefTree
 
TH1DfNr
 
TH1DfNt
 
TH1DfNc
 
TH2DfNcr
 
TH2fBetaGammadEdx
 
TH2fBetaGammaEta
 
TH2fDEdxEta
 
AliFMDFloatMap fPrimaries
 
AliFMDFloatMap fSecondaries
 
AliFMDFloatMap fAll
 
AliFMDFloatMap fEta
 
- Protected Attributes inherited from AliBaseMCTrackDensity
Bool_t fUseOnlyPrimary
 
TH2DfBinFlow
 
TH2DfEtaBinFlow
 
TH2DfPhiBinFlow
 
TH1DfNRefs
 
AliBaseMCWeightsfWeights
 
AliBaseMCWeightsfTruthWeights
 
TVector3 fIP
 
Double_t fB
 
Double_t fPhiR
 
Bool_t fDebug
 
Bool_t fTrackGammaToPi0
 

Detailed Description

A class to calculate the particle eloss from track references. This code is used both in AliForwardMCCorrectionsTask and AliFMDMCEloss calculator.

Input:
  • AliESDFMD object - from reconstruction
  • Kinematics
  • Track-References
Output:
  • AliESDFMD object - content is # of track references/strip
Corrections used:
  • None
Histograms:
  • Incident angle vs number of track references
  • Incident angle vs number of strips/cluster

Definition at line 37 of file AliFMDMCTrackELoss.h.

Constructor & Destructor Documentation

AliFMDMCTrackELoss::AliFMDMCTrackELoss ( )

Default constructor. Do not use - for ROOT I/O system use only

Definition at line 78 of file AliFMDMCTrackELoss.cxx.

AliFMDMCTrackELoss::AliFMDMCTrackELoss ( const char *  name)

Normal constructor

Parameters
nameNot used

Definition at line 102 of file AliFMDMCTrackELoss.cxx.

AliFMDMCTrackELoss::AliFMDMCTrackELoss ( const AliFMDMCTrackELoss o)
inline

Copy constructor

Parameters
oObject to copy from

Definition at line 55 of file AliFMDMCTrackELoss.h.

virtual AliFMDMCTrackELoss::~AliFMDMCTrackELoss ( )
inlinevirtual

Destructor.

Definition at line 67 of file AliFMDMCTrackELoss.h.

Member Function Documentation

void AliFMDMCTrackELoss::BeginTrackRefs ( )
protectedvirtual

Called at before loop over track references

Reimplemented from AliBaseMCTrackDensity.

Definition at line 260 of file AliFMDMCTrackELoss.cxx.

Bool_t AliFMDMCTrackELoss::Calculate ( const AliESDFMD esd,
const AliMCEvent &  event,
const TVector3 &  ip,
Double_t  cent 
)

Loops over all the particles in the passed event. If primary is not null, then that histogram is filled with the primary particle information - irrespective of whether the particle actually hits the FMD or not. For each track (primary or secondary, unless only primary information is requested - see SetUseOnlyPrimary) loop over all track references to that particle and check if they come from the FMD. In that case, figure out which strip(s) to assign the track to, and fill the hits structure.

Parameters
esdFMD ESD structure
eventMC event
ipIP coordinates
centEvent centrality
Returns
true

Definition at line 427 of file AliFMDMCTrackELoss.cxx.

Referenced by AliFMDMCTrackInspector::Event().

AliFMDMCTrackELoss::ClassDef ( AliFMDMCTrackELoss  ,
 
)
protected
void AliFMDMCTrackELoss::Clear ( Option_t opt = "")

Clear caches

Definition at line 242 of file AliFMDMCTrackELoss.cxx.

Referenced by Calculate().

void AliFMDMCTrackELoss::CreateOutputObjects ( TList list)
virtual

Define ouputs

Parameters
listList to add outputs to

Reimplemented from AliBaseMCTrackDensity.

Definition at line 166 of file AliFMDMCTrackELoss.cxx.

Referenced by AliFMDMCTrackInspector::CreateOutputObjects().

void AliFMDMCTrackELoss::EndTrackRefs ( Int_t  nRefs)
protectedvirtual

Called at before loop over track references

Parameters
nRefsNumber of references

Reimplemented from AliBaseMCTrackDensity.

Definition at line 267 of file AliFMDMCTrackELoss.cxx.

AliFMDFloatMap& AliFMDMCTrackELoss::GetAll ( )
inline

Get reference to cache of eloss for all

Returns
Reference to cache of eloss for all

Definition at line 153 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspector::PostEvent().

const AliFMDFloatMap& AliFMDMCTrackELoss::GetAll ( ) const
inline

Get constant reference to cache of eloss for all

Returns
Constant reference to cache of eloss for all

Definition at line 159 of file AliFMDMCTrackELoss.h.

TH2* AliFMDMCTrackELoss::GetBetaGammadEdx ( ) const
inline

Definition at line 181 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspector::CreateOutputObjects().

TH2* AliFMDMCTrackELoss::GetBetaGammaEta ( ) const
inline

Definition at line 182 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspector::CreateOutputObjects().

TH2* AliFMDMCTrackELoss::GetDEdxEta ( ) const
inline

Definition at line 183 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspector::CreateOutputObjects().

Int_t AliFMDMCTrackELoss::GetDetectorId ( ) const
protectedvirtual

Must be defined to return the track-reference ID for this detector

Returns
Detector id set on track references

Implements AliBaseMCTrackDensity.

Definition at line 253 of file AliFMDMCTrackELoss.cxx.

AliFMDFloatMap& AliFMDMCTrackELoss::GetEta ( )
inline

Get reference to cache of psuedo-rapidity ( \( \eta\))

Returns
Reference to cache of psuedo-rapidity ( \( \eta\))

Definition at line 165 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspector::PostEvent().

const AliFMDFloatMap& AliFMDMCTrackELoss::GetEta ( ) const
inline

Get constant reference to cache of psuedo-rapidity ( \( \eta\))

Returns
Constant reference to cache of psuedo-rapidity ( \( \eta\))

Definition at line 171 of file AliFMDMCTrackELoss.h.

TClonesArray* AliFMDMCTrackELoss::GetHits ( ) const
inline

Definition at line 179 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspector::PostEvent().

AliFMDFloatMap& AliFMDMCTrackELoss::GetPrimaries ( )
inline

Get reference to cache of eloss per primary

Returns
Reference to cache of eloss per primary

Definition at line 129 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspector::PostEvent().

const AliFMDFloatMap& AliFMDMCTrackELoss::GetPrimaries ( ) const
inline

Get constant reference to cache of eloss per primary

Returns
Constant reference to cache of eloss per primary

Definition at line 135 of file AliFMDMCTrackELoss.h.

AliFMDFloatMap& AliFMDMCTrackELoss::GetSecondaries ( )
inline

Get reference to cache of eloss per secondary

Returns
Reference to cache of eloss per secondary

Definition at line 141 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspector::PostEvent().

const AliFMDFloatMap& AliFMDMCTrackELoss::GetSecondaries ( ) const
inline

Get constant reference to cache of eloss per secondary

Returns
Constant reference to cache of eloss per secondary

Definition at line 147 of file AliFMDMCTrackELoss.h.

TTree* AliFMDMCTrackELoss::GetTree ( ) const
inline

Get pointer to NTutple if defined

Returns
Pointer to nTree or null if not enabled

Definition at line 178 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspectorTask::Event(), and AliFMDMCTrackInspectorTask::PreData().

AliFMDMCTrackELoss& AliFMDMCTrackELoss::operator= ( const AliFMDMCTrackELoss o)
inline

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this

Definition at line 63 of file AliFMDMCTrackELoss.h.

void AliFMDMCTrackELoss::Print ( Option_t option = "") const
virtual

Print this task

Parameters
optionNot used

Reimplemented from AliBaseMCTrackDensity.

Definition at line 476 of file AliFMDMCTrackELoss.cxx.

AliTrackReference * AliFMDMCTrackELoss::ProcessRef ( AliMCParticle *  particle,
const AliMCParticle *  mother,
AliTrackReference *  ref 
)
protectedvirtual

Process a track reference

Parameters
particleParticle
motherUltimate mother (if not primary)
refReference
Returns
0 if no output should be generated for this reference, or pointer to track-reference to produce output for.

Implements AliBaseMCTrackDensity.

Definition at line 276 of file AliFMDMCTrackELoss.cxx.

void AliFMDMCTrackELoss::SetMaxConsequtiveStrips ( UShort_t  n)
inline

Set maximum number of strips per 'cluster'

Parameters
nMaximum number of strips per 'cluster'

Definition at line 84 of file AliFMDMCTrackELoss.h.

Referenced by AddTaskFMDMCTracks().

void AliFMDMCTrackELoss::SetUseTree ( Bool_t  use = true)
inline

Whether to make an output nTree

Parameters
useIf true, make an nTree of hits

Definition at line 78 of file AliFMDMCTrackELoss.h.

Referenced by AliFMDMCTrackInspectorTask::AliFMDMCTrackInspectorTask().

Double_t AliFMDMCTrackELoss::StoreParticle ( AliMCParticle *  particle,
const AliMCParticle *  mother,
AliTrackReference *  ref 
) const
protectedvirtual

Store a particle hit in Basedr[s,t] in output

Parameters
particleParticle to store
motherUltimate mother of particle
refLongest track reference
Returns
weight

Reimplemented from AliBaseMCTrackDensity.

Definition at line 368 of file AliFMDMCTrackELoss.cxx.

Referenced by ProcessRef().

Member Data Documentation

AliFMDFloatMap AliFMDMCTrackELoss::fAll
mutableprotected

Definition at line 331 of file AliFMDMCTrackELoss.h.

Referenced by Clear(), GetAll(), and StoreParticle().

TH2* AliFMDMCTrackELoss::fBetaGammadEdx
protected

Definition at line 326 of file AliFMDMCTrackELoss.h.

Referenced by CreateOutputObjects(), GetBetaGammadEdx(), and StoreParticle().

TH2* AliFMDMCTrackELoss::fBetaGammaEta
protected

Definition at line 327 of file AliFMDMCTrackELoss.h.

Referenced by CreateOutputObjects(), GetBetaGammaEta(), and StoreParticle().

TH2* AliFMDMCTrackELoss::fDEdxEta
protected

Definition at line 328 of file AliFMDMCTrackELoss.h.

Referenced by CreateOutputObjects(), GetDEdxEta(), and StoreParticle().

AliFMDFloatMap AliFMDMCTrackELoss::fEta
protected

Definition at line 332 of file AliFMDMCTrackELoss.h.

Referenced by Calculate(), Clear(), GetEta(), and StoreParticle().

Event AliFMDMCTrackELoss::fEvent
protected

State.

Definition at line 315 of file AliFMDMCTrackELoss.h.

Referenced by Calculate(), and CreateOutputObjects().

TClonesArray* AliFMDMCTrackELoss::fHits
protected
UShort_t AliFMDMCTrackELoss::fMaxConsequtiveStrips
protected

Definition at line 318 of file AliFMDMCTrackELoss.h.

Referenced by Print(), ProcessRef(), and SetMaxConsequtiveStrips().

TH1D* AliFMDMCTrackELoss::fNc
protected

Definition at line 324 of file AliFMDMCTrackELoss.h.

Referenced by CreateOutputObjects(), and EndTrackRefs().

TH2D* AliFMDMCTrackELoss::fNcr
protected

Definition at line 325 of file AliFMDMCTrackELoss.h.

Referenced by CreateOutputObjects(), and EndTrackRefs().

TH1D* AliFMDMCTrackELoss::fNr
protected

Definition at line 322 of file AliFMDMCTrackELoss.h.

Referenced by CreateOutputObjects(), and StoreParticle().

TH1D* AliFMDMCTrackELoss::fNt
protected

Definition at line 323 of file AliFMDMCTrackELoss.h.

Referenced by CreateOutputObjects(), and StoreParticle().

AliFMDFloatMap AliFMDMCTrackELoss::fPrimaries
mutableprotected

Definition at line 329 of file AliFMDMCTrackELoss.h.

Referenced by Clear(), GetPrimaries(), and StoreParticle().

AliFMDFloatMap AliFMDMCTrackELoss::fSecondaries
mutableprotected

Definition at line 330 of file AliFMDMCTrackELoss.h.

Referenced by Clear(), GetSecondaries(), and StoreParticle().

struct AliFMDMCTrackELoss::State AliFMDMCTrackELoss::fState
protected
TTree* AliFMDMCTrackELoss::fTree
protected

Definition at line 321 of file AliFMDMCTrackELoss.h.

Referenced by Calculate(), CreateOutputObjects(), and GetTree().

Bool_t AliFMDMCTrackELoss::fUseTree
protected

Definition at line 319 of file AliFMDMCTrackELoss.h.

Referenced by CreateOutputObjects(), and SetUseTree().


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