AliPhysics  vAN-20150924 (e816f45)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC Class Reference

Unit test class for charged particle distributions (MC case) More...

#include <AliAnalysisTaskChargedParticlesRefMC.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC:

Public Types

enum  BeamDirection_t { kpPb = 1, kPbp = -1 }
 

Public Member Functions

 AliAnalysisTaskChargedParticlesRefMC ()
 
 AliAnalysisTaskChargedParticlesRefMC (const char *name)
 
virtual ~AliAnalysisTaskChargedParticlesRefMC ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *)
 
Bool_t UserNotify ()
 
void Terminate (Option_t *)
 
void SetRapidityShift (Double_t yshift)
 
void SetBeamDirection (BeamDirection_t beamdir)
 
void SetEtaLabCut (double etamin, double etamax)
 
void SetEtaCMSCut (double etamin, double etamax)
 
void SetOutlierCut (double fracpthard=1.2)
 

Protected Member Functions

void CreateOldPtBinning (TArrayD &binning) const
 
void CreateNewPtBinning (TArrayD &binning) const
 
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)
 
void FillTriggerJetHistograms (Bool_t aftercut, AliGenPythiaEventHeader *const header)
 
Bool_t TrackSelectionESD (AliESDtrack *track)
 
Bool_t TrackSelectionAOD (AliAODTrack *track)
 
TString GetFiredTriggerClasses (const TClonesArray *triggerpatches)
 
Bool_t PythiaInfoFromFile (const char *currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard) const
 
AliGenPythiaEventHeader * GetPythiaHeader () const
 
Bool_t IsPhysicalPrimary (const AliVParticle *const part, AliMCEvent *const mcevent)
 
Bool_t IsOutlier (AliGenPythiaEventHeader *const header) const
 

Protected Attributes

AliESDtrackCuts * fTrackCuts
 Standard track selection. More...
 
AliAnalysisUtils * fAnalysisUtil
 Event selection. More...
 
AliEMCalHistoContainerfHistos
 Histogram manager. More...
 
AliEMCALGeometry * fGeometry
 EMCAL geometry methods. More...
 
Double_t fPtHard
 event pt hard More...
 
Int_t fPtHardBin
 event pt hard bin More...
 
Int_t fNTrials
 event trials More...
 
Float_t fXsection
 x-section from pythia header 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 fFracPtHard
 Cut on the maximum fraction of pt hard of any trigger jet. More...
 

Private Member Functions

 AliAnalysisTaskChargedParticlesRefMC (const AliAnalysisTaskChargedParticlesRefMC &)
 
AliAnalysisTaskChargedParticlesRefMCoperator= (const AliAnalysisTaskChargedParticlesRefMC &)
 

Detailed Description

Unit test class for charged particle distributions (MC case)

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 33 of file AliAnalysisTaskChargedParticlesRefMC.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::AliAnalysisTaskChargedParticlesRefMC ( )

Dummy constructor

Definition at line 60 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

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

Main constructor

Parameters
nameName of the task

Definition at line 85 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::~AliAnalysisTaskChargedParticlesRefMC ( )
virtual

Destuctor

Definition at line 110 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::AliAnalysisTaskChargedParticlesRefMC ( const AliAnalysisTaskChargedParticlesRefMC )
private

Member Function Documentation

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

Create new Pt binning

Parameters
binning

Definition at line 745 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserCreateOutputObjects().

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

Create old pt binning

Parameters
binning

Definition at line 717 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserCreateOutputObjects().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::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 487 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::FillTriggerJetHistograms ( Bool_t  aftercut,
AliGenPythiaEventHeader *const  header 
)
protected

Fill histogram with pt of all triggering jets

Parameters
histnameName of the histogram to fill
headerPYTHIA event header with jet information

Definition at line 557 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserExec().

TString EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::GetFiredTriggerClasses ( const TClonesArray *  triggerpatches)
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 798 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserExec().

AliGenPythiaEventHeader * EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::GetPythiaHeader ( ) const
protected

Access PYTHIA event header

Returns
pythia event header (if existing)

Definition at line 698 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::IsOutlier ( AliGenPythiaEventHeader *const  header) const
protected

Find outlier jets compared to the pt hard

Parameters
headerPYTHIA header with trigger jets and pt hard
Returns
True if event has at least one outlier, false otherwise

Definition at line 853 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::IsPhysicalPrimary ( const AliVParticle *const  part,
AliMCEvent *const  mcevent 
)
protected

Check in a transparent way for ESDs and AODs whether the particle is physical primary or not

  1. AOD: Information stored in the AliAODMCParticle
  2. ESD: Information needs to be retrieved from the stack via the label of the MC particle
    Parameters
    partThe particle to check
    mceventThe MC event containing the stack (ESD only)
    Returns
    True if particle is a physical primary particle, false otherwise

Definition at line 837 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserExec().

AliAnalysisTaskChargedParticlesRefMC& EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::operator= ( const AliAnalysisTaskChargedParticlesRefMC )
private
Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::PythiaInfoFromFile ( const char *  currFile,
Float_t &  fXsec,
Float_t &  fTrials,
Int_t &  pthard 
) const
protected

Get the cross section and the trails either from pyxsec.root or from pysec_hists.root Get the pt hard bin from the file path This is to called in Notify and should provide the path to the AOD/ESD file (Partially copied from AliAnalysisHelperJetTasks) From AliAnalysisTaskEmcal

Parameters
currFileFile name with PYTHIA hard cross section
fXsecOutput storage for the cross section
fTrialsOutput storage for the number of trials
pthardOutput storage of the pthardbin
Returns
True if reading was successful, false in case of errors

Definition at line 622 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserNotify().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::SetBeamDirection ( BeamDirection_t  beamdir)
inline

Definition at line 49 of file AliAnalysisTaskChargedParticlesRefMC.h.

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

Definition at line 52 of file AliAnalysisTaskChargedParticlesRefMC.h.

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

Definition at line 51 of file AliAnalysisTaskChargedParticlesRefMC.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::SetOutlierCut ( double  fracpthard = 1.2)
inline

Definition at line 53 of file AliAnalysisTaskChargedParticlesRefMC.h.

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

Definition at line 48 of file AliAnalysisTaskChargedParticlesRefMC.h.

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

Definition at line 46 of file AliAnalysisTaskChargedParticlesRefMC.h.

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::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 787 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::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 778 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::UserCreateOutputObjects ( )

Create the output histograms

Definition at line 118 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

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

Definition at line 232 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::UserNotify ( )

Perform actions when giles change

Returns

Definition at line 576 of file AliAnalysisTaskChargedParticlesRefMC.cxx.

Member Data Documentation

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

Cut applied in Eta centre-of-mass frame.

Definition at line 85 of file AliAnalysisTaskChargedParticlesRefMC.h.

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

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

Cut applied in Eta Lab frame.

Definition at line 84 of file AliAnalysisTaskChargedParticlesRefMC.h.

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

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fEtaSign
protected

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

Definition at line 83 of file AliAnalysisTaskChargedParticlesRefMC.h.

Referenced by SetBeamDirection(), and UserExec().

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fFracPtHard
protected

Cut on the maximum fraction of pt hard of any trigger jet.

Definition at line 86 of file AliAnalysisTaskChargedParticlesRefMC.h.

Referenced by IsOutlier(), SetOutlierCut(), and UserExec().

AliEMCALGeometry* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fGeometry
protected

EMCAL geometry methods.

Definition at line 74 of file AliAnalysisTaskChargedParticlesRefMC.h.

Referenced by UserExec().

AliEMCalHistoContainer* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fHistos
protected
Int_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fNTrials
protected

event trials

Definition at line 79 of file AliAnalysisTaskChargedParticlesRefMC.h.

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fPtHard
protected

event pt hard

Definition at line 77 of file AliAnalysisTaskChargedParticlesRefMC.h.

Int_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fPtHardBin
protected

event pt hard bin

Definition at line 78 of file AliAnalysisTaskChargedParticlesRefMC.h.

AliESDtrackCuts* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fTrackCuts
protected
Float_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fXsection
protected

x-section from pythia header

Definition at line 80 of file AliAnalysisTaskChargedParticlesRefMC.h.

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::fYshift
protected

Rapidity shift.

Definition at line 82 of file AliAnalysisTaskChargedParticlesRefMC.h.

Referenced by SetRapidityShift(), and UserExec().


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