![]() |
AliPhysics
58ae0ed (58ae0ed)
|
Analysis task producing filtered trees with reconstructed jets at generator level. More...
#include <AliHighPtReconstructionEfficiency.h>
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 AliParticleList * | FindReconstructedParticleFast (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 &) | |
AliHighPtReconstructionEfficiency & | operator= (const AliHighPtReconstructionEfficiency &) |
Private Attributes | |
AliESDtrackCuts * | fTrackCuts [2] |
AliParticleMap * | fParticleMap |
Map of reconstructed particles associate to a Monte-Carlo label. More... | |
TTree * | fJetTree |
Output tree. More... | |
AliReducedJetEvent * | fJetEvent |
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... | |
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.
Declaration of cut types.
Enumerator | |
---|---|
kRJStandardCuts |
Standard track cuts. |
kRJHybridCuts |
Hybrid track cuts. |
Definition at line 61 of file AliHighPtReconstructionEfficiency.h.
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
name | Name of the task |
Definition at line 85 of file AliHighPtReconstructionEfficiency.cxx.
|
virtual |
Destructor, cleaning up memory allocated by the task.
Definition at line 106 of file AliHighPtReconstructionEfficiency.cxx.
|
private |
|
protected |
Convert jet constituents at jet finder level to the reduced format and adds it to the reduced reconstructed jet.
recjet | Reconstructed jet the consituent is associated to |
inputjet | A jet constituent to be added to the reconstructed jet |
Definition at line 404 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by UserExec().
|
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().
|
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.
label | Label to check |
Definition at line 378 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by SelectParticles().
|
protected |
Calculates the distance between a particle and the main jet axis.
recjet | Jet where the particle is associated to |
inputtrack | Paricle to check |
Definition at line 308 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by ProcessJet().
|
protected |
Get the number of track references for a MC-true track
trk | the MC particle to check |
Definition at line 498 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by ProcessJet().
|
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.
part | Particle to check. |
Definition at line 390 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by SelectParticles(), and SelectParticlesForJetfinding().
|
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.
track | |
cuttype |
Definition at line 215 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by ProcessJet().
|
protected |
Selects particle as MC-true particle. At this level, the particle \( p_{t} \) and \( \eta \) are checked. Only charged particles are accepted.
track | Particle to be checked |
Definition at line 237 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by SelectParticles().
|
private |
|
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.
recjet | Jet to be filled |
particles | List of particle pairs containing particle at generator level and associated reconstruced tracks |
Definition at line 321 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by UserExec().
|
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.
currFile | File with PYTHIA hard informatino |
fXsec | Output field for cross section |
fTrials | Output field for number of trials |
pthard | Output field for generated \( p_{t} \) of the hard interaction |
Definition at line 424 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by UserNotify().
|
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.
Definition at line 273 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by UserExec().
|
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.
particles | Which are used as input for the jet finder, filled by this function. |
Definition at line 251 of file AliHighPtReconstructionEfficiency.cxx.
Referenced by UserExec().
|
inline |
Set hybrid track cuts
cuts | Hybrid track cuts |
Definition at line 114 of file AliHighPtReconstructionEfficiency.h.
|
inline |
Set Maximum allowed distance for particles associated with a jet to the main jet axis.
maxdr | Maximum allowed distance |
Definition at line 100 of file AliHighPtReconstructionEfficiency.h.
|
inline |
Set maximum \( \eta \) for jets
maxeta | The maximum allowed \( \eta \) |
Definition at line 86 of file AliHighPtReconstructionEfficiency.h.
|
inline |
Set maximum \( \eta \) for particles and reconstructed tracks
maxeta | The maximum allowed \( \eta \) |
Definition at line 79 of file AliHighPtReconstructionEfficiency.h.
|
inline |
Set minimum allowed \( p_{t} \) for particles and tracks
minpt |
Definition at line 93 of file AliHighPtReconstructionEfficiency.h.
|
inline |
Set standard track cuts
cuts | Standard track cuts |
Definition at line 107 of file AliHighPtReconstructionEfficiency.h.
|
inline |
Set task into debug mode
Definition at line 119 of file AliHighPtReconstructionEfficiency.h.
|
inlineprotected |
Definition at line 122 of file AliHighPtReconstructionEfficiency.h.
Referenced by SetHybridTrackCuts(), and SetStandardTrackCuts().
|
inline |
Definition at line 72 of file AliHighPtReconstructionEfficiency.h.
|
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.
|
virtual |
Runs event loop and creates reconstructed event:
option | Opitional settings, not used here |
Definition at line 161 of file AliHighPtReconstructionEfficiency.cxx.
|
virtual |
Function informing the user when a new file starts. Used to
Definition at line 131 of file AliHighPtReconstructionEfficiency.cxx.
|
private |
Cross section from PYTHIA.
Definition at line 153 of file AliHighPtReconstructionEfficiency.h.
Referenced by UserExec(), and UserNotify().
|
private |
Output jet event.
Definition at line 146 of file AliHighPtReconstructionEfficiency.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
Output tree.
Definition at line 145 of file AliHighPtReconstructionEfficiency.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
maximum distance of a particle to the main jet axis
Definition at line 151 of file AliHighPtReconstructionEfficiency.h.
Referenced by ProcessJet(), and SetMaxDR().
|
private |
\( \eta \) cut for jets
Definition at line 148 of file AliHighPtReconstructionEfficiency.h.
Referenced by SetMaxEtaJets(), and UserExec().
|
private |
\( \eta \) cut for particles
Definition at line 149 of file AliHighPtReconstructionEfficiency.h.
Referenced by IsTrueSelected(), SelectParticlesForJetfinding(), and SetMaxEtaParticles().
|
private |
minimium \( p_{t} \) cut for particles
Definition at line 150 of file AliHighPtReconstructionEfficiency.h.
Referenced by IsTrueSelected(), SelectParticlesForJetfinding(), and SetMinPtTracks().
|
private |
Number of trials from PYTHIA.
Definition at line 154 of file AliHighPtReconstructionEfficiency.h.
Referenced by UserExec(), and UserNotify().
|
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().
|
private |
\( p_{t} \)-hard bin of the event
Definition at line 155 of file AliHighPtReconstructionEfficiency.h.
Referenced by UserExec(), and UserNotify().
|
private |
Switch for debug mode.
Definition at line 157 of file AliHighPtReconstructionEfficiency.h.
Referenced by SelectParticles(), SetTaskDebugMode(), and UserExec().
|
private |
List of track cuts
Definition at line 140 of file AliHighPtReconstructionEfficiency.h.
Referenced by AliHighPtReconstructionEfficiency(), IsSelected(), SetTrackCuts(), and ~AliHighPtReconstructionEfficiency().