AliPhysics  0e0bd91 (0e0bd91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef Class Reference

Unit test class for charged particle distributions. More...

#include <AliAnalysisTaskChargedParticlesRef.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef:

Public Types

enum  BeamDirection_t { kpPb = 1, kPbp = -1 }
 
enum  EmcalTriggerClass {
  kCPREL0 = 0, kCPREG1, kCPREG2, kCPREJ1,
  kCPREJ2, kCPRntrig
}
 

Public Member Functions

 AliAnalysisTaskChargedParticlesRef ()
 
 AliAnalysisTaskChargedParticlesRef (const char *name)
 
virtual ~AliAnalysisTaskChargedParticlesRef ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *)
 
void Terminate (Option_t *)
 
void SetRapidityShift (Double_t yshift)
 
void SetBeamDirection (BeamDirection_t beamdir)
 
void UseTriggerPatches (Bool_t doUse)
 
void SetEtaLabCut (double etamin, double etamax)
 
void SetEtaCMSCut (double etamin, double etamax)
 
void SetOfflineEnergyThreshold (EmcalTriggerClass trgcls, double threshold)
 

Protected Member Functions

void CreateOldPtBinning (TArrayD &binning) const
 
void CreateNewPtBinning (TArrayD &binning) const
 
void FillEventCounterHists (const char *triggerclass, double vtxz, bool isSelected)
 
void FillTrackHistos (const char *eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD)
 
TString GetFiredTriggerClassesFromPatches (const TClonesArray *triggerpatches) const
 
Bool_t IsOfflineSelected (EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
 
Bool_t TrackSelectionESD (AliESDtrack *track)
 
Bool_t TrackSelectionAOD (AliAODTrack *track)
 

Protected Attributes

AliESDtrackCuts * fTrackCuts
 Standard track selection. More...
 
AliAnalysisUtils * fAnalysisUtil
 Event selection. More...
 
AliEMCalHistoContainerfHistos
 Histogram manager. More...
 
AliEMCALGeometry * fGeometry
 EMCAL geometry methods. More...
 
Bool_t fTriggerStringFromPatches
 Do rebuild the trigger string from trigger patches. More...
 
Double_t fYshift
 Rapidity shift. More...
 
Double_t fEtaSign
 Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1. More...
 
Double_t fEtaLabCut [2]
 Cut applied in Eta Lab frame. More...
 
Double_t fEtaCmsCut [2]
 Cut applied in Eta centre-of-mass frame. More...
 
Double_t fOfflineEnergyThreshold [kCPRntrig]
 Threhold applied on offline patches. More...
 

Private Member Functions

 AliAnalysisTaskChargedParticlesRef (const AliAnalysisTaskChargedParticlesRef &)
 
AliAnalysisTaskChargedParticlesRefoperator= (const AliAnalysisTaskChargedParticlesRef &)
 

Detailed Description

Unit test class for charged particle distributions.

As generator of reference distributions this task is written as "must work", meaning as simple as possible and as independent as possible. Using only well-tested components. Objects responsible for further problems, i.e. the usage of THnSparse due to memory problems in several places, are forbidden.

Definition at line 29 of file AliAnalysisTaskChargedParticlesRef.h.

Member Enumeration Documentation

Enumerator
kCPREL0 
kCPREG1 
kCPREG2 
kCPREJ1 
kCPREJ2 
kCPRntrig 

Definition at line 35 of file AliAnalysisTaskChargedParticlesRef.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef ( )

Dummy constructor

Definition at line 46 of file AliAnalysisTaskChargedParticlesRef.cxx.

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

Main constructor

Parameters
nameName of the task

Definition at line 70 of file AliAnalysisTaskChargedParticlesRef.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::~AliAnalysisTaskChargedParticlesRef ( )
virtual

Destuctor

Definition at line 94 of file AliAnalysisTaskChargedParticlesRef.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef ( const AliAnalysisTaskChargedParticlesRef )
private

Member Function Documentation

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::CreateNewPtBinning ( TArrayD &  binning) const
protected

Create new Pt binning

Parameters
binning

Definition at line 557 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserCreateOutputObjects().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::CreateOldPtBinning ( TArrayD &  binning) const
protected

Create old pt binning

Parameters
binning

Definition at line 529 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserCreateOutputObjects().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillEventCounterHists ( const char *  triggerclass,
double  vtxz,
bool  isSelected 
)
protected

Fill event counter histogram for a given trigger class

Parameters
triggerclassTrigger class firing the trigger
vtxzz-position of the primary vertex
isSelectedCheck whether track is selected

Definition at line 434 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillTrackHistos ( const char *  eventclass,
Double_t  pt,
Double_t  etalab,
Double_t  etacent,
Double_t  phi,
Bool_t  etacut,
Bool_t  inEmcal,
Bool_t  hasTRD 
)
protected

Fill track histograms

Parameters
eventclassTrigger class fired
pttrack \( p_{t} \)
etalabTrack \( \eta \) in lab frame
etacentTrack \( \eta \) in cms frame
phiTrack \( \eta \) in lab frame
etacutTrack accepted by \( \eta \) cut
inEmcalTrack in EMCAL \( \phi \) acceptance

Definition at line 459 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

TString EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::GetFiredTriggerClassesFromPatches ( const TClonesArray *  triggerpatches) const
protected

Apply trigger selection using offline patches and trigger thresholds based on offline ADC Amplitude

Parameters
triggerpatchesTrigger patches found by the trigger maker
Returns
String with EMCAL trigger decision

Definition at line 636 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::IsOfflineSelected ( EmcalTriggerClass  trgcls,
const TClonesArray *const  triggerpatches 
) const
protected

Apply additional cut requiring at least one offline patch above a given energy (not fake ADC!) Attention: This task groups into single shower triggers (L0, EG1, EG2) and jet triggers (EJ1 and EJ2). Per convention the low threshold patch is selected. No energy cut should be applied in the trigger maker

Parameters
trgclsTrigger class for which to apply additional offline patch selection
triggerpatchesArray of trigger patches
Returns
True if at least on patch above threshold is found or no cut is applied

Definition at line 613 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

AliAnalysisTaskChargedParticlesRef& EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::operator= ( const AliAnalysisTaskChargedParticlesRef )
private
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetBeamDirection ( BeamDirection_t  beamdir)
inline

Definition at line 52 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetEtaCMSCut ( double  etamin,
double  etamax 
)
inline

Definition at line 56 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetEtaLabCut ( double  etamin,
double  etamax 
)
inline

Definition at line 55 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetOfflineEnergyThreshold ( EmcalTriggerClass  trgcls,
double  threshold 
)
inline

Definition at line 58 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetRapidityShift ( Double_t  yshift)
inline

Definition at line 51 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::Terminate ( Option_t *  )
inline

Definition at line 49 of file AliAnalysisTaskChargedParticlesRef.h.

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::TrackSelectionAOD ( AliAODTrack *  track)
protected

Run track selection for AOD tracks

Parameters
trackThe track to check
Returns
True if the track is selected, false otherwise

Definition at line 599 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::TrackSelectionESD ( AliESDtrack *  track)
protected

Run track selection for ESD tracks

Parameters
trackThe track to check
Returns
True if the track is selected, false otherwise

Definition at line 590 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects ( )

Create the output histograms

Definition at line 103 of file AliAnalysisTaskChargedParticlesRef.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserExec ( Option_t *  )

Simple unit test framework

  • Select event using AliAnalysisUtil
  • Assing trigger type (Request INT7, EJ*, EG*)
  • Loop over tracks, select particles
  • Fill distributions
    Parameters
    optionNot used

Definition at line 228 of file AliAnalysisTaskChargedParticlesRef.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UseTriggerPatches ( Bool_t  doUse)
inline

Definition at line 53 of file AliAnalysisTaskChargedParticlesRef.h.

Member Data Documentation

AliAnalysisUtils* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fAnalysisUtil
protected
Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fEtaCmsCut[2]
protected

Cut applied in Eta centre-of-mass frame.

Definition at line 82 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by AliAnalysisTaskChargedParticlesRef(), SetEtaCMSCut(), and UserExec().

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fEtaLabCut[2]
protected

Cut applied in Eta Lab frame.

Definition at line 81 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by AliAnalysisTaskChargedParticlesRef(), SetEtaLabCut(), and UserExec().

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fEtaSign
protected

Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1.

Definition at line 79 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetBeamDirection(), and UserExec().

AliEMCALGeometry* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fGeometry
protected

EMCAL geometry methods.

Definition at line 75 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by UserExec().

AliEMCalHistoContainer* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fHistos
protected
Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fOfflineEnergyThreshold[kCPRntrig]
protected

Threhold applied on offline patches.

Definition at line 84 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by AliAnalysisTaskChargedParticlesRef(), IsOfflineSelected(), and SetOfflineEnergyThreshold().

AliESDtrackCuts* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fTrackCuts
protected

Standard track selection.

Definition at line 72 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by TrackSelectionESD(), UserCreateOutputObjects(), and ~AliAnalysisTaskChargedParticlesRef().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fTriggerStringFromPatches
protected

Do rebuild the trigger string from trigger patches.

Definition at line 77 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by UserExec(), and UseTriggerPatches().

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fYshift
protected

Rapidity shift.

Definition at line 78 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetRapidityShift(), and UserExec().


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