1 #ifndef ALICENTRALITYBY1D_H
2 #define ALICENTRALITYBY1D_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 /* Origin: Alberica Toia, CERN, Alberica.Toia@cern.ch */
8 ///////////////////////////////////////////////////////////////////////////////
10 // class to determine centrality percentiles from 1D distributions //
12 ///////////////////////////////////////////////////////////////////////////////
16 class AliCentralityBy1D : public TObject {
21 virtual ~AliCentralityBy1D();
23 void SetInputFile(TString filename) { fInrootfilename = filename; }
24 void SetOutputFile(TString filename) { fOutrootfilename = filename; }
26 void SetPercentileCrossSection(Float_t xsec) { fPercentXsec = xsec; }
27 void SetMultLowBound(Float_t mult ) { fMultLowBound = mult; }
29 void AddHisto(TString name) { fHistnames.push_back(name); }
30 void MakePercentiles();
33 TString fInrootfilename; // input root file
34 TString fOutrootfilename; // output root file
35 std::vector<TString> fHistnames; // histogram names
38 Float_t fMultLowBound;
40 void SaveHisto(TH1F *hist1, TH1F *hist2, TFile *outrootfile);
42 ClassDef(AliCentralityBy1D, 1)