AliPhysics  6bc8652 (6bc8652)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliSPDMCTrackDensity Class Reference

#include <AliSPDMCTrackDensity.h>

Inheritance diagram for AliSPDMCTrackDensity:

Public Member Functions

 AliSPDMCTrackDensity ()
 
 AliSPDMCTrackDensity (const char *name)
 
 AliSPDMCTrackDensity (const AliSPDMCTrackDensity &o)
 
AliSPDMCTrackDensityoperator= (const AliSPDMCTrackDensity &o)
 
virtual ~AliSPDMCTrackDensity ()
 
Bool_t Calculate (const AliMCEvent &event, const TVector3 &ip, TH2D &output, TH2D *primary)
 
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)
 
virtual void CreateOutputObjects (TList *list)
 
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 ()
 
Bool_t CheckTrackRef (AliTrackReference *) const
 
Double_t StoreParticle (AliMCParticle *particle, const AliMCParticle *mother, AliTrackReference *ref) const
 
 ClassDef (AliSPDMCTrackDensity, 4)
 Output. More...
 
- 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 void EndTrackRefs (Int_t)
 
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

Double_t fMinR
 
Double_t fMaxR
 
Double_t fMinZ
 
Double_t fMaxZ
 
AliTrackReference * fStored
 
TH2DfOutput
 Last stored. More...
 
- 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 AliSPDMCDensity calculator.

Input:
  • AliMultiplicity object - from reconstruction
  • Kinematics
  • Track-References
Output:
  • AliESDSPD 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 29 of file AliSPDMCTrackDensity.h.

Constructor & Destructor Documentation

AliSPDMCTrackDensity::AliSPDMCTrackDensity ( )

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

Definition at line 12 of file AliSPDMCTrackDensity.cxx.

AliSPDMCTrackDensity::AliSPDMCTrackDensity ( const char *  name)

Normal constructor

Parameters
nameNot used

Definition at line 25 of file AliSPDMCTrackDensity.cxx.

AliSPDMCTrackDensity::AliSPDMCTrackDensity ( const AliSPDMCTrackDensity o)

Copy constructor

Parameters
oObject to copy from

Definition at line 38 of file AliSPDMCTrackDensity.cxx.

virtual AliSPDMCTrackDensity::~AliSPDMCTrackDensity ( )
inlinevirtual

Destructor.

Definition at line 59 of file AliSPDMCTrackDensity.h.

Member Function Documentation

void AliSPDMCTrackDensity::BeginTrackRefs ( )
protectedvirtual

Called at before loop over track references

Reimplemented from AliBaseMCTrackDensity.

Definition at line 77 of file AliSPDMCTrackDensity.cxx.

Bool_t AliSPDMCTrackDensity::Calculate ( const AliMCEvent &  event,
const TVector3 &  ip,
TH2D 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 SPD 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 SPD. In that case, figure out which \((\eta,\varphi)\)-bin to assign the track to, and fill the output histogram

Parameters
eventMC event
ipIP coordinates
outputOutput of SPD hits
primaryPrimary information, if available.
Returns
true

Definition at line 132 of file AliSPDMCTrackDensity.cxx.

Referenced by AliCentralMCMultiplicityTask::Event(), and AliCentralMCCorrectionsTask::ProcessESD().

Bool_t AliSPDMCTrackDensity::CheckTrackRef ( AliTrackReference *  ) const
protectedvirtual

Check a track reference

Returns
true if the track reference should be used

Reimplemented from AliBaseMCTrackDensity.

Definition at line 84 of file AliSPDMCTrackDensity.cxx.

AliSPDMCTrackDensity::ClassDef ( AliSPDMCTrackDensity  ,
 
)
protected

Output.

Int_t AliSPDMCTrackDensity::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 69 of file AliSPDMCTrackDensity.cxx.

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

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this

Definition at line 52 of file AliSPDMCTrackDensity.cxx.

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

Print information to standard out

Parameters
optionNot used

Reimplemented from AliBaseMCTrackDensity.

Definition at line 164 of file AliSPDMCTrackDensity.cxx.

Referenced by AliCentralMCCorrectionsTask::Print(), and AliCentralMCMultiplicityTask::Print().

AliTrackReference * AliSPDMCTrackDensity::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 96 of file AliSPDMCTrackDensity.cxx.

Double_t AliSPDMCTrackDensity::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 107 of file AliSPDMCTrackDensity.cxx.

Member Data Documentation

Double_t AliSPDMCTrackDensity::fMaxR
protected

Definition at line 123 of file AliSPDMCTrackDensity.h.

Referenced by CheckTrackRef(), operator=(), and Print().

Double_t AliSPDMCTrackDensity::fMaxZ
protected

Definition at line 125 of file AliSPDMCTrackDensity.h.

Referenced by CheckTrackRef(), operator=(), and Print().

Double_t AliSPDMCTrackDensity::fMinR
protected

Definition at line 122 of file AliSPDMCTrackDensity.h.

Referenced by CheckTrackRef(), operator=(), and Print().

Double_t AliSPDMCTrackDensity::fMinZ
protected

Definition at line 124 of file AliSPDMCTrackDensity.h.

Referenced by CheckTrackRef(), operator=(), and Print().

TH2D* AliSPDMCTrackDensity::fOutput
protected

Last stored.

Definition at line 127 of file AliSPDMCTrackDensity.h.

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

AliTrackReference* AliSPDMCTrackDensity::fStored
protected

Definition at line 126 of file AliSPDMCTrackDensity.h.

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


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