AliPhysics  a0db429 (a0db429)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AliEMCalTriggerWeightHandler.h
Go to the documentation of this file.
1 
8 #ifndef ALIEMCALTRIGGERWEIGHTHANDLER_H
9 #define ALIEMCALTRIGGERWEIGHTHANDLER_H
10 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
11  * See cxx source for full Copyright notice */
12 
13 #include <TObject.h>
14 
15 class TF1;
16 
17 class AliMCEvent;
18 
26 namespace EMCalTriggerPtAnalysis {
27 
36 class AliEMCalTriggerWeightHandler : public TObject {
37 public:
40 
45  void SetUsePtHard(bool usePtHard) { fUsePtHard = usePtHard; }
46 
51  void SetWeightModel(TF1 *model) { fWeightModel = model; }
52 
53  double GetEventWeight(const AliMCEvent *const event) const;
54 
55 private:
56  TF1 *fWeightModel;
57  bool fUsePtHard;
58 
60  ClassDef(AliEMCalTriggerWeightHandler, 1);
62 };
63 
64 } /* namespace EMCalTriggerPtAnalysis */
65 
66 #endif /* ALIEMCALTRIGGERWEIGHTHANDLER_H */
double GetEventWeight(const AliMCEvent *const event) const