AliPhysics  vAN-20150427 (e6e7aad)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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 
53  Int_t fDebug ;
54 
55  Float_t fScale ;
56 
57  // Histograms
58 
59  TList * fInputList ;
60 
61  TList * fOutputList ;
62 
63  Bool_t fSumw2 ;
64 
65  TH1F * fhCount;
66 
68  ClassDef(AliAnaScale, 2) ;
70 
71 };
72 
73 #endif // ALIANASCALE_H
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
AliAnaScale()
Default constructor.
Definition: AliAnaScale.cxx:30
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
AliAnaScale & operator=(const AliAnaScale &)
Assignment operator not implemented.
TList * fOutputList
! Output data list.
Definition: AliAnaScale.h:61