AliPhysics  2797316 (2797316)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskCounter Class Reference

Count events with different selection criteria. More...

#include <AliAnalysisTaskCounter.h>

Inheritance diagram for AliAnalysisTaskCounter:

Public Member Functions

 AliAnalysisTaskCounter ()
 Default Constructor. More...
 
 AliAnalysisTaskCounter (const char *name)
 Constructor. More...
 
virtual ~AliAnalysisTaskCounter ()
 Destructor. More...
 
virtual void UserCreateOutputObjects ()
 Init histogram pointers and add them to container. More...
 
virtual void UserExec (Option_t *option)
 
virtual void FinishTaskOutput ()
 Put in the output some event summary histograms. More...
 
virtual Bool_t Notify ()
 
void SetTrackMultiplicityEtaCut (Float_t eta)
 
void SetZVertexCut (Float_t vcut)
 
void AcceptFastCluster ()
 
void RejectFastCluster ()
 
Bool_t IsFastClusterAccepted () const
 
Bool_t CheckForPrimaryVertex ()
 
void SwitchOnMCCrossSectionCalculation ()
 
void SwitchOffMCCrossSectionCalculation ()
 
void SwitchOnAliCentrality ()
 
void SwitchOffAliCentrality ()
 
void SetCentralityClass (TString name)
 
TString GetCentralityClass () const
 

Static Public Member Functions

static Bool_t PythiaInfoFromFile (TString currFile, Float_t &xsec, Float_t &trials)
 

Private Member Functions

 AliAnalysisTaskCounter (const AliAnalysisTaskCounter &)
 Copy constructor not implemented. More...
 
AliAnalysisTaskCounteroperator= (const AliAnalysisTaskCounter &)
 Assignment operator not implemented. More...
 

Private Attributes

Bool_t fAcceptFastCluster
 Accept events from fast cluster, exclude these events for LHC11a. More...
 
Float_t fZVertexCut
 Z vertex cut. More...
 
Float_t fTrackMultEtaCut
 Track multiplicity eta cut. More...
 
Float_t fAvgTrials
 Average number of event trials. More...
 
TList * fOutputContainer
 ! Histogram container. More...
 
AliESDtrackCuts * fESDtrackCuts
 Track cut. More...
 
TString fCurrFileName
 Current file path name. More...
 
Bool_t fCheckMCCrossSection
 Retrieve from the pyxsec.root file only if requested. More...
 
Bool_t fUseAliCentrality
 Use the centrality estimator from AliCentrality or AliMultSelection. More...
 
TString fCentralityClass
 Multiplicity percentile/centrality estimator, for ex. V0M. More...
 
TH1I * fhNEvents
 ! Events that delivers the analysis frame after different assumptions. More...
 
TH1F * fhXVertex
 ! X Vertex distribution. More...
 
TH1F * fhYVertex
 ! Y Vertex distribution. More...
 
TH1F * fhZVertex
 ! Z Vertex distribution. More...
 
TH1F * fhXGoodVertex
 ! X Vertex distribution, after event selection. More...
 
TH1F * fhYGoodVertex
 ! Y Vertex distribution, after event selection. More...
 
TH1F * fhZGoodVertex
 ! Z Vertex distribution, after event selection. More...
 
TH1F * fhCentrality
 ! Centrality. More...
 
TH1F * fhEventPlaneAngle
 ! Event plane angle. More...
 
TH1F * fh1Xsec
 ! Cross section in PYTHIA. More...
 
TH1F * fh1Trials
 ! Number of event trials in PYTHIA. More...
 

Detailed Description

Count events with different selection criteria.

It produces a histogram, fhNEvents, with the number of events with 9 bins representing different selection criteria:

  • 1: all events (that passed the physics selection if it was on)
  • 2: same but cross check that event pointer did exist (not really necessary) and if the trigger cluster is not FAST if fAcceptFastCluster=1
  • 3: passes z vertex cut, settable fZVertexCut (10 cm)
  • 4: passes track multiplicity cut, at least one track in:
    • eta < 0.8
    • passing AliESDtrackCuts fESDtrackCuts cuts for ESDs or Hybrid tracks for AODs
  • 5: 3 && 4
  • 6: pass V0AND
  • 7: 6 && 3
  • 8: 6 && 4
  • 9: 6 && 5
  • 10: not pileup from SPD event->IsPileupFromSPD(3, 0.8, 3., 2., 5.)
  • 11: Good (primary, not 0,0,0) vertex
  • 12: 11 && 3
  • 13: 11 && 4
  • 14: 11 && 6
  • 15: 11 && 9
  • 16: 11 && 10
  • 17: 10 && 6
  • 18: special case of EMCal bad events, cluster with too large energy and cells
  • 19: 18 & 3
  • 20: special case of EMCal bad events, !18 & too many cells with E avobe a cut
  • 21: 20 & 3

Other histograms:

  • event vertex X,Y,Z before and after event selection
  • event plane, centrality

This class also recovers the cross section and number of trials in case of MC PYTHIA productions done in pT-hard bins, and stores them in a histogram fh1Xsec and fh1Trials

Author
Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, LPSC-IN2P3-CNRS

Definition at line 55 of file AliAnalysisTaskCounter.h.

Constructor & Destructor Documentation

AliAnalysisTaskCounter::AliAnalysisTaskCounter ( )

Default Constructor.

Definition at line 69 of file AliAnalysisTaskCounter.cxx.

AliAnalysisTaskCounter::AliAnalysisTaskCounter ( const char *  name)

Constructor.

Definition at line 46 of file AliAnalysisTaskCounter.cxx.

AliAnalysisTaskCounter::~AliAnalysisTaskCounter ( )
virtual

Destructor.

Definition at line 91 of file AliAnalysisTaskCounter.cxx.

AliAnalysisTaskCounter::AliAnalysisTaskCounter ( const AliAnalysisTaskCounter )
private

Copy constructor not implemented.

Member Function Documentation

void AliAnalysisTaskCounter::AcceptFastCluster ( )
inline

Definition at line 78 of file AliAnalysisTaskCounter.h.

Bool_t AliAnalysisTaskCounter::CheckForPrimaryVertex ( )

Check if the vertex was well reconstructed, copy of PCM.

Definition at line 410 of file AliAnalysisTaskCounter.cxx.

Referenced by UserExec().

void AliAnalysisTaskCounter::FinishTaskOutput ( )
virtual

Put in the output some event summary histograms.

Definition at line 469 of file AliAnalysisTaskCounter.cxx.

TString AliAnalysisTaskCounter::GetCentralityClass ( ) const
inline

Definition at line 91 of file AliAnalysisTaskCounter.h.

Bool_t AliAnalysisTaskCounter::IsFastClusterAccepted ( ) const
inline

Definition at line 80 of file AliAnalysisTaskCounter.h.

Bool_t AliAnalysisTaskCounter::Notify ( )
virtual

Implemented Notify() to read the cross sections and number of trials from pyxsec.root, values stored in specific histograms.

Definition at line 491 of file AliAnalysisTaskCounter.cxx.

Referenced by UserExec().

AliAnalysisTaskCounter& AliAnalysisTaskCounter::operator= ( const AliAnalysisTaskCounter )
private

Assignment operator not implemented.

Bool_t AliAnalysisTaskCounter::PythiaInfoFromFile ( TString  file,
Float_t &  xsec,
Float_t &  trials 
)
static

This method gets and returns the

Parameters
file: either pyxsec.root (ESDs) or pysec_hists.root (AODs) files
xsec: cross section
trials: number of event trials that should be located where the main data file is. This is called in Notify and should provide the path to the AOD/ESD file

Definition at line 584 of file AliAnalysisTaskCounter.cxx.

Referenced by Notify().

void AliAnalysisTaskCounter::RejectFastCluster ( )
inline

Definition at line 79 of file AliAnalysisTaskCounter.h.

void AliAnalysisTaskCounter::SetCentralityClass ( TString  name)
inline

Definition at line 90 of file AliAnalysisTaskCounter.h.

void AliAnalysisTaskCounter::SetTrackMultiplicityEtaCut ( Float_t  eta)
inline

Definition at line 75 of file AliAnalysisTaskCounter.h.

void AliAnalysisTaskCounter::SetZVertexCut ( Float_t  vcut)
inline

Definition at line 76 of file AliAnalysisTaskCounter.h.

void AliAnalysisTaskCounter::SwitchOffAliCentrality ( )
inline

Definition at line 88 of file AliAnalysisTaskCounter.h.

void AliAnalysisTaskCounter::SwitchOffMCCrossSectionCalculation ( )
inline

Definition at line 85 of file AliAnalysisTaskCounter.h.

Referenced by AddTaskCounter().

void AliAnalysisTaskCounter::SwitchOnAliCentrality ( )
inline

Definition at line 87 of file AliAnalysisTaskCounter.h.

void AliAnalysisTaskCounter::SwitchOnMCCrossSectionCalculation ( )
inline

Definition at line 84 of file AliAnalysisTaskCounter.h.

Referenced by AddTaskCounter().

void AliAnalysisTaskCounter::UserCreateOutputObjects ( )
virtual

Init histogram pointers and add them to container.

Definition at line 110 of file AliAnalysisTaskCounter.cxx.

void AliAnalysisTaskCounter::UserExec ( Option_t *  option)
virtual

Main event loop It does the event counting, depending on different cuts (see criteria in class description). It fills the event vertex, centrality and plane histograms

Definition at line 196 of file AliAnalysisTaskCounter.cxx.

Member Data Documentation

Bool_t AliAnalysisTaskCounter::fAcceptFastCluster
private

Accept events from fast cluster, exclude these events for LHC11a.

Definition at line 95 of file AliAnalysisTaskCounter.h.

Referenced by AcceptFastCluster(), IsFastClusterAccepted(), RejectFastCluster(), and UserExec().

Float_t AliAnalysisTaskCounter::fAvgTrials
private

Average number of event trials.

Definition at line 98 of file AliAnalysisTaskCounter.h.

Referenced by Notify().

TString AliAnalysisTaskCounter::fCentralityClass
private

Multiplicity percentile/centrality estimator, for ex. V0M.

Definition at line 105 of file AliAnalysisTaskCounter.h.

Referenced by GetCentralityClass(), SetCentralityClass(), and UserExec().

Bool_t AliAnalysisTaskCounter::fCheckMCCrossSection
private

Retrieve from the pyxsec.root file only if requested.

Definition at line 103 of file AliAnalysisTaskCounter.h.

Referenced by Notify(), SwitchOffMCCrossSectionCalculation(), SwitchOnMCCrossSectionCalculation(), and UserCreateOutputObjects().

TString AliAnalysisTaskCounter::fCurrFileName
private

Current file path name.

Definition at line 102 of file AliAnalysisTaskCounter.h.

Referenced by Notify().

AliESDtrackCuts* AliAnalysisTaskCounter::fESDtrackCuts
private

Track cut.

Definition at line 100 of file AliAnalysisTaskCounter.h.

Referenced by UserExec(), and ~AliAnalysisTaskCounter().

TH1F* AliAnalysisTaskCounter::fh1Trials
private

! Number of event trials in PYTHIA.

Definition at line 121 of file AliAnalysisTaskCounter.h.

Referenced by Notify(), and UserCreateOutputObjects().

TH1F* AliAnalysisTaskCounter::fh1Xsec
private

! Cross section in PYTHIA.

Definition at line 120 of file AliAnalysisTaskCounter.h.

Referenced by Notify(), and UserCreateOutputObjects().

TH1F* AliAnalysisTaskCounter::fhCentrality
private

! Centrality.

Definition at line 117 of file AliAnalysisTaskCounter.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH1F* AliAnalysisTaskCounter::fhEventPlaneAngle
private

! Event plane angle.

Definition at line 118 of file AliAnalysisTaskCounter.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH1I* AliAnalysisTaskCounter::fhNEvents
private

! Events that delivers the analysis frame after different assumptions.

Definition at line 110 of file AliAnalysisTaskCounter.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH1F* AliAnalysisTaskCounter::fhXGoodVertex
private

! X Vertex distribution, after event selection.

Definition at line 114 of file AliAnalysisTaskCounter.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH1F* AliAnalysisTaskCounter::fhXVertex
private

! X Vertex distribution.

Definition at line 111 of file AliAnalysisTaskCounter.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH1F* AliAnalysisTaskCounter::fhYGoodVertex
private

! Y Vertex distribution, after event selection.

Definition at line 115 of file AliAnalysisTaskCounter.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH1F* AliAnalysisTaskCounter::fhYVertex
private

! Y Vertex distribution.

Definition at line 112 of file AliAnalysisTaskCounter.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH1F* AliAnalysisTaskCounter::fhZGoodVertex
private

! Z Vertex distribution, after event selection.

Definition at line 116 of file AliAnalysisTaskCounter.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH1F* AliAnalysisTaskCounter::fhZVertex
private

! Z Vertex distribution.

Definition at line 113 of file AliAnalysisTaskCounter.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TList* AliAnalysisTaskCounter::fOutputContainer
private

! Histogram container.

Definition at line 99 of file AliAnalysisTaskCounter.h.

Referenced by FinishTaskOutput(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskCounter().

Float_t AliAnalysisTaskCounter::fTrackMultEtaCut
private

Track multiplicity eta cut.

Definition at line 97 of file AliAnalysisTaskCounter.h.

Referenced by SetTrackMultiplicityEtaCut(), and UserExec().

Bool_t AliAnalysisTaskCounter::fUseAliCentrality
private

Use the centrality estimator from AliCentrality or AliMultSelection.

Definition at line 104 of file AliAnalysisTaskCounter.h.

Referenced by SwitchOffAliCentrality(), SwitchOnAliCentrality(), and UserExec().

Float_t AliAnalysisTaskCounter::fZVertexCut
private

Z vertex cut.

Definition at line 96 of file AliAnalysisTaskCounter.h.

Referenced by SetZVertexCut(), and UserExec().


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