AliPhysics  58ae0ed (58ae0ed)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HighPtTracks::AliHighPtReconstructionEfficiency Class Reference

Analysis task producing filtered trees with reconstructed jets at generator level. More...

#include <AliHighPtReconstructionEfficiency.h>

Inheritance diagram for HighPtTracks::AliHighPtReconstructionEfficiency:

Public Types

enum  CutType_t { kRJStandardCuts = 0, kRJHybridCuts = 1 }
 Declaration of cut types. More...
 

Public Member Functions

 AliHighPtReconstructionEfficiency ()
 
 AliHighPtReconstructionEfficiency (const char *name)
 
virtual ~AliHighPtReconstructionEfficiency ()
 
virtual void UserCreateOutputObjects ()
 
virtual bool UserNotify ()
 
virtual void UserExec (Option_t *)
 
void Terminate (Option_t *)
 
void SetMaxEtaParticles (double maxeta)
 
void SetMaxEtaJets (double maxeta)
 
void SetMinPtTracks (double minpt)
 
void SetMaxDR (double maxdr)
 Set Maximum allowed distance for particles associated with a jet to the main jet axis. More...
 
void SetStandardTrackCuts (AliESDtrackCuts *const cuts)
 
void SetHybridTrackCuts (AliESDtrackCuts *const cuts)
 
void SetTaskDebugMode ()
 

Protected Member Functions

void SetTrackCuts (AliESDtrackCuts *const cuts, CutType_t cuttype)
 
bool IsSelected (const AliVTrack *const track, CutType_t type) const
 
bool IsTrueSelected (const AliVParticle *const track) const
 
void SelectParticlesForJetfinding (TList &particles) const
 
void CreateRectrackLookup ()
 
std::vector
< AliReconstructedParticlePair
SelectParticles () const
 
double GetDR (const fastjet::PseudoJet &recjet, const AliVParticle *const inputtrack) const
 
const AliParticleListFindReconstructedParticleFast (int label) const
 Find reconstructed particles for a given label. More...
 
void ProcessJet (AliReducedJetInfo *const jet, const std::vector< AliReconstructedParticlePair > &particles) const
 
void ConvertConstituents (AliReducedJetInfo *const recjet, const fastjet::PseudoJet &inputjet)
 
bool IsPhysicalPrimary (const AliVParticle *const part) const
 Checks if the particle is a physical primary particle. More...
 
bool PythiaInfoFromFile (const char *currFile, double &fXsec, double &fTrials, int &pthard) const
 
unsigned short GetNumberOfTPCTrackReferences (AliVParticle *const trk) const
 

Private Member Functions

 AliHighPtReconstructionEfficiency (const AliHighPtReconstructionEfficiency &)
 
AliHighPtReconstructionEfficiencyoperator= (const AliHighPtReconstructionEfficiency &)
 

Private Attributes

AliESDtrackCuts * fTrackCuts [2]
 
AliParticleMapfParticleMap
 Map of reconstructed particles associate to a Monte-Carlo label. More...
 
TTreefJetTree
 Output tree. More...
 
AliReducedJetEventfJetEvent
 Output jet event. More...
 
double fMaxEtaJets
 \( \eta \) cut for jets More...
 
double fMaxEtaParticles
 \( \eta \) cut for particles More...
 
double fMinPtParticles
 minimium \( p_{t} \) cut for particles More...
 
double fMaxDR
 maximum distance of a particle to the main jet axis More...
 
double fCrossSection
 Cross section from PYTHIA. More...
 
double fNtrials
 Number of trials from PYTHIA. More...
 
int fPtHardBin
 \( p_{t} \)-hard bin of the event More...
 
bool fTaskDebugMode
 Switch for debug mode. More...
 

Detailed Description

Analysis task producing filtered trees with reconstructed jets at generator level.

Analysis task creating reduced jet events. Each event contains reduced jets, which associate constituents and reconstructed track. Constituents are particles associated by the jet finder while tracks are all charged particles in a cone within a maximum radius (can be larger than R set in the jet finder).

Definition at line 55 of file AliHighPtReconstructionEfficiency.h.

Member Enumeration Documentation

Declaration of cut types.

Enumerator
kRJStandardCuts 

Standard track cuts.

kRJHybridCuts 

Hybrid track cuts.

Definition at line 61 of file AliHighPtReconstructionEfficiency.h.

Constructor & Destructor Documentation

HighPtTracks::AliHighPtReconstructionEfficiency::AliHighPtReconstructionEfficiency ( )

Dummy (I/O) constructor. Not to be used

Definition at line 62 of file AliHighPtReconstructionEfficiency.cxx.

HighPtTracks::AliHighPtReconstructionEfficiency::AliHighPtReconstructionEfficiency ( const char *  name)

Main constructor, initialises relevant settings for the task. Setting default values for kinematic track selection

Parameters
nameName of the task

Definition at line 85 of file AliHighPtReconstructionEfficiency.cxx.

HighPtTracks::AliHighPtReconstructionEfficiency::~AliHighPtReconstructionEfficiency ( )
virtual

Destructor, cleaning up memory allocated by the task.

Definition at line 106 of file AliHighPtReconstructionEfficiency.cxx.

HighPtTracks::AliHighPtReconstructionEfficiency::AliHighPtReconstructionEfficiency ( const AliHighPtReconstructionEfficiency )
private

Member Function Documentation

void HighPtTracks::AliHighPtReconstructionEfficiency::ConvertConstituents ( AliReducedJetInfo *const  recjet,
const fastjet::PseudoJet &  inputjet 
)
protected

Convert jet constituents at jet finder level to the reduced format and adds it to the reduced reconstructed jet.

Parameters
recjetReconstructed jet the consituent is associated to
inputjetA jet constituent to be added to the reconstructed jet

Definition at line 404 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by UserExec().

void HighPtTracks::AliHighPtReconstructionEfficiency::CreateRectrackLookup ( )
protected

Creates a lookup table where particles are associated to MC labels and stores it in the event.

Definition at line 356 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by UserExec().

const AliParticleList * HighPtTracks::AliHighPtReconstructionEfficiency::FindReconstructedParticleFast ( int  label) const
protected

Find reconstructed particles for a given label.

Find all reconstructed particles associated with a reconstruced track. Uses a lookup table which is created at the start of the event.

Parameters
labelLabel to check
Returns
List of reconstructed particles (NULL if label is not found)

Definition at line 378 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by SelectParticles().

double HighPtTracks::AliHighPtReconstructionEfficiency::GetDR ( const fastjet::PseudoJet &  recjet,
const AliVParticle *const  inputtrack 
) const
protected

Calculates the distance between a particle and the main jet axis.

Parameters
recjetJet where the particle is associated to
inputtrackParicle to check
Returns
Distance between jet main axis and particle

Definition at line 308 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by ProcessJet().

unsigned short HighPtTracks::AliHighPtReconstructionEfficiency::GetNumberOfTPCTrackReferences ( AliVParticle *const  trk) const
protected

Get the number of track references for a MC-true track

Parameters
trkthe MC particle to check
Returns
The number of track references

Definition at line 498 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by ProcessJet().

bool HighPtTracks::AliHighPtReconstructionEfficiency::IsPhysicalPrimary ( const AliVParticle *const  part) const
protected

Checks if the particle is a physical primary particle.

Function checks whether particle is a physical primary particle. Handles ESD and AOD MC particles.

Parameters
partParticle to check.
Returns
True if the particle is a physical primary particle, false otherwise

Definition at line 390 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by SelectParticles(), and SelectParticlesForJetfinding().

bool HighPtTracks::AliHighPtReconstructionEfficiency::IsSelected ( const AliVTrack *const  track,
CutType_t  cuttype 
) const
protected

Checks if particle is accepted by a give cut type. Currently implemented cut types are the \( R_{AA} \) standard cuts and the hybrid track cuts.

Parameters
track
cuttype
Returns
True if particle survived the cut, false otherwise

Definition at line 215 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by ProcessJet().

bool HighPtTracks::AliHighPtReconstructionEfficiency::IsTrueSelected ( const AliVParticle *const  track) const
protected

Selects particle as MC-true particle. At this level, the particle \( p_{t} \) and \( \eta \) are checked. Only charged particles are accepted.

Parameters
trackParticle to be checked
Returns
True if particle is accepted as true particle according to the truth defintion

Definition at line 237 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by SelectParticles().

AliHighPtReconstructionEfficiency& HighPtTracks::AliHighPtReconstructionEfficiency::operator= ( const AliHighPtReconstructionEfficiency )
private
void HighPtTracks::AliHighPtReconstructionEfficiency::ProcessJet ( AliReducedJetInfo *const  recjet,
const std::vector< AliReconstructedParticlePair > &  particles 
) const
protected

Fill reduced jet information with associated particles at generator and reconstruction level. Only particles within a maximum distance to the jet are selected to be added to the jet structure. Also all particles reconstructed with a minimum requirement (TPC refit and ITS refit) are added to a particle at this step.

Parameters
recjetJet to be filled
particlesList of particle pairs containing particle at generator level and associated reconstruced tracks

Definition at line 321 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by UserExec().

bool HighPtTracks::AliHighPtReconstructionEfficiency::PythiaInfoFromFile ( const char *  currFile,
double &  fXsec,
double &  fTrials,
int &  pthard 
) const
protected

Extract cross section and number of trials from a root file created at generation level and fills it to the fieds added in the parameter list. Function is called once a new file is loaded via the function UserNotify. From AliAnalysisTaskEmcal.

Parameters
currFileFile with PYTHIA hard informatino
fXsecOutput field for cross section
fTrialsOutput field for number of trials
pthardOutput field for generated \( p_{t} \) of the hard interaction
Returns
Success status (false in case of any error)

Definition at line 424 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by UserNotify().

std::vector< AliReconstructedParticlePair > HighPtTracks::AliHighPtReconstructionEfficiency::SelectParticles ( ) const
protected

This function associates reconstructed particles with Monte-Carlo true particles. For this, a lookup tables which maps all reconstructed particles to a label is used internally. The lookup table is created when the event starts and belongs to the event. Only tracks which are physical primary signal tracks and in the kinematic acceptance are selected. The result is a vector of particle pairs, which store a pointer to the Monte-Carlo particle and a list of reconstructed tracks associated.

Returns
Vector of reconstructed particle sets

Definition at line 273 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by UserExec().

void HighPtTracks::AliHighPtReconstructionEfficiency::SelectParticlesForJetfinding ( TList particles) const
protected

Select particles at generation level which are the input for the jet finder. Particles are requested to be within the kinematic acceptance and physical primary. Both charged and neutral particles are accepted for jet finding.

Parameters
particlesWhich are used as input for the jet finder, filled by this function.

Definition at line 251 of file AliHighPtReconstructionEfficiency.cxx.

Referenced by UserExec().

void HighPtTracks::AliHighPtReconstructionEfficiency::SetHybridTrackCuts ( AliESDtrackCuts *const  cuts)
inline

Set hybrid track cuts

Parameters
cutsHybrid track cuts

Definition at line 114 of file AliHighPtReconstructionEfficiency.h.

void HighPtTracks::AliHighPtReconstructionEfficiency::SetMaxDR ( double  maxdr)
inline

Set Maximum allowed distance for particles associated with a jet to the main jet axis.

Parameters
maxdrMaximum allowed distance

Definition at line 100 of file AliHighPtReconstructionEfficiency.h.

void HighPtTracks::AliHighPtReconstructionEfficiency::SetMaxEtaJets ( double  maxeta)
inline

Set maximum \( \eta \) for jets

Parameters
maxetaThe maximum allowed \( \eta \)

Definition at line 86 of file AliHighPtReconstructionEfficiency.h.

void HighPtTracks::AliHighPtReconstructionEfficiency::SetMaxEtaParticles ( double  maxeta)
inline

Set maximum \( \eta \) for particles and reconstructed tracks

Parameters
maxetaThe maximum allowed \( \eta \)

Definition at line 79 of file AliHighPtReconstructionEfficiency.h.

void HighPtTracks::AliHighPtReconstructionEfficiency::SetMinPtTracks ( double  minpt)
inline

Set minimum allowed \( p_{t} \) for particles and tracks

Parameters
minpt

Definition at line 93 of file AliHighPtReconstructionEfficiency.h.

void HighPtTracks::AliHighPtReconstructionEfficiency::SetStandardTrackCuts ( AliESDtrackCuts *const  cuts)
inline

Set standard track cuts

Parameters
cutsStandard track cuts

Definition at line 107 of file AliHighPtReconstructionEfficiency.h.

void HighPtTracks::AliHighPtReconstructionEfficiency::SetTaskDebugMode ( )
inline

Set task into debug mode

Definition at line 119 of file AliHighPtReconstructionEfficiency.h.

void HighPtTracks::AliHighPtReconstructionEfficiency::SetTrackCuts ( AliESDtrackCuts *const  cuts,
CutType_t  cuttype 
)
inlineprotected
void HighPtTracks::AliHighPtReconstructionEfficiency::Terminate ( Option_t )
inline

Definition at line 72 of file AliHighPtReconstructionEfficiency.h.

void HighPtTracks::AliHighPtReconstructionEfficiency::UserCreateOutputObjects ( )
virtual

Preparing output objects and track selection: create a new TTree and reduced event object, and set the branch address to the new reduced event.

Definition at line 116 of file AliHighPtReconstructionEfficiency.cxx.

void HighPtTracks::AliHighPtReconstructionEfficiency::UserExec ( Option_t )
virtual

Runs event loop and creates reconstructed event:

  1. Filter particles used for the jet finding
  2. Filter MC-true particles and create lookup of particles with matching reconstructed particle, based on the MC label
  3. Find jets
  4. Create Output event structure with output jets, and match the pre-filtered particles to the jet, select only those with a distance smaller than the distance cut
  5. Write out the event into a TTree
Parameters
optionOpitional settings, not used here

Definition at line 161 of file AliHighPtReconstructionEfficiency.cxx.

bool HighPtTracks::AliHighPtReconstructionEfficiency::UserNotify ( )
virtual

Function informing the user when a new file starts. Used to

Returns
True if the function is executed successfully, false in case of errors

Definition at line 131 of file AliHighPtReconstructionEfficiency.cxx.

Member Data Documentation

double HighPtTracks::AliHighPtReconstructionEfficiency::fCrossSection
private

Cross section from PYTHIA.

Definition at line 153 of file AliHighPtReconstructionEfficiency.h.

Referenced by UserExec(), and UserNotify().

AliReducedJetEvent* HighPtTracks::AliHighPtReconstructionEfficiency::fJetEvent
private

Output jet event.

Definition at line 146 of file AliHighPtReconstructionEfficiency.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TTree* HighPtTracks::AliHighPtReconstructionEfficiency::fJetTree
private

Output tree.

Definition at line 145 of file AliHighPtReconstructionEfficiency.h.

Referenced by UserCreateOutputObjects(), and UserExec().

double HighPtTracks::AliHighPtReconstructionEfficiency::fMaxDR
private

maximum distance of a particle to the main jet axis

Definition at line 151 of file AliHighPtReconstructionEfficiency.h.

Referenced by ProcessJet(), and SetMaxDR().

double HighPtTracks::AliHighPtReconstructionEfficiency::fMaxEtaJets
private

\( \eta \) cut for jets

Definition at line 148 of file AliHighPtReconstructionEfficiency.h.

Referenced by SetMaxEtaJets(), and UserExec().

double HighPtTracks::AliHighPtReconstructionEfficiency::fMaxEtaParticles
private

\( \eta \) cut for particles

Definition at line 149 of file AliHighPtReconstructionEfficiency.h.

Referenced by IsTrueSelected(), SelectParticlesForJetfinding(), and SetMaxEtaParticles().

double HighPtTracks::AliHighPtReconstructionEfficiency::fMinPtParticles
private

minimium \( p_{t} \) cut for particles

Definition at line 150 of file AliHighPtReconstructionEfficiency.h.

Referenced by IsTrueSelected(), SelectParticlesForJetfinding(), and SetMinPtTracks().

double HighPtTracks::AliHighPtReconstructionEfficiency::fNtrials
private

Number of trials from PYTHIA.

Definition at line 154 of file AliHighPtReconstructionEfficiency.h.

Referenced by UserExec(), and UserNotify().

AliParticleMap* HighPtTracks::AliHighPtReconstructionEfficiency::fParticleMap
private

Map of reconstructed particles associate to a Monte-Carlo label.

Definition at line 142 of file AliHighPtReconstructionEfficiency.h.

Referenced by CreateRectrackLookup(), FindReconstructedParticleFast(), UserExec(), and ~AliHighPtReconstructionEfficiency().

int HighPtTracks::AliHighPtReconstructionEfficiency::fPtHardBin
private

\( p_{t} \)-hard bin of the event

Definition at line 155 of file AliHighPtReconstructionEfficiency.h.

Referenced by UserExec(), and UserNotify().

bool HighPtTracks::AliHighPtReconstructionEfficiency::fTaskDebugMode
private

Switch for debug mode.

Definition at line 157 of file AliHighPtReconstructionEfficiency.h.

Referenced by SelectParticles(), SetTaskDebugMode(), and UserExec().

AliESDtrackCuts* HighPtTracks::AliHighPtReconstructionEfficiency::fTrackCuts[2]
private

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