![]() |
AliPhysics
5b8f126 (5b8f126)
|
#include <AliSPDMCTrackDensity.h>
Public Member Functions | |
AliSPDMCTrackDensity () | |
AliSPDMCTrackDensity (const char *name) | |
AliSPDMCTrackDensity (const AliSPDMCTrackDensity &o) | |
AliSPDMCTrackDensity & | operator= (const AliSPDMCTrackDensity &o) |
virtual | ~AliSPDMCTrackDensity () |
Bool_t | Calculate (const AliMCEvent &event, const TVector3 &ip, TH2D &output, TH2D *primary) |
void | Print (Option_t *option="") const |
![]() | |
AliBaseMCTrackDensity () | |
AliBaseMCTrackDensity (const char *name) | |
AliBaseMCTrackDensity (const AliBaseMCTrackDensity &o) | |
AliBaseMCTrackDensity & | operator= (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 |
![]() | |
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 |
Protected Attributes | |
Double_t | fMinR |
Double_t | fMaxR |
Double_t | fMinZ |
Double_t | fMaxZ |
AliTrackReference * | fStored |
TH2D * | fOutput |
Last stored. More... | |
![]() | |
Bool_t | fUseOnlyPrimary |
TH2D * | fBinFlow |
TH2D * | fEtaBinFlow |
TH2D * | fPhiBinFlow |
TH1D * | fNRefs |
AliBaseMCWeights * | fWeights |
AliBaseMCWeights * | fTruthWeights |
TVector3 | fIP |
Double_t | fB |
Double_t | fPhiR |
Bool_t | fDebug |
Bool_t | fTrackGammaToPi0 |
A class to calculate the particle density from track references. This code is used both in AliForwardMCCorrectionsTask and AliSPDMCDensity calculator.
Definition at line 29 of file AliSPDMCTrackDensity.h.
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 | ) |
AliSPDMCTrackDensity::AliSPDMCTrackDensity | ( | const AliSPDMCTrackDensity & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 38 of file AliSPDMCTrackDensity.cxx.
|
inlinevirtual |
Destructor.
Definition at line 59 of file AliSPDMCTrackDensity.h.
|
protectedvirtual |
Called at before loop over track references
Reimplemented from AliBaseMCTrackDensity.
Definition at line 77 of file AliSPDMCTrackDensity.cxx.
Referenced by ~AliSPDMCTrackDensity().
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
event | MC event |
ip | IP coordinates |
output | Output of SPD hits |
primary | Primary information, if available. |
Definition at line 132 of file AliSPDMCTrackDensity.cxx.
Referenced by AliCentralMCMultiplicityTask::Event(), AliCentralMCCorrectionsTask::ProcessESD(), and ~AliSPDMCTrackDensity().
|
protectedvirtual |
Check a track reference
Reimplemented from AliBaseMCTrackDensity.
Definition at line 84 of file AliSPDMCTrackDensity.cxx.
Referenced by ~AliSPDMCTrackDensity().
|
protectedvirtual |
Must be defined to return the track-reference ID for this detector
Implements AliBaseMCTrackDensity.
Definition at line 69 of file AliSPDMCTrackDensity.cxx.
Referenced by ~AliSPDMCTrackDensity().
AliSPDMCTrackDensity & AliSPDMCTrackDensity::operator= | ( | const AliSPDMCTrackDensity & | o | ) |
Assignment operator
o | Object to assign from |
Definition at line 52 of file AliSPDMCTrackDensity.cxx.
|
virtual |
Print information to standard out
option | Not used |
Reimplemented from AliBaseMCTrackDensity.
Definition at line 164 of file AliSPDMCTrackDensity.cxx.
Referenced by AliCentralMCCorrectionsTask::Print(), AliCentralMCMultiplicityTask::Print(), and ~AliSPDMCTrackDensity().
|
protectedvirtual |
Process a track reference
particle | Particle |
mother | Ultimate mother (if not primary) |
ref | Reference |
Implements AliBaseMCTrackDensity.
Definition at line 96 of file AliSPDMCTrackDensity.cxx.
Referenced by ~AliSPDMCTrackDensity().
|
protectedvirtual |
Store a particle hit in Basedr[s,t] in output
particle | Particle to store |
mother | Ultimate mother of particle |
ref | Longest track reference |
Reimplemented from AliBaseMCTrackDensity.
Definition at line 107 of file AliSPDMCTrackDensity.cxx.
Referenced by ~AliSPDMCTrackDensity().
|
protected |
Definition at line 123 of file AliSPDMCTrackDensity.h.
Referenced by CheckTrackRef(), operator=(), and Print().
|
protected |
Definition at line 125 of file AliSPDMCTrackDensity.h.
Referenced by CheckTrackRef(), operator=(), and Print().
|
protected |
Definition at line 122 of file AliSPDMCTrackDensity.h.
Referenced by CheckTrackRef(), operator=(), and Print().
|
protected |
Definition at line 124 of file AliSPDMCTrackDensity.h.
Referenced by CheckTrackRef(), operator=(), and Print().
|
protected |
Last stored.
Definition at line 127 of file AliSPDMCTrackDensity.h.
Referenced by Calculate(), operator=(), and StoreParticle().
|
protected |
Definition at line 126 of file AliSPDMCTrackDensity.h.
Referenced by BeginTrackRefs(), operator=(), and ProcessRef().