![]() |
AliPhysics
a76316e (a76316e)
|
#include <AliBaseMCTrackDensity.h>
Public Member Functions | |
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) |
virtual void | Print (Option_t *option="") const |
void | SetWeights (AliBaseMCWeights *weights) |
void | SetTruthWeights (AliBaseMCWeights *weights) |
Protected Member Functions | |
Bool_t | ProcessTracks (const AliMCEvent &event, const TVector3 &ip, TH2D *primary) |
Bool_t | ProcessTrack (AliMCParticle *particle, const AliMCParticle *mother) |
virtual Int_t | GetDetectorId () const =0 |
virtual AliTrackReference * | ProcessRef (AliMCParticle *particle, const AliMCParticle *mother, AliTrackReference *ref)=0 |
virtual void | BeginTrackRefs () |
virtual Bool_t | CheckTrackRef (AliTrackReference *) const |
virtual void | EndTrackRefs (Int_t) |
virtual Double_t | StoreParticle (AliMCParticle *particle, const AliMCParticle *mother, AliTrackReference *ref) 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 | |
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 AliBaseMCDensity calculator.
Definition at line 45 of file AliBaseMCTrackDensity.h.
AliBaseMCTrackDensity::AliBaseMCTrackDensity | ( | ) |
Default constructor. Do not use - for ROOT I/O system use only
Definition at line 21 of file AliBaseMCTrackDensity.cxx.
Referenced by AliFMDMCTrackELoss::AliFMDMCTrackELoss().
AliBaseMCTrackDensity::AliBaseMCTrackDensity | ( | const char * | name | ) |
AliBaseMCTrackDensity::AliBaseMCTrackDensity | ( | const AliBaseMCTrackDensity & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 61 of file AliBaseMCTrackDensity.cxx.
|
inlinevirtual |
Destructor.
Definition at line 75 of file AliBaseMCTrackDensity.h.
|
inlineprotectedvirtual |
Called at before loop over track references
Reimplemented in AliFMDMCTrackELoss, AliFMDMCTrackDensity, and AliSPDMCTrackDensity.
Definition at line 192 of file AliBaseMCTrackDensity.h.
Referenced by ProcessTrack().
|
protected |
Calculate MC truth weight
p | Particle |
Definition at line 411 of file AliBaseMCTrackDensity.cxx.
Referenced by EndTrackRefs(), and ProcessTracks().
|
protected |
Calculate observed particle weight
p | Particle |
isPrimary | True if primary |
Definition at line 402 of file AliBaseMCTrackDensity.cxx.
Referenced by EndTrackRefs(), and StoreParticle().
|
inlineprotectedvirtual |
Check a track reference
Reimplemented in AliSPDMCTrackDensity.
Definition at line 198 of file AliBaseMCTrackDensity.h.
Referenced by ProcessTrack().
|
virtual |
Define ouputs
list | List to add outputs to |
Reimplemented in AliFMDMCTrackELoss, and AliFMDMCTrackDensity.
Definition at line 133 of file AliBaseMCTrackDensity.cxx.
Referenced by AliCentralMCMultiplicityTask::Book(), AliBaseMCCorrectionsTask::Book(), AliFMDMCTrackDensity::CreateOutputObjects(), AliFMDMCTrackELoss::CreateOutputObjects(), and SetDebug().
|
inlineprotectedvirtual |
Called at before loop over track references
Reimplemented in AliFMDMCTrackELoss, and AliFMDMCTrackDensity.
Definition at line 203 of file AliBaseMCTrackDensity.h.
Referenced by ProcessTrack().
|
protected |
Get the parameters of this event
event | Event |
Definition at line 281 of file AliBaseMCTrackDensity.cxx.
Referenced by EndTrackRefs(), and ProcessTracks().
|
protectedpure virtual |
Must be defined to return the track-reference ID for this detector
Implemented in AliFMDMCTrackELoss, AliFMDMCTrackDensity, and AliSPDMCTrackDensity.
Referenced by ProcessTrack(), and SetDebug().
|
protected |
Get ultimate mother of a track
iTr | Track number |
event | Event |
Definition at line 238 of file AliBaseMCTrackDensity.cxx.
Referenced by EndTrackRefs(), and ProcessTracks().
|
protected |
Get incident angle of this track reference
ref | Track reference |
Definition at line 224 of file AliBaseMCTrackDensity.cxx.
Referenced by EndTrackRefs(), AliFMDMCTrackDensity::ProcessRef(), and AliFMDMCTrackELoss::ProcessRef().
AliBaseMCTrackDensity & AliBaseMCTrackDensity::operator= | ( | const AliBaseMCTrackDensity & | o | ) |
Assignment operator
o | Object to assign from |
Definition at line 82 of file AliBaseMCTrackDensity.cxx.
Referenced by AliFMDMCTrackELoss::AliFMDMCTrackELoss(), AliSPDMCTrackDensity::operator=(), and AliFMDMCTrackDensity::operator=().
|
virtual |
Print information to standard out
option | Not used |
Reimplemented in AliFMDMCTrackELoss, AliFMDMCTrackDensity, and AliSPDMCTrackDensity.
Definition at line 431 of file AliBaseMCTrackDensity.cxx.
Referenced by AliSPDMCTrackDensity::Print(), AliFMDMCTrackDensity::Print(), AliFMDMCTrackELoss::Print(), and SetDebug().
|
protectedpure virtual |
Process a track reference
particle | Particle |
mother | Ultimate mother (if not primary) |
ref | Reference |
Implemented in AliFMDMCTrackELoss, AliFMDMCTrackDensity, and AliSPDMCTrackDensity.
Referenced by ProcessTrack(), and SetDebug().
|
protected |
Process a single track
particle | Particle |
mother | Ultimate mother |
Definition at line 293 of file AliBaseMCTrackDensity.cxx.
Referenced by ProcessTracks(), and SetDebug().
|
protected |
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 Base 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 Base. In that case, figure out which strip(s) to assign the track to, and fill the hits structure.
event | MC event |
ip | IP z-coordinate |
primary | Primary information, if available. |
Definition at line 341 of file AliBaseMCTrackDensity.cxx.
Referenced by AliSPDMCTrackDensity::Calculate(), AliFMDMCTrackDensity::Calculate(), AliFMDMCTrackELoss::Calculate(), and SetDebug().
|
inline |
Set whether to print debug messages. Please note this will produce a lot of output.
debug | Whether to enable debug messages or not |
Definition at line 104 of file AliBaseMCTrackDensity.h.
Referenced by AddTaskForwardMCCorr(), and AliFMDMCSharingFilter::SetDebug().
|
inline |
Set whether to try to track primary \( \gamma\) back to a \(\pi^0\)
use | If true, try to track \(\gamma\) to \(\pi^0\) |
Definition at line 97 of file AliBaseMCTrackDensity.h.
void AliBaseMCTrackDensity::SetTruthWeights | ( | AliBaseMCWeights * | weights | ) |
Definition at line 115 of file AliBaseMCTrackDensity.cxx.
Referenced by AddTaskForwardMCCorr(), and SetDebug().
void AliBaseMCTrackDensity::SetUseFlowWeights | ( | Bool_t | use | ) |
Whether to `after-burn' the particles with flow
Backward-compatibility member function
use |
Definition at line 125 of file AliBaseMCTrackDensity.cxx.
Referenced by SetUseOnlyPrimary().
|
inline |
Set whether to only consider primaries
use | If true, consider only primaries |
Definition at line 82 of file AliBaseMCTrackDensity.h.
Referenced by AliForwardMCMultiplicityTask::SetOnlyPrimary().
void AliBaseMCTrackDensity::SetWeights | ( | AliBaseMCWeights * | weights | ) |
Definition at line 105 of file AliBaseMCTrackDensity.cxx.
Referenced by AddTaskForwardMCCorr(), SetDebug(), and SetUseFlowWeights().
|
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 in AliFMDMCTrackELoss, AliFMDMCTrackDensity, and AliSPDMCTrackDensity.
Definition at line 178 of file AliBaseMCTrackDensity.cxx.
Referenced by EndTrackRefs(), ProcessTrack(), AliSPDMCTrackDensity::StoreParticle(), AliFMDMCTrackDensity::StoreParticle(), and AliFMDMCTrackELoss::StoreParticle().
|
protected |
Definition at line 271 of file AliBaseMCTrackDensity.h.
Referenced by CalculateTruthWeight(), CalculateWeight(), GetCollisionParameters(), and operator=().
|
protected |
Definition at line 264 of file AliBaseMCTrackDensity.h.
Referenced by CreateOutputObjects(), operator=(), and StoreParticle().
|
protected |
Definition at line 273 of file AliBaseMCTrackDensity.h.
Referenced by AliBaseMCTrackDensity(), CreateOutputObjects(), GetCollisionParameters(), operator=(), AliFMDMCTrackDensity::ProcessRef(), AliFMDMCTrackELoss::ProcessRef(), ProcessTrack(), ProcessTracks(), SetDebug(), and StoreParticle().
|
protected |
Definition at line 265 of file AliBaseMCTrackDensity.h.
Referenced by CreateOutputObjects(), operator=(), and StoreParticle().
|
protected |
Definition at line 270 of file AliBaseMCTrackDensity.h.
Referenced by GetTrackRefTheta(), operator=(), ProcessTracks(), AliSPDMCTrackDensity::StoreParticle(), and StoreParticle().
|
protected |
Definition at line 267 of file AliBaseMCTrackDensity.h.
Referenced by CreateOutputObjects(), operator=(), and ProcessTrack().
|
protected |
Definition at line 266 of file AliBaseMCTrackDensity.h.
Referenced by CreateOutputObjects(), operator=(), and StoreParticle().
|
protected |
Definition at line 272 of file AliBaseMCTrackDensity.h.
Referenced by CalculateTruthWeight(), CalculateWeight(), GetCollisionParameters(), and operator=().
|
protected |
Definition at line 274 of file AliBaseMCTrackDensity.h.
Referenced by GetMother(), operator=(), and SetTrackGammaToPi0().
|
protected |
Definition at line 269 of file AliBaseMCTrackDensity.h.
Referenced by CalculateTruthWeight(), operator=(), ProcessTracks(), and SetTruthWeights().
|
protected |
Definition at line 263 of file AliBaseMCTrackDensity.h.
Referenced by operator=(), Print(), ProcessTracks(), and SetUseOnlyPrimary().
|
protected |
Definition at line 268 of file AliBaseMCTrackDensity.h.
Referenced by CalculateWeight(), CreateOutputObjects(), operator=(), Print(), SetWeights(), and StoreParticle().