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
9 //////////////////////////////////////////////////////////////////////////////
11 #include "AliAnalysisTask.h"
17 class AliAnaScale : public AliAnalysisTask {
21 AliAnaScale(const char *name) ;
22 virtual ~AliAnaScale() ;
24 virtual void ConnectInputData(Option_t * = "");
25 virtual void CreateOutputObjects();
27 virtual void LocalInit() { Init() ; }
28 virtual void Exec(Option_t * opt = "") ;
29 void Set(const Double_t val) { fScale = val ; }
30 void SetDebugLevel(Int_t level) { fDebug = level ; }
31 virtual void Terminate(Option_t * opt = "") ;
33 void MakeSumw2(Bool_t sum) {fSumw2 = sum;}
36 AliAnaScale(const AliAnaScale&); // Not implemented
37 AliAnaScale& operator=(const AliAnaScale&); // Not implemented
41 Int_t fDebug ; // Debug flag
43 Float_t fScale ; // Scaling factor
46 TList * fInputList ; //! input data list
47 TList * fOutputList ; //! output data list
48 Bool_t fSumw2; //compute sum of squares of weights for bin content error calculation
49 TH1F * fhCount; //! counter histogram for file merging
51 ClassDef(AliAnaScale, 2); // a post event loop scaling
53 #endif // ALIANASCALE_H