]>
Commit | Line | Data |
---|---|---|
e6f3f2fe | 1 | #ifndef ALICENTRALITYBY1D_H |
2 | #define ALICENTRALITYBY1D_H | |
3 | ||
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 */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | // // | |
10 | // class to determine centrality percentiles from 1D distributions // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "TObject.h" | |
15 | ||
16 | class AliCentralityBy1D : public TObject { | |
17 | ||
18 | public: | |
19 | ||
20 | AliCentralityBy1D(); | |
21 | virtual ~AliCentralityBy1D(); | |
22 | ||
23 | void SetPercentileFile(TString outrootfilename); | |
24 | void SetPercentileCrossSection(Float_t percentXsec); | |
25 | void AddHisto(TString name); | |
26 | void MakePercentiles(TString infilename); | |
27 | ||
28 | private: | |
29 | ||
30 | TFile *inrootfile; | |
31 | ||
32 | TString outrootfilename; | |
33 | vector<TString> histnames; | |
34 | Float_t percentXsec; | |
35 | ||
36 | TH1D * MakePercentHisto(TString hdistributionName); | |
37 | void SaveHisto(TH1D *hist, TFile *outrootfile); | |
38 | ||
39 | ClassDef(AliCentralityBy1D, 1) | |
40 | }; | |
41 | #endif | |
42 | ||
43 |