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