AliPhysics  05c4c93 (05c4c93)
AliTrackletAODMCTask Class Reference
Inheritance diagram for AliTrackletAODMCTask:

Public Member Functions

 AliTrackletAODMCTask ()
 
 AliTrackletAODMCTask (const char *name)
 
 AliTrackletAODMCTask (const AliTrackletAODMCTask &other)
 
AliTrackletAODMCTaskoperator= (const AliTrackletAODMCTask &other)
 
virtual void SetFilterWeights (AliTrackletBaseWeights *w)
 
- Public Member Functions inherited from AliTrackletAODTask
 AliTrackletAODTask ()
 
 AliTrackletAODTask (const char *name)
 
 AliTrackletAODTask (const AliTrackletAODTask &other)
 
AliTrackletAODTaskoperator= (const AliTrackletAODTask &other)
 
void Print (Option_t *) const
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *)
 
void FinishTaskOutput ()
 
void Terminate (Option_t *)
 
Bool_t Connect ()
 
void SetScaleDTheta (Bool_t x=false)
 
void SetDPhiShift (Double_t x=0.0045)
 
void SetMaxDelta (Double_t x=25)
 
void SetDThetaWindow (Double_t x=0.025)
 
void SetDPhiWindow (Double_t x=0.06)
 
void SetPhiOverlapCut (Double_t x=0.005)
 
void SetZEtaOverlapCut (Double_t x=0.05)
 
virtual void SetFilterMode (Int_t mode)
 
- Public Member Functions inherited from AliTrackletAODUtils
 AliTrackletAODUtils ()
 
virtual ~AliTrackletAODUtils ()
 

Protected Member Functions

Event processing
Bool_t WorkerInit ()
 
virtual Bool_t ProcessEvent ()
 
Bool_t ProcessGenerated ()
 
Filtering of tracks and clusters
virtual TTreeFilterClusters (TTree *t)
 
virtual void FilterClustersRandom (TTree *t, TTree *copy, Double_t cent, Double_t ipz)
 
virtual void FilterClustersTrack (TTree *t, TTree *copy, Double_t cent, Double_t ipz)
 
virtual void CleanClusters (TTree *&t)
 
Double_t LookupWeight (TParticle *particle, Double_t cent=0, Double_t ipz=0) const
 
Bool_t KeepIt (Double_t weight) const
 
Worker initialization
virtual const char * GetCDBReferenceURL () const
 
Tracklet creation
virtual const char * TrackletClassName () const
 
virtual AliAODTrackletMakeTracklet (Bool_t normal)
 
virtual AliAODTrackletProcessTracklet (Bool_t normal, AliMultiplicity *mult, Int_t no)
 
Investigating primary parents
Int_t FindPrimaryParentID (Int_t label) const
 
TParticle * FindPrimaryParent (Int_t label) const
 
Int_t FindParent (Int_t label) const
 
Int_t FindParents (Int_t label, TArrayI &fill, Int_t offset) const
 
Int_t CommonParent (Int_t label, const TArrayI &fill) const
 
- Protected Member Functions inherited from AliTrackletAODTask
Bool_t InitCDB ()
 
virtual Int_t GetCDBReferenceRun () const
 
Bool_t InitBranch ()
 
Bool_t HasGeometry ()
 
Bool_t HasField (AliVEvent *event)
 
TTreeFindClusters ()
 
AliVEvent * FindEvent ()
 
const AliVVertex * FindIP (AliVEvent *event, Double_t maxDispersion=0.04, Double_t maxZError=0.25)
 
Bool_t Reconstruct (TTree *clusters, const AliVVertex *ip)
 
Bool_t MarkForStore ()
 
Bool_t ProcessTracklets (Bool_t normal, AliVMultiplicity *mult)
 

Protected Attributes

AliTrackletBaseWeightsfFilterWeights
 
TH1fSeenTrackPDGs
 
TH1fUsedTrackPDGs
 
TH2fSeenClusterPDGs
 
TH2fUsedClusterPDGs
 
- Protected Attributes inherited from AliTrackletAODTask
TClonesArray * fTracklets
 
ContainerfContainer
 
TH1fStatus
 
TProfile2D * fNClustersVsNTracklets
 
Bool_t fScaleDTheta
 
Double_t fMaxDelta
 
Double_t fDPhiShift
 
Double_t fDThetaWindow
 
Double_t fDPhiWindow
 
Double_t fPhiOverlapCut
 
Double_t fZEtaOverlapCut
 
AliITSMultRecBg * fReco
 
Int_t fFilterMode
 
TParameter< double > * fStrangeLoss
 

Additional Inherited Members

- Public Types inherited from AliTrackletAODTask
enum  EStatus {
  kSeen, kClusters, kFilter, kIP,
  kReconstruct, kInject, kTracklets, kStored,
  kNStatus
}
 
- Public Types inherited from AliTrackletAODUtils
typedef TList Container
 
- Static Public Member Functions inherited from AliTrackletAODTask
static AliTrackletAODTaskCreate (const char *weights="")
 
- Static Public Member Functions inherited from AliTrackletAODUtils
static void PdgAttr (Int_t pdg, TString &nme, Color_t &c, Style_t &s)
 
static const char * CentName (Double_t c1, Double_t c2)
 
static Color_t CentColor (const TAxis &axis, Double_t c1, Double_t c2)
 
static Color_t CentColor (Int_t bin)
 
static TFile * OpenFile (const char *filename)
 
static Bool_t CheckAxisNBins (const char *which, const TAxis *a1, const TAxis *a2)
 
static Bool_t CheckAxisLimits (const char *which, const TAxis *a1, const TAxis *a2)
 
static Bool_t CheckAxisBins (const char *which, const TAxis *a1, const TAxis *a2)
 
static Bool_t CheckAxisLabels (const char *which, const TAxis *a1, const TAxis *a2)
 
static Bool_t CheckAxis (const char *which, const TAxis *a1, const TAxis *a2, Bool_t alsoLbls)
 
static Bool_t CheckConsistency (const TH1 *h1, const TH1 *h2)
 
static TObjectGetO (Container *parent, const char *name, TClass *cls=0, Bool_t verb=true)
 
static TObjectGetO (TDirectory *parent, const char *name, TClass *cls=0, Bool_t verb=true)
 
static TH1GetH1 (Container *parent, const char *name, Bool_t verb=true)
 
static TH1GetH1 (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TProfile * GetP1 (Container *parent, const char *name, Bool_t verb=true)
 
static TH2GetH2 (Container *parent, const char *name, Bool_t verb=true)
 
static TH2GetH2 (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TH3GetH3 (Container *parent, const char *name, Bool_t verb=true)
 
static TH3GetH3 (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TProfile2D * GetP2 (Container *parent, const char *name, Bool_t verb=true)
 
static TProfile * GetP (Container *parent, const char *name, Bool_t verb=true)
 
static THStack * GetHS (Container *parent, const char *name, Bool_t verb=true)
 
static THStack * GetHS (TDirectory *parent, const char *name, Bool_t verb=true)
 
static ContainerGetC (Container *parent, const char *name, Bool_t verb=true)
 
static ContainerGetC (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TDirectory * GetT (TDirectory *parent, const char *name, Bool_t verb=true)
 
static Double_t GetD (Container *parent, const char *name, Double_t def=-1, Bool_t verb=true)
 
static Int_t GetI (Container *parent, const char *name, Int_t def=-1, Bool_t verb=true)
 
static Int_t GetB (Container *parent, const char *name, Bool_t def=false, Bool_t verb=true)
 
static TH1CopyH1 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true)
 
static TH2CopyH2 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true)
 
static TH3CopyH3 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true)
 
static void CopyAttr (const TH1 *src, TH1 *dest)
 
static TH1Make1D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis)
 
static TProfile * Make1P (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis)
 
static TH2Make2D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis)
 
static TH3Make3D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis, const TAxis &zAxis)
 
static TProfile2D * Make2P (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis)
 
static TH1Scale (TH1 *h, Double_t x, Double_t xe)
 
static TH2Scale (TH2 *h, Double_t x, Double_t xe)
 
static TH2Scale (TH2 *h, TH1 *s)
 
static void FixAxis (TAxis &axis, const char *title=0)
 
static void ScaleAxis (TAxis &ret, Double_t fact=1)
 
static void SetAxis (TAxis &axis, Int_t n, Double_t *borders)
 
static void SetAxis (TAxis &axis, const TString &spec, const char *sep=":,")
 
static void SetAxis (TAxis &axis, Int_t n, Double_t l, Double_t h)
 
static void SetAxis (TAxis &axis, Int_t n, Double_t m)
 
static void PrintAxis (const TAxis &axis, Int_t nSig=2, const char *alt=0)
 
static TH2ScaleToIPz (TH2 *h, TH1 *ipZ, Bool_t full=false)
 
static TH3ScaleToIPz (TH3 *h, TH1 *ipZ, Bool_t full=false)
 
static TH3ScaleDelta (TH3 *h, TH2 *scale)
 
static TH2ProjectEtaDelta (TH3 *h)
 
static TH1ProjectDelta (TH2 *h)
 
static TH1ProjectDeltaFull (TH3 *h)
 
static TH1AverageOverIPz (TH2 *h, const char *name, UShort_t mode, TH1 *ipz, Double_t ipEff=0, TH2 *mask=0, Bool_t verb=false)
 
static TObjectCloneAndAdd (Container *c, TObject *o)
 
static Double_t Integrate (TH1 *h, Double_t min, Double_t max, Double_t &err)
 
static Double_t RatioE (Double_t n, Double_t en, Double_t d, Double_t ed, Double_t &er)
 
static Double_t RatioE2 (Double_t n, Double_t e2n, Double_t d, Double_t e2d, Double_t &e2r)
 
static TH1RatioH (const TH1 *num, const TH1 *denom, const char *name=0)
 
static void FixMinMax (TH1 *h, Bool_t ignoreZero=true)
 
static void FixMinMax (THStack *h, Bool_t ignoreZero=true)
 
static Int_tPdgArray (Int_t &size)
 
static const TAxisPdgAxis ()
 
static Int_t PdgBin (Int_t pdg)
 

Detailed Description

Store tracklets on AOD

Definition at line 940 of file AliTrackletAODTask.C.

Constructor & Destructor Documentation

AliTrackletAODMCTask::AliTrackletAODMCTask ( )
inline

Default constructor - for ROOT I/O only

Definition at line 946 of file AliTrackletAODTask.C.

AliTrackletAODMCTask::AliTrackletAODMCTask ( const char *  name)
inline

Named user constructor

Parameters
nameName of the task

Definition at line 959 of file AliTrackletAODTask.C.

AliTrackletAODMCTask::AliTrackletAODMCTask ( const AliTrackletAODMCTask other)
inline

Copy constructor

Parameters
otherObject to copy from

Definition at line 972 of file AliTrackletAODTask.C.

Member Function Documentation

void AliTrackletAODMCTask::CleanClusters ( TTree *&  t)
protectedvirtual

Clean up possible copy of tree of clusters

Parameters
t

Reimplemented from AliTrackletAODTask.

Definition at line 1556 of file AliTrackletAODTask.C.

Int_t AliTrackletAODMCTask::CommonParent ( Int_t  label,
const TArrayI fill 
) const
protected

Find the the common parent of label and those given in fill, if any. If a common parent is found, return the index into fill of that parent.

Parameters
labelParticles who's parents we're checking
fillList of known parents
Returns
Index of common parent of label and those in fill

Definition at line 1743 of file AliTrackletAODTask.C.

TTree * AliTrackletAODMCTask::FilterClusters ( TTree t)
protectedvirtual

Pre-process clusters. This can remove clusters, etc.

Parameters
tTree of clusters

Reimplemented from AliTrackletAODTask.

Definition at line 1284 of file AliTrackletAODTask.C.

void AliTrackletAODMCTask::FilterClustersRandom ( TTree t,
TTree copy,
Double_t  cent,
Double_t  ipz 
)
protectedvirtual

Pre-process clusters. This can remove clusters independently of each other. That is, for each cluster we look up the parent primary particle(s), and find the corresponding weight \( w\). We then throw a dice and if number is larger than \( 1-1/w\), we remove the cluster.

Parameters
tTree of clusters
copyTree to fill with clusters
centCentrality (mostly 0)
ipzCollision point z-coordinate

Definition at line 1317 of file AliTrackletAODTask.C.

void AliTrackletAODMCTask::FilterClustersTrack ( TTree t,
TTree copy,
Double_t  cent,
Double_t  ipz 
)
protectedvirtual

Pre-process clusters. For all primary particles in the stack, we compute a weight \( w\). We then throw a dice, and if the number is larger than \( 1-1/w\), we mark that particle for removal. We then loop over all clusters in the SPD, and find the primary particle(s) that each cluster corresponds to. If such a primary particle is marked for removal, we remove the clusters.

Parameters
tTree of clusters
copyTree to fill with clusters
centCentrality (mostly 0)
ipzCollision point z-coordinate

Definition at line 1391 of file AliTrackletAODTask.C.

Int_t AliTrackletAODMCTask::FindParent ( Int_t  label) const
protected

Find parent of particle with label label. If no parent is found, or it goes beyond the stack, a negative value is returned.

Parameters
labelLabel particle to get the parent for
Returns
Label of parent to particle with label label.

Definition at line 1710 of file AliTrackletAODTask.C.

Int_t AliTrackletAODMCTask::FindParents ( Int_t  label,
TArrayI fill,
Int_t  offset 
) const
protected

Find list of parents corresponding to passed label.

We find the labels of all parent particles and store into cache fill. Elements are assigned starting from offset. In this way, we can invoke this member function multiple times and fill into the same cache array.

Parameters
labelStarting particle
fillCache to fill into
offsetOffset in fill to start assigning into
Returns
Number of assigned elements

Definition at line 1722 of file AliTrackletAODTask.C.

TParticle * AliTrackletAODMCTask::FindPrimaryParent ( Int_t  label) const
protected

Find first primary parent of particle identified by passed label

Parameters
labelLabel particle to search for primary parent of
Returns
Pointer to parent, or null if not found. Note, if label corresponds to a primary, then that particle is returned.

Definition at line 1766 of file AliTrackletAODTask.C.

Int_t AliTrackletAODMCTask::FindPrimaryParentID ( Int_t  label) const
protected

Find identifier of the first primary parent of particle identified by passed label

Parameters
labelLabel particle to search for primary parent of
Returns
Identifier of parent, or negative if not found. Note, if label corresponds to a primary, then that ID is returned.

Definition at line 1773 of file AliTrackletAODTask.C.

virtual const char* AliTrackletAODMCTask::GetCDBReferenceURL ( ) const
inlineprotectedvirtual

Get the CDB reference URL

Returns
A fixed string pointing to 2010

Reimplemented from AliTrackletAODTask.

Definition at line 1093 of file AliTrackletAODTask.C.

Bool_t AliTrackletAODMCTask::KeepIt ( Double_t  weight) const
protected

Pick random number to see if we should keep a track

Parameters
weightThe weight
Returns
true if we're to keep it

Definition at line 1548 of file AliTrackletAODTask.C.

Double_t AliTrackletAODMCTask::LookupWeight ( TParticle *  particle,
Double_t  cent = 0,
Double_t  ipz = 0 
) const
protected

Find the particle weight

Parameters
particleThe particle
Returns
The weight

Definition at line 1517 of file AliTrackletAODTask.C.

AliAODTracklet * AliTrackletAODMCTask::MakeTracklet ( Bool_t  normal)
protectedvirtual

Create a tracklet

Parameters
normalIf true, create for normal reconstruction
Returns
Pointer to newly allocated tracklet

Reimplemented from AliTrackletAODTask.

Definition at line 1636 of file AliTrackletAODTask.C.

AliTrackletAODMCTask& AliTrackletAODMCTask::operator= ( const AliTrackletAODMCTask other)
inline

Assignment operator

Parameters
otherObject to assign from
Returns
Reference to this object

Definition at line 987 of file AliTrackletAODTask.C.

Bool_t AliTrackletAODMCTask::ProcessEvent ( )
protectedvirtual

Process a single event

Returns
true on success

Reimplemented from AliTrackletAODTask.

Definition at line 1565 of file AliTrackletAODTask.C.

Bool_t AliTrackletAODMCTask::ProcessGenerated ( )
protected

Process MC truth

Returns
true on success

Definition at line 1576 of file AliTrackletAODTask.C.

AliAODTracklet * AliTrackletAODMCTask::ProcessTracklet ( Bool_t  normal,
AliMultiplicity *  mult,
Int_t  no 
)
protectedvirtual

Process a single tracklet

Parameters
normalWhether this this is normal reconstruction
multThe created tracklets
noTracklet number to investigate
Returns
Newly allocated tracklet or null

Reimplemented from AliTrackletAODTask.

Definition at line 1644 of file AliTrackletAODTask.C.

virtual void AliTrackletAODMCTask::SetFilterWeights ( AliTrackletBaseWeights w)
inlinevirtual

Set weights to use for filtering.

Parameters
wWeights

Reimplemented from AliTrackletAODTask.

Definition at line 996 of file AliTrackletAODTask.C.

virtual const char* AliTrackletAODMCTask::TrackletClassName ( ) const
inlineprotectedvirtual

The name of the tracklet class to use

Returns
Class name as a string

Reimplemented from AliTrackletAODTask.

Definition at line 1107 of file AliTrackletAODTask.C.

Bool_t AliTrackletAODMCTask::WorkerInit ( )
protectedvirtual

Initialize the worker

Reimplemented from AliTrackletAODTask.

Definition at line 1207 of file AliTrackletAODTask.C.

Member Data Documentation

AliTrackletBaseWeights* AliTrackletAODMCTask::fFilterWeights
protected

Filter weights

Definition at line 1189 of file AliTrackletAODTask.C.

TH2* AliTrackletAODMCTask::fSeenClusterPDGs
protected

Number of clusters per layer per PDG

Definition at line 1195 of file AliTrackletAODTask.C.

TH1* AliTrackletAODMCTask::fSeenTrackPDGs
protected

Number of tracks per PDG

Definition at line 1191 of file AliTrackletAODTask.C.

TH2* AliTrackletAODMCTask::fUsedClusterPDGs
protected

Number of clusters that survive filter per layer per PDG

Definition at line 1197 of file AliTrackletAODTask.C.

TH1* AliTrackletAODMCTask::fUsedTrackPDGs
protected

Tracks that survive the filtering

Definition at line 1193 of file AliTrackletAODTask.C.


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