53 SetPostEventLoop(kTRUE);
56 DefineInput(0, TList::Class()) ;
59 DefineOutput(0, TList::Class()) ;
67 if(
fDebug > 1) printf(
"*** Initialization of %s \n", GetName()) ;
80 fhCount =
new TH1F(
"hCount",
"count files",1,0,1);
93 if(
fDebug > 0 ) printf(
">>>>> Scaling factor %e, do Sumw2 %d <<<<< \n",
fScale,
fSumw2) ;
95 const Int_t buffersize = 255;
96 char name[buffersize] ;
100 while ( (h = next()) )
104 if ( !strncmp(h->ClassName(),
"TH",2) )
106 snprintf(name, buffersize,
"%sScaled", h->GetName()) ;
108 TH1 * hout =
dynamic_cast<TH1*
> (h->Clone(name)) ;
133 if(
fDebug > 0 )printf(
"No initialization in scale class \n") ;
virtual void ConnectInputData(Option_t *="")
Initialisation of branch container with histograms.
TList * fInputList
! Input data list.
virtual void Init()
Intialization of parameters.
virtual void Exec(Option_t *opt="")
Do the histogram scaling.
Bool_t fSumw2
Compute sum of squares of weights for bin content error calculation.
AliAnaScale()
Default constructor.
Float_t fScale
Scaling factor.
virtual void CreateOutputObjects()
Create the outputs containers.
TH1F * fhCount
! Counter histogram for file merging.
TList * fOutputList
! Output data list.