AliPhysics  5a28df1 (5a28df1)
AliAnaScale.h
Go to the documentation of this file.
1 #ifndef ALIANASCALE_H
2 #define ALIANASCALE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //_________________________________________________________________________
14 //_________________________________________________________________________
15 
16 #include "AliAnalysisTask.h"
17 class TH1F ;
18 
19 class AliAnaScale : public AliAnalysisTask {
20 
21 public:
22 
23  AliAnaScale() ;
24 
25  AliAnaScale(const char *name) ;
26 
28  virtual ~AliAnaScale() { ; }
29 
30  virtual void ConnectInputData(Option_t * = "");
31 
32  virtual void CreateOutputObjects();
33 
34  virtual void Init() ;
35 
36  virtual void LocalInit() { Init() ; }
37 
38  virtual void Exec(Option_t * opt = "") ;
39 
40  void Set(Double_t val) { fScale = val ; }
41 
42  void SetDebugLevel(Int_t level) { fDebug = level ; }
43 
44  void MakeSumw2(Bool_t sum) { fSumw2 = sum ; }
45 
46 private:
47 
49  AliAnaScale( const AliAnaScale&);
50 
53 
55 
57 
58  // Histograms
59 
61 
63 
65 
66  TH1F * fhCount;
67 
69  ClassDef(AliAnaScale, 2) ;
71 
72 };
73 
74 #endif // ALIANASCALE_H
double Double_t
Definition: External.C:58
virtual void ConnectInputData(Option_t *="")
Initialisation of branch container with histograms.
Definition: AliAnaScale.cxx:65
void SetDebugLevel(Int_t level)
Definition: AliAnaScale.h:42
void Set(Double_t val)
Definition: AliAnaScale.h:40
TList * fInputList
! Input data list.
Definition: AliAnaScale.h:60
virtual void Init()
Intialization of parameters.
Scale input histograms.
Definition: AliAnaScale.h:19
virtual void Exec(Option_t *opt="")
Do the histogram scaling.
Definition: AliAnaScale.cxx:91
virtual void LocalInit()
Definition: AliAnaScale.h:36
Bool_t fSumw2
Compute sum of squares of weights for bin content error calculation.
Definition: AliAnaScale.h:64
virtual ~AliAnaScale()
Destructor not implemented.
Definition: AliAnaScale.h:28
int Int_t
Definition: External.C:63
AliAnaScale()
Default constructor.
Definition: AliAnaScale.cxx:30
float Float_t
Definition: External.C:68
Float_t fScale
Scaling factor.
Definition: AliAnaScale.h:56
Int_t fDebug
Debug flag.
Definition: AliAnaScale.h:54
void MakeSumw2(Bool_t sum)
Definition: AliAnaScale.h:44
virtual void CreateOutputObjects()
Create the outputs containers.
Definition: AliAnaScale.cxx:75
TH1F * fhCount
! Counter histogram for file merging.
Definition: AliAnaScale.h:66
const char Option_t
Definition: External.C:48
AliAnaScale & operator=(const AliAnaScale &)
Assignment operator not implemented.
bool Bool_t
Definition: External.C:53
TList * fOutputList
! Output data list.
Definition: AliAnaScale.h:62