AliPhysics  vAN-20150822 (d56cf94)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskTrigChEff Class Reference

#include <AliAnalysisTaskTrigChEff.h>

Inheritance diagram for AliAnalysisTaskTrigChEff:

Public Member Functions

 AliAnalysisTaskTrigChEff ()
 
 AliAnalysisTaskTrigChEff (const char *name, const AliMuonTrackCuts &cuts)
 
virtual ~AliAnalysisTaskTrigChEff ()
 
void Terminate (Option_t *option)
 
void FinishTaskOutput ()
 
void MyUserCreateOutputObjects ()
 
void ProcessEvent (TString physSel, const TObjArray &selectTrigClasses, TString centrality)
 
TList * GetEffHistoList (TString physSel, TString trigClassNames, TString centrality, TString trackSelection)
 

Private Types

enum  {
  kBendingEff, kNonBendingEff, kBothPlanesEff, kAllTracks,
  kNcounts
}
 
enum  {
  kHchamberEff, kHslatEff, kHboardEff, kHcheckBoard,
  kNhistoTypes
}
 
enum  {
  kNoMatch, kMatchApt, kMatchLpt, kMatchHpt,
  kNtrigMatch
}
 
enum  { kSelectTrack, kNoSelectTrack, kNtrackSel }
 
enum  { kEffFromTrack, kEffFromTrig, kNeffMethods }
 

Private Member Functions

 AliAnalysisTaskTrigChEff (const AliAnalysisTaskTrigChEff &)
 
AliAnalysisTaskTrigChEffoperator= (const AliAnalysisTaskTrigChEff &)
 
TString GetHistoName (Int_t itype, Int_t icount, Int_t ichamber, Int_t itrackSel, Int_t imatch, Int_t imethod)
 
Bool_t FillEffHistoList (TString physSel, TString trigClassNames, TString centrality, TString trackSelection, TList *outList)
 
void InitLocalKeys ()
 
TH1 * GetCountHisto (Int_t itype, Int_t icount, Int_t ichamber, Int_t itrackSel, Int_t imatch, Int_t imethod)
 
 ClassDef (AliAnalysisTaskTrigChEff, 4)
 

Private Attributes

TObjArray * fTrackSelKeys
 Selection names. More...
 
TObjArray * fCountTypeKeys
 Count type keys. More...
 
TObjArray * fHistoTypeKeys
 Base histogram name. More...
 
TObjArray * fEffMethodKeys
 Efficiency methods keys. More...
 
TObjArray * fMatchTrigKeys
 Match trigger names. More...
 
TList * fList
 TList output object. More...
 

Detailed Description

Definition at line 22 of file AliAnalysisTaskTrigChEff.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
kBendingEff 

Bending plane fired.

kNonBendingEff 

Non-bending plane fired.

kBothPlanesEff 

Both planes fired.

kAllTracks 

tracks used for calculation

kNcounts 

Number of count type.

Definition at line 44 of file AliAnalysisTaskTrigChEff.h.

anonymous enum
private
Enumerator
kHchamberEff 

Counts per cathode histogram index.

kHslatEff 

Counts per slat histogram index.

kHboardEff 

Counts per board histogram index.

kHcheckBoard 

Check rejected tracks per board.

kNhistoTypes 

Check rejected tracks per board.

Definition at line 52 of file AliAnalysisTaskTrigChEff.h.

anonymous enum
private
Enumerator
kNoMatch 

No match with trigger.

kMatchApt 

Match All Pt.

kMatchLpt 

Match Low Pt.

kMatchHpt 

Match High Pt.

kNtrigMatch 

Total number of matched types.

Definition at line 60 of file AliAnalysisTaskTrigChEff.h.

anonymous enum
private
Enumerator
kSelectTrack 

Selected track.

kNoSelectTrack 

Non selected tracks (includes ghosts)

kNtrackSel 

Total number of track selection.

Definition at line 68 of file AliAnalysisTaskTrigChEff.h.

anonymous enum
private
Enumerator
kEffFromTrack 

Hit pattern from tracker track extrapolation.

kEffFromTrig 

Hit pattern from trigger.

kNeffMethods 

Total number of efficiency methods.

Definition at line 74 of file AliAnalysisTaskTrigChEff.h.

Constructor & Destructor Documentation

AliAnalysisTaskTrigChEff::AliAnalysisTaskTrigChEff ( )

Default ctor.

Definition at line 58 of file AliAnalysisTaskTrigChEff.cxx.

AliAnalysisTaskTrigChEff::AliAnalysisTaskTrigChEff ( const char *  name,
const AliMuonTrackCuts &  cuts 
)

Constructor.

Definition at line 72 of file AliAnalysisTaskTrigChEff.cxx.

AliAnalysisTaskTrigChEff::~AliAnalysisTaskTrigChEff ( )
virtual

Destructor

Definition at line 93 of file AliAnalysisTaskTrigChEff.cxx.

AliAnalysisTaskTrigChEff::AliAnalysisTaskTrigChEff ( const AliAnalysisTaskTrigChEff )
private

Member Function Documentation

AliAnalysisTaskTrigChEff::ClassDef ( AliAnalysisTaskTrigChEff  ,
 
)
private
Bool_t AliAnalysisTaskTrigChEff::FillEffHistoList ( TString  physSel,
TString  trigClassNames,
TString  centrality,
TString  trackSelection,
TList *  outList 
)
private

Fill the list of objects for the efficiency calculation merging the splitted output of the fHistogramCollection The obtained list can be converted in the efficiency map used in simulations in a backward compatible way

Definition at line 121 of file AliAnalysisTaskTrigChEff.cxx.

Referenced by FinishTaskOutput(), and GetEffHistoList().

void AliAnalysisTaskTrigChEff::FinishTaskOutput ( )

Merge Apt, Lpt and Hpt Fill the final efficiency object (for backward compatibility)

Definition at line 200 of file AliAnalysisTaskTrigChEff.cxx.

TH1 * AliAnalysisTaskTrigChEff::GetCountHisto ( Int_t  itype,
Int_t  icount,
Int_t  ichamber,
Int_t  itrackSel,
Int_t  imatch,
Int_t  imethod 
)
private

Get histogram with counts for efficiency calculation

Definition at line 305 of file AliAnalysisTaskTrigChEff.cxx.

Referenced by FillEffHistoList(), and MyUserCreateOutputObjects().

TList * AliAnalysisTaskTrigChEff::GetEffHistoList ( TString  physSel,
TString  trigClassNames,
TString  centrality,
TString  trackSelection 
)

Get the list of efficiency objects by merging the

Definition at line 109 of file AliAnalysisTaskTrigChEff.cxx.

Referenced by Terminate().

TString AliAnalysisTaskTrigChEff::GetHistoName ( Int_t  itype,
Int_t  icount,
Int_t  ichamber,
Int_t  itrackSel,
Int_t  imatch,
Int_t  imethod 
)
private

Get histogram index

Definition at line 354 of file AliAnalysisTaskTrigChEff.cxx.

Referenced by FillEffHistoList(), FinishTaskOutput(), GetCountHisto(), ProcessEvent(), and Terminate().

void AliAnalysisTaskTrigChEff::InitLocalKeys ( )
private

Initialyze objects

Definition at line 249 of file AliAnalysisTaskTrigChEff.cxx.

Referenced by AliAnalysisTaskTrigChEff().

void AliAnalysisTaskTrigChEff::MyUserCreateOutputObjects ( )

Create prototype objects for mergeable collection

Definition at line 272 of file AliAnalysisTaskTrigChEff.cxx.

AliAnalysisTaskTrigChEff& AliAnalysisTaskTrigChEff::operator= ( const AliAnalysisTaskTrigChEff )
private
void AliAnalysisTaskTrigChEff::ProcessEvent ( TString  physSel,
const TObjArray &  selectTrigClasses,
TString  centrality 
)

Fill histogram

Definition at line 368 of file AliAnalysisTaskTrigChEff.cxx.

void AliAnalysisTaskTrigChEff::Terminate ( Option_t *  option)

Draw some histogram at the end.

Definition at line 494 of file AliAnalysisTaskTrigChEff.cxx.

Member Data Documentation

TObjArray* AliAnalysisTaskTrigChEff::fCountTypeKeys
private

Count type keys.

Definition at line 86 of file AliAnalysisTaskTrigChEff.h.

Referenced by GetHistoName(), InitLocalKeys(), Terminate(), and ~AliAnalysisTaskTrigChEff().

TObjArray* AliAnalysisTaskTrigChEff::fEffMethodKeys
private

Efficiency methods keys.

Definition at line 88 of file AliAnalysisTaskTrigChEff.h.

Referenced by GetHistoName(), InitLocalKeys(), Terminate(), and ~AliAnalysisTaskTrigChEff().

TObjArray* AliAnalysisTaskTrigChEff::fHistoTypeKeys
private

Base histogram name.

Definition at line 87 of file AliAnalysisTaskTrigChEff.h.

Referenced by GetHistoName(), InitLocalKeys(), Terminate(), and ~AliAnalysisTaskTrigChEff().

TList* AliAnalysisTaskTrigChEff::fList
private
TObjArray* AliAnalysisTaskTrigChEff::fMatchTrigKeys
private

Match trigger names.

Definition at line 89 of file AliAnalysisTaskTrigChEff.h.

Referenced by GetHistoName(), InitLocalKeys(), and ~AliAnalysisTaskTrigChEff().

TObjArray* AliAnalysisTaskTrigChEff::fTrackSelKeys
private

Selection names.

Definition at line 85 of file AliAnalysisTaskTrigChEff.h.

Referenced by GetHistoName(), InitLocalKeys(), and ~AliAnalysisTaskTrigChEff().


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