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