AliPhysics  a6017e1 (a6017e1)
Inheritance diagram for AliTrackletAODTask:

Public Types

enum  EStatus {
  kSeen, kClusters, kFilter, kIP,
  kReconstruct, kInject, kTracklets, kStored,
  kNStatus
}
 
- Public Types inherited from AliTrackletAODUtils
typedef TList Container
 

Public Member Functions

 AliTrackletAODTask ()
 
 AliTrackletAODTask (const char *name)
 
 AliTrackletAODTask (const AliTrackletAODTask &other)
 
AliTrackletAODTaskoperator= (const AliTrackletAODTask &other)
 
void Print (Option_t *) const
 
Task interface
void UserCreateOutputObjects ()
 
void UserExec (Option_t *)
 
void FinishTaskOutput ()
 
void Terminate (Option_t *)
 
Bool_t Connect ()
 
Set parameters of the reconstruction
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)
 
virtual void SetFilterWeights (AliTrackletBaseWeights *w)
 
- Public Member Functions inherited from AliTrackletAODUtils
 AliTrackletAODUtils ()
 
virtual ~AliTrackletAODUtils ()
 

Static Public Member Functions

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)
 

Protected Member Functions

Worker initialization
virtual Bool_t WorkerInit ()
 
Bool_t InitCDB ()
 
virtual Int_t GetCDBReferenceRun () const
 
virtual const char * GetCDBReferenceURL () const
 
Bool_t InitBranch ()
 
Event processing
virtual Bool_t ProcessEvent ()
 
Bool_t HasGeometry ()
 
Bool_t HasField (AliVEvent *event)
 
TTreeFindClusters ()
 
virtual TTreeFilterClusters (TTree *t)
 
virtual void CleanClusters (TTree *&t)
 
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 ()
 
Tracklet creation
virtual const char * TrackletClassName () const
 
virtual AliAODTrackletMakeTracklet (Bool_t normal)
 
Bool_t ProcessTracklets (Bool_t normal, AliVMultiplicity *mult)
 
virtual AliAODTrackletProcessTracklet (Bool_t normal, AliMultiplicity *mult, Int_t no)
 

Protected Attributes

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
 

Detailed Description

Store tracklets on AOD

Definition at line 69 of file AliTrackletAODTask.C.

Member Enumeration Documentation

Status bins

Enumerator
kSeen 

Event was seen

kClusters 

Event has clusters

kFilter 

Clusters was filtered

kIP 

Event has IP

kReconstruct 

Reconstruction was run

kInject 

Injection was run

kTracklets 

Tracklets was processed

kStored 

Event was stored

kNStatus 

Counter of bins

Definition at line 75 of file AliTrackletAODTask.C.

Constructor & Destructor Documentation

AliTrackletAODTask::AliTrackletAODTask ( )

Default constructor - for ROOT I/O only

Definition at line 404 of file AliTrackletAODTask.C.

Referenced by Create().

AliTrackletAODTask::AliTrackletAODTask ( const char *  name)

Named user constructor

Parameters
nameName of the task

Definition at line 422 of file AliTrackletAODTask.C.

AliTrackletAODTask::AliTrackletAODTask ( const AliTrackletAODTask other)

Copy constructor

Parameters
otherObject to copy from

Definition at line 442 of file AliTrackletAODTask.C.

Member Function Documentation

virtual void AliTrackletAODTask::CleanClusters ( TTree *&  t)
inlineprotectedvirtual

Clean up possible copy of tree of clusters

Parameters
t

Reimplemented in AliTrackletAODMCTask.

Definition at line 298 of file AliTrackletAODTask.C.

Referenced by ProcessEvent(), and AliTrackletAODMCTask::SetFilterWeights().

Bool_t AliTrackletAODTask::Connect ( )

Connect this task to the train

Returns
true on success

Definition at line 460 of file AliTrackletAODTask.C.

Referenced by Create(), and Terminate().

AliTrackletAODTask * AliTrackletAODTask::Create ( const char *  weights = "")
static

Create our task and connect it

Returns
Pointer to newly created task, or null

Definition at line 1790 of file AliTrackletAODTask.C.

virtual TTree* AliTrackletAODTask::FilterClusters ( TTree t)
inlineprotectedvirtual

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

Parameters
tTree of clusters

Reimplemented in AliTrackletAODMCTask.

Definition at line 292 of file AliTrackletAODTask.C.

Referenced by FindClusters(), and AliTrackletAODMCTask::SetFilterWeights().

TTree * AliTrackletAODTask::FindClusters ( )
protected

Find cluster (rec.point) tree

Returns
Pointer to tree or null

Definition at line 716 of file AliTrackletAODTask.C.

Referenced by GetCDBReferenceURL(), and ProcessEvent().

AliVEvent * AliTrackletAODTask::FindEvent ( )
protected

Get the event

Returns
Pointer to event or null

Definition at line 708 of file AliTrackletAODTask.C.

Referenced by CleanClusters(), and ProcessEvent().

const AliVVertex * AliTrackletAODTask::FindIP ( AliVEvent *  event,
Double_t  maxDispersion = 0.04,
Double_t  maxZError = 0.25 
)
protected

Find the interaction point location

Parameters
eventEvent
maxDispersionMax dispersion
maxZErrorMax error along Z
Returns
Pointer to vertex, or null in case of problems

Definition at line 737 of file AliTrackletAODTask.C.

Referenced by CleanClusters(), and ProcessEvent().

void AliTrackletAODTask::FinishTaskOutput ( )
inline

Called at end of worker job.

Definition at line 146 of file AliTrackletAODTask.C.

virtual Int_t AliTrackletAODTask::GetCDBReferenceRun ( ) const
inlineprotectedvirtual

Get the CDB reference run number

Returns
A run from LHC10h

Definition at line 242 of file AliTrackletAODTask.C.

Referenced by InitCDB().

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

Get the CDB reference URL

Returns
A fixed string pointing to 2010

Reimplemented in AliTrackletAODMCTask.

Definition at line 248 of file AliTrackletAODTask.C.

Referenced by InitCDB().

Bool_t AliTrackletAODTask::HasField ( AliVEvent *  event)
protected

Check if we have the magnetic field

Returns
true on success

Definition at line 697 of file AliTrackletAODTask.C.

Referenced by GetCDBReferenceURL(), and ProcessEvent().

Bool_t AliTrackletAODTask::HasGeometry ( )
protected

Check that we have an initialized geometry if needed

Returns
true if all is good

Definition at line 687 of file AliTrackletAODTask.C.

Referenced by GetCDBReferenceURL(), and ProcessEvent().

Bool_t AliTrackletAODTask::InitBranch ( )
protected

Initialize our output branch

Returns
true on success

Definition at line 582 of file AliTrackletAODTask.C.

Referenced by GetCDBReferenceURL(), and WorkerInit().

Bool_t AliTrackletAODTask::InitCDB ( )
protected

Make sure CDB is initialized

Returns
true on success

Definition at line 526 of file AliTrackletAODTask.C.

Referenced by SetFilterWeights(), and WorkerInit().

AliAODTracklet * AliTrackletAODTask::MakeTracklet ( Bool_t  normal)
protectedvirtual

Create a tracklet

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

Reimplemented in AliTrackletAODMCTask.

Definition at line 886 of file AliTrackletAODTask.C.

Referenced by AliTrackletAODMCTask::ProcessGenerated(), ProcessTracklet(), TrackletClassName(), and AliTrackletAODMCTask::TrackletClassName().

Bool_t AliTrackletAODTask::MarkForStore ( )
protected

Mark the event as one to store on AOD tree

Returns
true on success

Definition at line 788 of file AliTrackletAODTask.C.

Referenced by CleanClusters(), and UserExec().

AliTrackletAODTask & AliTrackletAODTask::operator= ( const AliTrackletAODTask other)

Assignment operator

Parameters
otherObject to assign from
Returns
Reference to this object

Definition at line 505 of file AliTrackletAODTask.C.

void AliTrackletAODTask::Print ( Option_t ) const

Print information to standard output

Definition at line 489 of file AliTrackletAODTask.C.

Bool_t AliTrackletAODTask::ProcessEvent ( )
protectedvirtual

Process a single event

Returns

Reimplemented in AliTrackletAODMCTask.

Definition at line 657 of file AliTrackletAODTask.C.

Referenced by GetCDBReferenceURL(), AliTrackletAODMCTask::ProcessEvent(), AliTrackletAODMCTask::SetFilterWeights(), and UserExec().

AliAODTracklet * AliTrackletAODTask::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 in AliTrackletAODMCTask.

Definition at line 894 of file AliTrackletAODTask.C.

Referenced by AliTrackletAODMCTask::ProcessTracklet(), ProcessTracklets(), TrackletClassName(), and AliTrackletAODMCTask::TrackletClassName().

Bool_t AliTrackletAODTask::ProcessTracklets ( Bool_t  normal,
AliVMultiplicity *  mult 
)
protected

Process tracklets create by the reconstruction

Parameters
normalWhether this this is normal reconstruction
multThe created tracklets
Returns
true on success

Definition at line 860 of file AliTrackletAODTask.C.

Referenced by ProcessEvent(), Reconstruct(), and TrackletClassName().

Bool_t AliTrackletAODTask::Reconstruct ( TTree clusters,
const AliVVertex *  ip 
)
protected

Reconstruct the tracklets from passed clusters

Parameters
clustersClusters
ipInteraction point coordinates

Definition at line 802 of file AliTrackletAODTask.C.

Referenced by CleanClusters(), and ProcessEvent().

void AliTrackletAODTask::SetDPhiShift ( Double_t  x = 0.0045)
inline

Set \(\delta_{\phi}\)

Parameters
xShift of \(\Delta\phi\)

Definition at line 174 of file AliTrackletAODTask.C.

void AliTrackletAODTask::SetDPhiWindow ( Double_t  x = 0.06)
inline

Set \( d\phi\) window - used for reconstruction only

Parameters
xValue

Definition at line 192 of file AliTrackletAODTask.C.

void AliTrackletAODTask::SetDThetaWindow ( Double_t  x = 0.025)
inline

Set DThetaWindow

Parameters
xValue

Definition at line 186 of file AliTrackletAODTask.C.

virtual void AliTrackletAODTask::SetFilterMode ( Int_t  mode)
inlinevirtual

Whether to filter clusters corresponding to strange particles

Parameters
modeMode of filtering
  • 0 No filtering
  • 1 Random filtering
  • 2 Track filtering

Definition at line 214 of file AliTrackletAODTask.C.

virtual void AliTrackletAODTask::SetFilterWeights ( AliTrackletBaseWeights w)
inlinevirtual

Set weights to use for filtering.

Parameters
wWeights

Reimplemented in AliTrackletAODMCTask.

Definition at line 220 of file AliTrackletAODTask.C.

Referenced by Create().

void AliTrackletAODTask::SetMaxDelta ( Double_t  x = 25)
inline

Set Maximum \( \Delta\) to consider

Parameters
xValue

Definition at line 180 of file AliTrackletAODTask.C.

void AliTrackletAODTask::SetPhiOverlapCut ( Double_t  x = 0.005)
inline

Set PhiOverlapCut - used for reconstruction only

Parameters
xValue

Definition at line 198 of file AliTrackletAODTask.C.

void AliTrackletAODTask::SetScaleDTheta ( Bool_t  x = false)
inline

Set wether to scale \(\Delta\theta\) by \(\sin^2\theta\)

Parameters
xIf true, scale

Definition at line 168 of file AliTrackletAODTask.C.

void AliTrackletAODTask::SetZEtaOverlapCut ( Double_t  x = 0.05)
inline

Set ZEtaOverlapCut - used for reconstruction only

Parameters
xValue

Definition at line 204 of file AliTrackletAODTask.C.

void AliTrackletAODTask::Terminate ( Option_t )
inline

Called at end of master job on merged results.

Definition at line 151 of file AliTrackletAODTask.C.

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

The name of the tracklet class to use

Returns
Class name as a string

Reimplemented in AliTrackletAODMCTask.

Definition at line 340 of file AliTrackletAODTask.C.

Referenced by InitBranch().

void AliTrackletAODTask::UserCreateOutputObjects ( )

Delegate worker initialization

Definition at line 510 of file AliTrackletAODTask.C.

void AliTrackletAODTask::UserExec ( Option_t )

Event processing

Definition at line 641 of file AliTrackletAODTask.C.

Bool_t AliTrackletAODTask::WorkerInit ( )
protectedvirtual

Member Data Documentation

Container* AliTrackletAODTask::fContainer
protected
Double_t AliTrackletAODTask::fDPhiShift
protected

Shift in \(\Delta\phi\)

Definition at line 385 of file AliTrackletAODTask.C.

Referenced by Print(), Reconstruct(), and SetDPhiShift().

Double_t AliTrackletAODTask::fDPhiWindow
protected

Window in \( \Delta\phi \)

Definition at line 389 of file AliTrackletAODTask.C.

Referenced by Print(), Reconstruct(), and SetDPhiWindow().

Double_t AliTrackletAODTask::fDThetaWindow
protected

Window in \( \Delta\theta \)

Definition at line 387 of file AliTrackletAODTask.C.

Referenced by Print(), Reconstruct(), and SetDThetaWindow().

Int_t AliTrackletAODTask::fFilterMode
protected

Whether to remove clusters corresponding to strange primary parents

Definition at line 397 of file AliTrackletAODTask.C.

Referenced by AliTrackletAODMCTask::CleanClusters(), AliTrackletAODMCTask::FilterClusters(), InitBranch(), Print(), and SetFilterMode().

Double_t AliTrackletAODTask::fMaxDelta
protected

Maximum \(\Delta\) to consider

Definition at line 383 of file AliTrackletAODTask.C.

Referenced by Print(), Reconstruct(), and SetMaxDelta().

TProfile2D* AliTrackletAODTask::fNClustersVsNTracklets
protected

Correlation of clusters and tracklets

Definition at line 379 of file AliTrackletAODTask.C.

Referenced by ProcessTracklets(), Reconstruct(), and WorkerInit().

Double_t AliTrackletAODTask::fPhiOverlapCut
protected

Overlap cut in \(\phi\) plane

Definition at line 391 of file AliTrackletAODTask.C.

Referenced by Print(), Reconstruct(), and SetPhiOverlapCut().

AliITSMultRecBg* AliTrackletAODTask::fReco
protected

Pointer to current reconstruction object

Definition at line 395 of file AliTrackletAODTask.C.

Referenced by AliTrackletAODMCTask::ProcessTracklet(), and Reconstruct().

Bool_t AliTrackletAODTask::fScaleDTheta
protected

Whether we should scale \( \Delta\theta\) by \(\sin^{-2}(\theta)\)

Definition at line 381 of file AliTrackletAODTask.C.

Referenced by Print(), Reconstruct(), and SetScaleDTheta().

TH1* AliTrackletAODTask::fStatus
protected
TParameter<double>* AliTrackletAODTask::fStrangeLoss
protected
TClonesArray* AliTrackletAODTask::fTracklets
protected

Container of tracklets

Definition at line 373 of file AliTrackletAODTask.C.

Referenced by InitBranch(), MakeTracklet(), AliTrackletAODMCTask::MakeTracklet(), and UserExec().

Double_t AliTrackletAODTask::fZEtaOverlapCut
protected

Overlap cut in \( z,\eta\) plane

Definition at line 393 of file AliTrackletAODTask.C.

Referenced by Print(), Reconstruct(), and SetZEtaOverlapCut().


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