AliPhysics  35e5fca (35e5fca)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent Class Reference

Analysis component for reconstructed tracks. More...

#include <AliEMCalTriggerRecTrackAnalysisComponent.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent:

Public Member Functions

 AliEMCalTriggerRecTrackAnalysisComponent ()
 Dummy constructor. More...
 
 AliEMCalTriggerRecTrackAnalysisComponent (const char *name)
 Main constructor. More...
 
virtual ~AliEMCalTriggerRecTrackAnalysisComponent ()
 Destructor. More...
 
virtual void CreateHistos ()
 Creating histograms for the analysis component. More...
 
virtual void Process (const AliEMCalTriggerEventData *const data)
 Run track loop on list of matching tracks. More...
 
void SetSwapEta (Bool_t doSwap=kTRUE)
 
void SetRequestMCtrueTracks (Bool_t doRequest=kTRUE)
 
void SetRequestMatchTriggerPatches (Bool_t doRequest=kTRUE)
 
void SetTrackSelection (AliEmcalTrackSelection *trackSel)
 
- Public Member Functions inherited from EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent
 AliEMCalTriggerTracksAnalysisComponent ()
 
 AliEMCalTriggerTracksAnalysisComponent (const char *name)
 
virtual ~AliEMCalTriggerTracksAnalysisComponent ()
 
THashList * GetHistList () const
 
const
AliEMCalTriggerWeightHandler
GetWeightHandler () const
 
void SetBinning (const AliEMCalTriggerBinningComponent *const binning)
 
void SetKineCuts (const AliEMCalTriggerKineCuts *const cuts)
 
void SetTriggerClassManager (const AliEMCalTriggerAnaClassManager *classmgr)
 
void SetWeightHandler (const AliEMCalTriggerWeightHandler *handler)
 
void SetComponentDebugLevel (int debuglevel)
 

Protected Member Functions

const AliVParticle * IsMCTrueTrack (const AliVTrack *const trk, const AliMCEvent *evnt) const
 Check whether track is a true signal track. More...
 
void FillHistogram (const TString &histname, const AliVTrack *const trk, const AliVParticle *assocMC, const AliVEvent *const recev, Bool_t useMCkine, Double_t weight)
 Fill main track-based histogram. More...
 
void FillCorrelation (const AliVParticle *const genparticle, const AliVParticle *const recparticle, double weight=1.)
 
void MatchTriggerPatches (const AliVTrack *rectrack, const TClonesArray *inputpatches, TList &outputpatches) const
 
Bool_t HasMatchedPatchOfType (TString triggertype, const TList &patches) const
 
- Protected Member Functions inherited from EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent
TAxisDefineAxis (const char *name, const TBinning &binning)
 
void GetMachingTriggerNames (std::vector< std::string > &triggernames) const
 
void GetAllTriggerNamesAndTitles (std::map< std::string, std::string > &triggers) const
 
void PrintTriggerNames (const std::vector< std::string > &, const std::string &componentName) const
 

Protected Attributes

AliEmcalTrackSelectionfTrackSelection
 Track selection cuts used in the analysis. More...
 
Bool_t fSwapEta
 Swap eta sign. More...
 
Bool_t fRequestMCtrue
 Request MC true track. More...
 
Bool_t fDoMatchPatches
 Request matching with trigger patches. More...
 
- Protected Attributes inherited from EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent
THistManagerfHistos
 Histogram container of the analysis component. More...
 
const
AliEMCalTriggerAnaClassManager
fTriggerClassManager
 Global trigger class manager. More...
 
const
AliEMCalTriggerBinningComponent
fBinning
 Global binning handler. More...
 
const AliEMCalTriggerKineCuts * fKineCuts
 Kinematical cuts for tracks and particle selection. More...
 
const
AliEMCalTriggerWeightHandler
fWeightHandler
 Event weight handler. More...
 
Int_t fComponentDebugLevel
 Debug level for the given analysis component. More...
 

Detailed Description

Analysis component for reconstructed tracks.

Track analysis component: Loops over tracks from the EMCal track container and counts the tracks in histograms. Separate histograms are filled for tracks which have an EMCAL cluster assigned, and the Monte-Carlo information in case the analysis is performed on Monte-Carlo events. In this case also the correlation matrix between reconstructed \( p_{t} \) and generated \( p_{t} \) is filled.

Definition at line 36 of file AliEMCalTriggerRecTrackAnalysisComponent.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::AliEMCalTriggerRecTrackAnalysisComponent ( )

Dummy constructor.

Dummy constructor. For ROOT I/O. Not intended to be used by the users.

Definition at line 56 of file AliEMCalTriggerRecTrackAnalysisComponent.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::AliEMCalTriggerRecTrackAnalysisComponent ( const char *  name)

Main constructor.

Main constructor, initialises component with a component name. To be used by the users to create the component object.

Definition at line 71 of file AliEMCalTriggerRecTrackAnalysisComponent.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::~AliEMCalTriggerRecTrackAnalysisComponent ( )
virtual

Destructor.

Destructor, taking care of the track selection.

Definition at line 85 of file AliEMCalTriggerRecTrackAnalysisComponent.cxx.

Member Function Documentation

void EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::CreateHistos ( )
virtual

Creating histograms for the analysis component.

Create histograms of the track analysis component and add it to the list of histograms. For each trigger class we have

  • tracks with esd information
  • tracks with MC information
  • tracks with clusters and esd information
  • tracks with clusters and MC information In addition, a correlation matrix (THnSparse) for the correlation beween generated and reconstructed \( p_{t} \) is created.

This function is the implementation of the abstract method CreateHistos declared in AliEMCalTriggerTracksAnalysisComponent.

Reimplemented from EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent.

Definition at line 104 of file AliEMCalTriggerRecTrackAnalysisComponent.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::FillCorrelation ( const AliVParticle *const  genparticle,
const AliVParticle *const  recparticle,
double  weight = 1. 
)
protected

Referenced by Process().

void EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::FillHistogram ( const TString histname,
const AliVTrack *const  trk,
const AliVParticle *  assocMC,
const AliVEvent *const  recev,
Bool_t  useMCkine,
Double_t  weight 
)
protected

Fill main track-based histogram.

Fill main track-based histogram defined by its name with

  1. \( p_{t} \)
  2. \( \eta \)
  3. \( \phi \)
  4. z-position of the primary vertex
  5. status flag signalizing that the event was also a minimum bias event If useMCkine is set to true, the kinematic quantities will be obtained from the associated MC particle.
Parameters
histnameName of the THnSparse to fill
trkReconstructed track
assocMCThe associated MC track
recevReconstructed event
useMCkineIf true we fill histogram with MC truth information
weightEvent weight (optional)

Definition at line 275 of file AliEMCalTriggerRecTrackAnalysisComponent.cxx.

Referenced by Process().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::HasMatchedPatchOfType ( TString  triggertype,
const TList patches 
) const
protected

Referenced by Process().

const AliVParticle * EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::IsMCTrueTrack ( const AliVTrack *const  trk,
const AliMCEvent *  evnt 
) const
protected

Check whether track is a true signal track.

Check according to the associated MC information whether the track is a MC true track, and whether it is physical primary

Parameters
trktrack to check
evntMC event information necessary for the check
Returns
the associated MC particle (NULL if not MC true)

Definition at line 242 of file AliEMCalTriggerRecTrackAnalysisComponent.cxx.

Referenced by Process().

void EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::MatchTriggerPatches ( const AliVTrack *  rectrack,
const TClonesArray *  inputpatches,
TList outputpatches 
) const
protected

Referenced by Process().

void EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::Process ( const AliEMCalTriggerEventData *const  data)
virtual

Run track loop on list of matching tracks.

Analyses all particles at reconstruction level in an event, and fill a track based histogram for all triggers which selected the event. Following steps are performed:

  1. Get a list of all triggers which selected the event
  2. Iterate over pre-selected tracks
    • Check kinematics and track selection cuts
    • Check whether the track is a true signal track (if MC information is available). If yes, fill correlation matrix
    • Fill histogram at track level (and if an associated particle is available also at MC-truth level)
    • Find cluster matched to track. If cluster is available, fill histograms for tracks with clusters
    • Find trigger patches mathced to track. If trigger patch is available, fill histogram for tracks with patches This function is the implementation of the abstract method Process declared in AliEMCalTriggerTracksAnalysisComponent.
Parameters
datathe event data

Implements EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent.

Definition at line 172 of file AliEMCalTriggerRecTrackAnalysisComponent.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::SetRequestMatchTriggerPatches ( Bool_t  doRequest = kTRUE)
inline

Defines whether track patch matching is performed and correponding histograms are created and filled.

Parameters
doRequest

Definition at line 66 of file AliEMCalTriggerRecTrackAnalysisComponent.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::SetRequestMCtrueTracks ( Bool_t  doRequest = kTRUE)
inline

Defines whether tracks are required to be MC-true tracks, defined as track with associated MC particle which fulfills the physical primary condition. Only relevant for analysis of Monte-Carlo data sets

Parameters
doRequestIf true, only MC-true tracks are selected

Definition at line 59 of file AliEMCalTriggerRecTrackAnalysisComponent.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::SetSwapEta ( Bool_t  doSwap = kTRUE)
inline

Defines swapping of the \( \eta \) sign in the analysis.

Parameters
doSwapIf true, the \( \eta \) sign will be swapped

Definition at line 50 of file AliEMCalTriggerRecTrackAnalysisComponent.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::SetTrackSelection ( AliEmcalTrackSelection trackSel)
inline

Set the track selection applied in the analysis. Track cuts are always of type AliEMCalPtTaskVTrackSelection. Transparent to ESD and AOD analysis.

Parameters
trackSelThe (virtual) track selection applied in the analysis

Definition at line 74 of file AliEMCalTriggerRecTrackAnalysisComponent.h.

Member Data Documentation

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::fDoMatchPatches
protected

Request matching with trigger patches.

Definition at line 86 of file AliEMCalTriggerRecTrackAnalysisComponent.h.

Referenced by CreateHistos(), Process(), and SetRequestMatchTriggerPatches().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::fRequestMCtrue
protected

Request MC true track.

Definition at line 85 of file AliEMCalTriggerRecTrackAnalysisComponent.h.

Referenced by Process(), and SetRequestMCtrueTracks().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::fSwapEta
protected

Swap eta sign.

Definition at line 84 of file AliEMCalTriggerRecTrackAnalysisComponent.h.

Referenced by FillHistogram(), and SetSwapEta().

AliEmcalTrackSelection* EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::fTrackSelection
protected

Track selection cuts used in the analysis.

Definition at line 83 of file AliEMCalTriggerRecTrackAnalysisComponent.h.

Referenced by Process(), SetTrackSelection(), and ~AliEMCalTriggerRecTrackAnalysisComponent().


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