AliPhysics  ef3b16e (ef3b16e)
AliTrackletdNdetaMCTask Class Reference
Inheritance diagram for AliTrackletdNdetaMCTask:

Classes

struct  CentBin
 

Public Types

enum  { kPrimaries = 0x8, kSecondaries = 0x10, kCombinatorics = 0x20, kUncorrCombinatorics = 0x40 }
 
- Public Types inherited from AliTrackletdNdetaTask
enum  { kNormal = 0x1, kInjection = 0x2, kRotation = 0x4 }
 
enum  {
  kAll =1, kEvent, kMultiplicity, kClusters,
  kTrigger, kIP, kCentrality, kReconstructed,
  kInjected, kRotated, kCompleted
}
 
- Public Types inherited from AliTrackletdNdetaUtils
typedef TList Container
 

Public Member Functions

 AliTrackletdNdetaMCTask ()
 
 AliTrackletdNdetaMCTask (const char *name, Bool_t reweigh=false)
 
virtual AliTrackletdNdetaTask::CentBinMakeCentBin (Float_t c1, Float_t c2, UShort_t recFlags)
 
- Public Member Functions inherited from AliTrackletdNdetaTask
void UserCreateOutputObjects ()
 
void UserExec (Option_t *)
 
void FinishTaskOutput ()
 
void Terminate (Option_t *)
 
virtual Bool_t Connect (const char *sumFile=0, const char *resFile=0)
 
void SetReconstructionMode (const TString &mode)
 
void SetReconstructionMode (UShort_t flags)
 
void SetCentralityMethod (const TString &name)
 
void SetCentralityAxis (Int_t n, Double_t *bins)
 
void SetCentralityAxis (const TString &spec)
 
void SetIPzAxis (Int_t n, Double_t min, Double_t max)
 
void SetIPzAxis (Int_t n, Double_t max)
 
void SetIPzAxis (const TString &spec)
 
void SetPhiAxis (Int_t n, Double_t min, Double_t max)
 
void SetPhiAxis (Int_t n, Double_t max)
 
void SetEtaAxis (Int_t n, Double_t min, Double_t max)
 
void SetEtaAxis (Int_t n, Double_t max)
 
void SetEtaAxis (const TString &spec)
 
void SetScaleDTheta (Bool_t x=false)
 
void SetDPhiShift (Double_t x=0.0045)
 
void SetShiftedDPhiCut (Double_t x=-1)
 
void SetScaleDThetaCut (Double_t x=-1)
 
void SetDeltaCut (Double_t x=1.5)
 
void SetMaxDelta (Double_t x=25)
 
void SetTailDelta (Double_t x=5)
 
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)
 
void SetPhiRotation (Double_t x=TMath::Pi())
 
 AliTrackletdNdetaTask (const char *name)
 
 AliTrackletdNdetaTask ()
 
virtual ~AliTrackletdNdetaTask ()
 
- Public Member Functions inherited from AliTrackletdNdetaUtils
 AliTrackletdNdetaUtils ()
 
virtual ~AliTrackletdNdetaUtils ()
 

Protected Member Functions

 AliTrackletdNdetaMCTask (const AliTrackletdNdetaMCTask &o)
 
AliTrackletdNdetaMCTaskoperator= (const AliTrackletdNdetaMCTask &o)
 
Other functions
virtual void Print (Option_t *option) const
 
- Protected Member Functions inherited from AliTrackletdNdetaTask
virtual void InitCentBins (Container *existing)
 
virtual Bool_t InitCDB ()
 
virtual Bool_t InitGeometry ()
 
virtual Int_t GetCDBReferenceRun () const
 
virtual void WorkerFinalize ()
 
virtual TTreeFindClusters (Bool_t needed)
 
virtual Double_t FindCentrality (AliVEvent *event)
 
virtual const AliVVertex * FindIP (AliVEvent *event, Double_t maxDispersion=0.04, Double_t maxZError=0.25)
 
virtual Bool_t FindTrigger ()
 
virtual Bool_t ProcessTracklets (TList &toRun, AliITSMultRecBg *reco, Double_t cent, Double_t ipZ, AliMultiplicity *mult)
 
UShort_t FindMode (AliITSMultRecBg *reco) const
 
virtual Bool_t Reconstruct (TList &toRun, UShort_t mode, TTree *clusters, Double_t cent, const AliVVertex *ip)
 
virtual void FillClusters (AliITSMultRecBg *reco)
 
virtual void FillClusters (AliMultiplicity *mult, Double_t ipZ)
 
virtual void ProcessEvent (Double_t cent, const AliVVertex *ip, AliMultiplicity *mult, TTree *clusters)
 
 AliTrackletdNdetaTask (const AliTrackletdNdetaTask &o)
 
AliTrackletdNdetaTaskoperator= (const AliTrackletdNdetaTask &o)
 

Static Protected Member Functions

static Int_tPdgArray (Int_t &size)
 
static Int_tSortedPdgArray (Int_t &size)
 
static Int_t FindPdg (Int_t pdg)
 
static TAxisMakePdgAxis ()
 

Protected Attributes

TH1fMCStatus
 
Bool_t fReweigh
 
- Protected Attributes inherited from AliTrackletdNdetaTask
ContainerfContainer
 
ContainerfCentBins
 
TString fCentMethod
 
TAxis fCentAxis
 
TAxis fIPzAxis
 
TAxis fEtaAxis
 
TAxis fPhiAxis
 
TH1fCent
 
TH1fIPz
 
TH2fEtaPhi
 
TH2fUsedClusters0
 
TH2fUsedClusters1
 
TH2fAllClusters0
 
TH2fAllClusters1
 
TH1fStatus
 
UShort_t fRecMode
 
Bool_t fScaleDTheta
 
Double_t fMaxDelta
 
Double_t fTailDelta
 
Double_t fDPhiShift
 
Double_t fShiftedDPhiCut
 
Double_t fScaledDThetaCut
 
Double_t fDeltaCut
 
Double_t fDThetaWindow
 
Double_t fDPhiWindow
 
Double_t fPhiOverlapCut
 
Double_t fZEtaOverlapCut
 
Double_t fPhiRotation
 

Interface

enum  {
  kAllMC = 1, kMCEvent, kStack, kGenHeader,
  kDataOK, kMCTruth, kReweighed, kMCCompleted
}
 
virtual const char * GetCDBReferenceURL () const
 
virtual void WorkerInit ()
 
virtual Bool_t CheckEvent (Double_t &cent, const AliVVertex *&ip, AliMultiplicity *&mult, TTree *&clusters)
 
virtual void MasterFinalize (Container *results)
 
virtual Double_t TrackletWeight (Int_t trackletNumber, const AliMultiplicity *mult) const
 
void ReweighStack (Double_t cent) const
 
Double_t LookupWeight (Int_t trackNo, TParticle *particle, Double_t cent) const
 
virtual Double_t LookupWeight (TParticle *particle, Double_t cent) const
 
virtual Bool_t FillPrimaries (Double_t cent, Double_t ipZ, Double_t genIPz, Bool_t dataOK)
 
Bool_t HaveCommonParent (const Float_t *labels0, const Float_t *labels1) const
 
virtual void FillBins (TList &toRun, AliITSMultRecBg *reco, AliMultiplicity *mult, Int_t trackletNumber, Bool_t isSignal, Double_t ipz, Double_t eta, Double_t dPhi, Double_t dPhiS, Double_t dTheta, Double_t dThetaX, Double_t delta, Double_t weight) const
 

Additional Inherited Members

- Static Public Member Functions inherited from AliTrackletdNdetaUtils
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)
 
static TObjectGetO (TDirectory *parent, const char *name, TClass *cls)
 
static TH1GetH1 (Container *parent, const char *name)
 
static TH2GetH2 (Container *parent, const char *name)
 
static ContainerGetC (Container *parent, const char *name)
 
static ContainerGetC (TDirectory *parent, const char *name)
 
static Double_t GetD (Container *parent, const char *name, Double_t def=-1)
 
static Int_t GetI (Container *parent, const char *name, Int_t def=-1)
 
static Int_t GetB (Container *parent, const char *name, Bool_t def=false)
 
static TH1CopyH1 (Container *parent, const char *name, const char *newName=0)
 
static TH2CopyH2 (Container *parent, const char *name, const char *newName=0)
 
static TH1Make1D (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 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 &axis, 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 TH1AverageOverIPz (TH2 *h, const char *name, UShort_t mode, TH1 *ipz, TH2 *mask=0)
 
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)
 

Detailed Description

A task to analyse SPD tracklet data for the charged particle pseudorapidity density - simulated data case

Definition at line 2237 of file AliTrackletdNdetaTask.C.

Member Enumeration Documentation

anonymous enum
Enumerator
kPrimaries 
kSecondaries 
kCombinatorics 
kUncorrCombinatorics 

Definition at line 2240 of file AliTrackletdNdetaTask.C.

anonymous enum
protected
Enumerator
kAllMC 
kMCEvent 
kStack 
kGenHeader 
kDataOK 
kMCTruth 
kReweighed 
kMCCompleted 

Definition at line 2516 of file AliTrackletdNdetaTask.C.

Constructor & Destructor Documentation

AliTrackletdNdetaMCTask::AliTrackletdNdetaMCTask ( )
inline

Constructor

Definition at line 2452 of file AliTrackletdNdetaTask.C.

AliTrackletdNdetaMCTask::AliTrackletdNdetaMCTask ( const char *  name,
Bool_t  reweigh = false 
)
inline

Constructor

Definition at line 2460 of file AliTrackletdNdetaTask.C.

AliTrackletdNdetaMCTask::AliTrackletdNdetaMCTask ( const AliTrackletdNdetaMCTask o)
inlineprotected

Constructor

Definition at line 2487 of file AliTrackletdNdetaTask.C.

Member Function Documentation

Bool_t AliTrackletdNdetaMCTask::CheckEvent ( Double_t cent,
const AliVVertex *&  ip,
AliMultiplicity *&  mult,
TTree *&  clusters 
)
protectedvirtual

Check the event. Side effect is to set the internal pointer to the MC stack.

Parameters
centOn return, the centrality
ipOn return, the IP coordiantes
multOn return, the container of tracklets
clustersOn return, the clusters - if requested
Returns
true if the event is selected

Reimplemented from AliTrackletdNdetaTask.

Definition at line 3091 of file AliTrackletdNdetaTask.C.

void AliTrackletdNdetaMCTask::FillBins ( TList toRun,
AliITSMultRecBg *  reco,
AliMultiplicity *  mult,
Int_t  trackletNumber,
Bool_t  isSignal,
Double_t  ipz,
Double_t  eta,
Double_t  dPhi,
Double_t  dPhiS,
Double_t  dTheta,
Double_t  dThetaX,
Double_t  delta,
Double_t  weight 
) const
protectedvirtual

Fill selected centrality bins with tracklet information

Parameters
toRunSelected centrality bins
recoReconstructor
multContainer of tracklets
trackletNumberTracklet number
isSignalIf this is considered a signal
ipzReconstructed IP z coordinate
etaPseudorapidity of tracklet
dPhiAzimuthal opening angle
dPhiSShifted azimuthal opening angle
dThetaPolar opening angle
dThetaXScaled polar opening angle
deltaTracklet \(\chi^2\)
weightTracklet weight (for MC)

Reimplemented from AliTrackletdNdetaTask.

Definition at line 3328 of file AliTrackletdNdetaTask.C.

Bool_t AliTrackletdNdetaMCTask::FillPrimaries ( Double_t  cent,
Double_t  ipZ,
Double_t  genIPz,
Bool_t  dataOK 
)
protectedvirtual

Fill primary information

Parameters
centCentrality
ipZReconstructed IP Z coordinate
genIPzGenerated IP Z coordinate
dataOKTrue if event is selected

Definition at line 3212 of file AliTrackletdNdetaTask.C.

Referenced by CheckEvent().

Int_t AliTrackletdNdetaMCTask::FindPdg ( Int_t  pdg)
staticprotected

Find the index of a PDG in the sorted array of PDGs. Note, if the PDG is 1B or larger, it will be considered valid. If the exact PDG isn't found, then the size of the array will be returned.

Parameters
pdgPDG code to look up
Returns
Index of PDG code, or the size of the array

Definition at line 3493 of file AliTrackletdNdetaTask.C.

Referenced by AliTrackletdNdetaMCTask::CentBin::FillPrimary(), and AliTrackletdNdetaMCTask::CentBin::FillSpecie().

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

Get the CDB reference URL

Returns
A fixed string pointing to 2008

Reimplemented from AliTrackletdNdetaTask.

Definition at line 2531 of file AliTrackletdNdetaTask.C.

Bool_t AliTrackletdNdetaMCTask::HaveCommonParent ( const Float_t labels0,
const Float_t labels1 
) const
protected

Check if two particle labels eventually leads back to the same mother particle.

Parameters
labels0First label
labels1Second label
Returns
true if both labels lead back to the same mother particle

Definition at line 3277 of file AliTrackletdNdetaTask.C.

Referenced by FillBins().

Double_t AliTrackletdNdetaMCTask::LookupWeight ( Int_t  trackNo,
TParticle *  particle,
Double_t  cent 
) const
protected

Look-up weight of a particle (secondary or primary). This is done by recursively calling this function until we hit the primary mother particle.

Parameters
trackNoTrack number
particleParticle information
centEvent centrality
Returns
Weight of particle

Definition at line 3192 of file AliTrackletdNdetaTask.C.

Referenced by ReweighStack().

virtual Double_t AliTrackletdNdetaMCTask::LookupWeight ( TParticle *  particle,
Double_t  cent 
) const
inlineprotectedvirtual

Function to return the weight of a primary particle. Here, it always returns 1, but it can be overloaded to do more.

Parameters
particlePrimary particle to look-up weight for
centEvent centrality
Returns
The weight
Todo:
Implement the actual look-up

Definition at line 2603 of file AliTrackletdNdetaTask.C.

virtual AliTrackletdNdetaTask::CentBin* AliTrackletdNdetaMCTask::MakeCentBin ( Float_t  c1,
Float_t  c2,
UShort_t  recFlags 
)
inlinevirtual

Make a centrality bin

Parameters
c1Low edge
c2High edge
recFlagsReconstruction flags
Returns
A new bin

Reimplemented from AliTrackletdNdetaTask.

Definition at line 2474 of file AliTrackletdNdetaTask.C.

TAxis * AliTrackletdNdetaMCTask::MakePdgAxis ( )
staticprotected

Make an axis of PDG codes. Note, the axis is sorted by PDG number - not abundance.

Returns
Pointer to static axis object

Definition at line 3505 of file AliTrackletdNdetaTask.C.

Referenced by AliTrackletdNdetaMCTask::CentBin::WorkerInit().

void AliTrackletdNdetaMCTask::MasterFinalize ( Container results)
protectedvirtual

Called on master on merged result.

Parameters
resultsOutput container for results

Reimplemented from AliTrackletdNdetaTask.

Definition at line 3143 of file AliTrackletdNdetaTask.C.

AliTrackletdNdetaMCTask& AliTrackletdNdetaMCTask::operator= ( const AliTrackletdNdetaMCTask o)
inlineprotected

Assingment operator

Returns
Reference to this object

Definition at line 2497 of file AliTrackletdNdetaTask.C.

Int_t * AliTrackletdNdetaMCTask::PdgArray ( Int_t size)
staticprotected

Return an array of interesting PDG codes.

Parameters
sizeOn return, the size of the array
Returns
Pointer to static array

Definition at line 3414 of file AliTrackletdNdetaTask.C.

Referenced by SortedPdgArray().

virtual void AliTrackletdNdetaMCTask::Print ( Option_t option) const
inlineprotectedvirtual

Reimplemented from AliTrackletdNdetaTask.

Definition at line 2505 of file AliTrackletdNdetaTask.C.

void AliTrackletdNdetaMCTask::ReweighStack ( Double_t  cent) const
protected

Reweigh the input stack. We do this by assigning weights to each particle according to the primary mother particle of each particle.

Parameters
centEvent centrality

Definition at line 3179 of file AliTrackletdNdetaTask.C.

Referenced by CheckEvent().

Int_t * AliTrackletdNdetaMCTask::SortedPdgArray ( Int_t size)
staticprotected

Return pointer to a sorted array of interesting PDG codes

Parameters
sizeOn return, the size of the array
Returns
Pointer to static, sorted array of PDGs

Definition at line 3470 of file AliTrackletdNdetaTask.C.

Referenced by FindPdg(), and MakePdgAxis().

Double_t AliTrackletdNdetaMCTask::TrackletWeight ( Int_t  trackletNumber,
const AliMultiplicity *  mult 
) const
protectedvirtual

Get weight of a tracklet (for MC)

Parameters
trackletNumberTracklet number
multTracklet container
Returns
The weight

Reimplemented from AliTrackletdNdetaTask.

Definition at line 3154 of file AliTrackletdNdetaTask.C.

void AliTrackletdNdetaMCTask::WorkerInit ( )
protectedvirtual

Initialize histograms. Called on worker

Reimplemented from AliTrackletdNdetaTask.

Definition at line 3050 of file AliTrackletdNdetaTask.C.

Member Data Documentation

TH1* AliTrackletdNdetaMCTask::fMCStatus
protected

Definition at line 2700 of file AliTrackletdNdetaTask.C.

Referenced by CheckEvent(), MasterFinalize(), and WorkerInit().

Bool_t AliTrackletdNdetaMCTask::fReweigh
protected

Definition at line 2701 of file AliTrackletdNdetaTask.C.

Referenced by CheckEvent(), ReweighStack(), and TrackletWeight().


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