AliPhysics  d565ceb (d565ceb)

#include <AliFMDMCTrackDensity.h>

Inheritance diagram for AliFMDMCTrackDensity:

Classes

struct  State
 

Public Member Functions

 AliFMDMCTrackDensity ()
 
 AliFMDMCTrackDensity (const char *name)
 
 AliFMDMCTrackDensity (const AliFMDMCTrackDensity &o)
 
AliFMDMCTrackDensityoperator= (const AliFMDMCTrackDensity &o)
 
virtual ~AliFMDMCTrackDensity ()
 
void SetMaxConsequtiveStrips (UShort_t n)
 
void SetLowCutvalue (Double_t v)
 
Bool_t Calculate (const AliESDFMD &esd, const AliMCEvent &event, const TVector3 &ip, AliESDFMD &output, TH2D *primary)
 
void CreateOutputObjects (TList *list)
 
void Print (Option_t *option="") 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
 
- 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
 

Protected Attributes

struct AliFMDMCTrackDensity::State fState
 
UShort_t fMaxConsequtiveStrips
 State. More...
 
Double_t fLowCutvalue
 
TH1DfNr
 
TH1DfNt
 
TH1DfNc
 
TH2DfNcr
 
AliESDFMDfOutput
 
- 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 density from track references. This code is used both in AliForwardMCCorrectionsTask and AliFMDMCDensity 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 32 of file AliFMDMCTrackDensity.h.

Constructor & Destructor Documentation

AliFMDMCTrackDensity::AliFMDMCTrackDensity ( )

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

Definition at line 49 of file AliFMDMCTrackDensity.cxx.

AliFMDMCTrackDensity::AliFMDMCTrackDensity ( const char *  name)

Normal constructor

Parameters
nameNot used

Definition at line 64 of file AliFMDMCTrackDensity.cxx.

AliFMDMCTrackDensity::AliFMDMCTrackDensity ( const AliFMDMCTrackDensity o)

Copy constructor

Parameters
oObject to copy from

Definition at line 79 of file AliFMDMCTrackDensity.cxx.

virtual AliFMDMCTrackDensity::~AliFMDMCTrackDensity ( )
inlinevirtual

Destructor.

Definition at line 62 of file AliFMDMCTrackDensity.h.

Member Function Documentation

void AliFMDMCTrackDensity::BeginTrackRefs ( )
protectedvirtual

Called at before loop over track references

Reimplemented from AliBaseMCTrackDensity.

Definition at line 161 of file AliFMDMCTrackDensity.cxx.

Referenced by SetLowCutvalue().

Bool_t AliFMDMCTrackDensity::Calculate ( const AliESDFMD esd,
const AliMCEvent &  event,
const TVector3 &  ip,
AliESDFMD output,
TH2D primary 
)

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
outputOutput of FMD hits
primaryPrimary information, if available.
Returns
true

Definition at line 310 of file AliFMDMCTrackDensity.cxx.

Referenced by AliFMDMCSharingFilter::FilterMC(), AliForwardMCCorrectionsTask::ProcessESD(), and SetLowCutvalue().

void AliFMDMCTrackDensity::CreateOutputObjects ( TList list)
virtual

Define ouputs

Parameters
listList to add outputs to

Reimplemented from AliBaseMCTrackDensity.

Definition at line 114 of file AliFMDMCTrackDensity.cxx.

Referenced by AliFMDMCSharingFilter::CreateOutputObjects(), and SetLowCutvalue().

void AliFMDMCTrackDensity::EndTrackRefs ( Int_t  nRefs)
protectedvirtual

Called at before loop over track references

Parameters
nRefsNumber of references

Reimplemented from AliBaseMCTrackDensity.

Definition at line 168 of file AliFMDMCTrackDensity.cxx.

Referenced by SetLowCutvalue().

Int_t AliFMDMCTrackDensity::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 154 of file AliFMDMCTrackDensity.cxx.

Referenced by SetLowCutvalue().

AliFMDMCTrackDensity & AliFMDMCTrackDensity::operator= ( const AliFMDMCTrackDensity o)

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this

Definition at line 95 of file AliFMDMCTrackDensity.cxx.

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

Print information to standard out

Parameters
optionNot used

Reimplemented from AliBaseMCTrackDensity.

Definition at line 360 of file AliFMDMCTrackDensity.cxx.

Referenced by AliForwardMCCorrectionsTask::Print(), AliFMDMCSharingFilter::Print(), and SetLowCutvalue().

AliTrackReference * AliFMDMCTrackDensity::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 177 of file AliFMDMCTrackDensity.cxx.

Referenced by SetLowCutvalue().

void AliFMDMCTrackDensity::SetLowCutvalue ( Double_t  v)
inline

Set minimum dE for strip to be part of 'cluster'

Parameters
vSet minimum dE for strip to be part of 'cluster'

Definition at line 77 of file AliFMDMCTrackDensity.h.

void AliFMDMCTrackDensity::SetMaxConsequtiveStrips ( UShort_t  n)
inline

Set maximum number of strips per 'cluster'

Parameters
nMaximum number of strips per 'cluster'

Definition at line 69 of file AliFMDMCTrackDensity.h.

Referenced by AddTaskForwardMCCorr().

Double_t AliFMDMCTrackDensity::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 276 of file AliFMDMCTrackDensity.cxx.

Referenced by ProcessRef(), and SetLowCutvalue().

Member Data Documentation

Double_t AliFMDMCTrackDensity::fLowCutvalue
protected

Definition at line 188 of file AliFMDMCTrackDensity.h.

Referenced by operator=(), ProcessRef(), and SetLowCutvalue().

UShort_t AliFMDMCTrackDensity::fMaxConsequtiveStrips
protected

State.

Definition at line 187 of file AliFMDMCTrackDensity.h.

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

TH1D* AliFMDMCTrackDensity::fNc
protected

Definition at line 191 of file AliFMDMCTrackDensity.h.

Referenced by CreateOutputObjects(), EndTrackRefs(), and operator=().

TH2D* AliFMDMCTrackDensity::fNcr
protected

Definition at line 192 of file AliFMDMCTrackDensity.h.

Referenced by CreateOutputObjects(), EndTrackRefs(), and operator=().

TH1D* AliFMDMCTrackDensity::fNr
protected

Definition at line 189 of file AliFMDMCTrackDensity.h.

Referenced by CreateOutputObjects(), operator=(), and StoreParticle().

TH1D* AliFMDMCTrackDensity::fNt
protected

Definition at line 190 of file AliFMDMCTrackDensity.h.

Referenced by CreateOutputObjects(), operator=(), and StoreParticle().

AliESDFMD* AliFMDMCTrackDensity::fOutput
protected

Definition at line 193 of file AliFMDMCTrackDensity.h.

Referenced by Calculate(), operator=(), and StoreParticle().

struct AliFMDMCTrackDensity::State AliFMDMCTrackDensity::fState
protected

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