]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/PartCorrBase/AliAnaScale.h
Removed MV label shifting for second input event, index of input event stored in...
[u/mrichter/AliRoot.git] / PWG4 / PartCorrBase / AliAnaScale.h
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 // An post event loop analysis task that scales the input histograms 
7 //
8 //*-- Yves Schutz 
9 //////////////////////////////////////////////////////////////////////////////
10
11 #include "AliAnalysisTask.h"  
12 class TH1F ; 
13
14 class AliAnaScale : public AliAnalysisTask {
15
16 public:
17   AliAnaScale() ;
18   AliAnaScale(const char *name) ;
19   virtual ~AliAnaScale() ;
20    
21   virtual void ConnectInputData(Option_t * = "");
22   virtual void CreateOutputObjects(); 
23   virtual void Init() ;         
24   virtual void LocalInit() { Init() ; }
25   virtual void Exec(Option_t * opt = "") ;
26   void Set(const Double_t val) { fScale = val ; }
27   void SetDebugLevel(Int_t level) { fDebug = level ; }
28 //  virtual void Terminate(Option_t * opt = "") ;
29
30   void MakeSumw2(Bool_t sum) {fSumw2 = sum;}
31
32 private:
33   AliAnaScale(const AliAnaScale&); // Not implemented
34   AliAnaScale& operator=(const AliAnaScale&); // Not implemented
35
36
37   // input and output
38   Int_t     fDebug ;         // Debug flag
39   // task parameters
40   Float_t   fScale ;  // Scaling factor 
41
42   // Histograms
43   TList   * fInputList ;  //! input data list
44   TList   * fOutputList ; //! output data list
45   Bool_t fSumw2; //compute sum of squares of weights for bin content error calculation
46   TH1F * fhCount; //! counter histogram for file merging
47
48   ClassDef(AliAnaScale, 2); // a post event loop scaling 
49 };
50 #endif // ALIANASCALE_H