AliPhysics  8dc8609 (8dc8609)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskTriggerRates.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 #ifndef ALIANALYSISTASKTRIGGERRATES_H
5 #define ALIANALYSISTASKTRIGGERRATES_H
6 
9 //Author: Philippe Pillot - SUBATECH Nantes
10 
11 #include "AliAnalysisTaskSE.h"
12 
13 class AliCounterCollection;
14 
16 
17 public:
19  AliAnalysisTaskTriggerRates(const char *name);
21 
22  virtual void NotifyRun() {}
23  virtual void UserCreateOutputObjects();
24  virtual void UserExec(Option_t *option);
25  virtual void Terminate(Option_t *);
26 
28  void SelectCentrality(Bool_t flag = kTRUE) { fnCent = flag ? 10 : 0; }
29 
31  void SetZeroDevRange(UInt_t deltaDev) { fDeltaDev = deltaDev; }
32 
34  void SetTrigClassPatterns(TString mul, TString mll, TString msl, TString msh) {
35  fMULPattern = (mul.IsNull()) ? "none" : mul;
36  fMLLPattern = (mll.IsNull()) ? "none" : mll;
37  fMSLPattern = (msl.IsNull()) ? "none" : msl;
38  fMSHPattern = (msh.IsNull()) ? "none" : msh;
39  }
40 
42  void PrintCounts(Bool_t flag = kTRUE) { fPrinfCounts = flag; }
43 
44 private:
45  AliAnalysisTaskTriggerRates(const AliAnalysisTaskTriggerRates &); // not implemented
47 
48  void InitCentralityBins();
49  Int_t TriggerDevSign(AliVParticle *track, UInt_t deltaDev) const;
50  void PrintRates(TString ps, TString cent) const;
51 
52  AliCounterCollection *fTriggerCounters;
53 
63 
64  ClassDef(AliAnalysisTaskTriggerRates, 1);
65 };
66 
67 #endif
68 
TString fMSHPattern
MSL trigger class pattern.
void SelectCentrality(Bool_t flag=kTRUE)
separate events according to their centrality
task to study online/offline trigger combinations
TString fMSLPattern
MLL trigger class pattern.
TString fMLLPattern
MUL trigger class pattern.
Float_t fCentBinRange[10][2]
number of centrality bin used (< 10)
virtual void UserExec(Option_t *option)
void SetTrigClassPatterns(TString mul, TString mll, TString msl, TString msh)
set the trigger class patterns (e.g. "CMUU7-B-NOPF-")
void SetZeroDevRange(UInt_t deltaDev)
set the range of trigger deviation (15 ± deltaDev) for which the trigger sign is considered as unknow...
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
Bool_t fPrinfCounts
MSH trigger class pattern.
float Float_t
Definition: External.C:68
AliAnalysisTaskTriggerRates & operator=(const AliAnalysisTaskTriggerRates &)
Int_t TriggerDevSign(AliVParticle *track, UInt_t deltaDev) const
void PrintCounts(Bool_t flag=kTRUE)
print raw counts instead of rates
void PrintRates(TString ps, TString cent) const
TString fMULPattern
set trgSign = 0 for trigger track with dev = 15 ± fDeltaDev
TString fCentBinName[10]
centrality bin intervals
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
UInt_t fDeltaDev
centrality bin names