AliPhysics  cdeda5a (cdeda5a)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 //_________________________________________________________________________
13 //_________________________________________________________________________
14 
15 #include "AliAnalysisTask.h"
16 class TH1F ;
17 
18 class AliAnaScale : public AliAnalysisTask {
19 
20 public:
21 
22  AliAnaScale() ;
23 
24  AliAnaScale(const char *name) ;
25 
27  virtual ~AliAnaScale() { ; }
28 
29  virtual void ConnectInputData(Option_t * = "");
30 
31  virtual void CreateOutputObjects();
32 
33  virtual void Init() ;
34 
35  virtual void LocalInit() { Init() ; }
36 
37  virtual void Exec(Option_t * opt = "") ;
38 
39  void Set(Double_t val) { fScale = val ; }
40 
41  void SetDebugLevel(Int_t level) { fDebug = level ; }
42 
43  void MakeSumw2(Bool_t sum) { fSumw2 = sum ; }
44 
45 private:
46 
48  AliAnaScale( const AliAnaScale&);
49 
52 
54 
56 
57  // Histograms
58 
60 
62 
64 
65  TH1F * fhCount;
66 
68  ClassDef(AliAnaScale, 2) ;
70 
71 };
72 
73 #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:41
void Set(Double_t val)
Definition: AliAnaScale.h:39
TList * fInputList
! Input data list.
Definition: AliAnaScale.h:59
virtual void Init()
Intialization of parameters.
Scale input histograms.
Definition: AliAnaScale.h:18
virtual void Exec(Option_t *opt="")
Do the histogram scaling.
Definition: AliAnaScale.cxx:91
virtual void LocalInit()
Definition: AliAnaScale.h:35
Bool_t fSumw2
Compute sum of squares of weights for bin content error calculation.
Definition: AliAnaScale.h:63
virtual ~AliAnaScale()
Destructor not implemented.
Definition: AliAnaScale.h:27
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:55
Int_t fDebug
Debug flag.
Definition: AliAnaScale.h:53
void MakeSumw2(Bool_t sum)
Definition: AliAnaScale.h:43
virtual void CreateOutputObjects()
Create the outputs containers.
Definition: AliAnaScale.cxx:75
TH1F * fhCount
! Counter histogram for file merging.
Definition: AliAnaScale.h:65
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:61