Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FluctuationMath.h
1/*
2 * FluctuationMath.h
3 *
4 * Created on: 31 sie 2017
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALFLUCTUATIONMATH_H_
10#define HALFLUCTUATIONMATH_H_
11
12#include <TH1D.h>
13#include <TObject.h>
14
15namespace Hal {
16 class FluctuationMath : public TObject {
17 Double_t fN;
18 Double_t fTollerance;
19 Double_t fNError;
20 Double_t fM[5];
21 Double_t fOmega;
22 Double_t fSSigma;
23 Double_t fKappaSigma;
24 Double_t fOmegaError;
25 Double_t fSigmaError;
26 Double_t fKappaError;
27 Int_t fNSample;
28 void GetVals(Double_t& min, Double_t& max, Double_t val, Double_t error);
29 void Calc(TH1D* h);
30 void CalcError(TH1D* h);
31 void CalcErrorMagic(TH1D* h);
32
33 public:
35 void SetHistoTH1D(TH1D* h, TString opt);
36 Double_t GetKappaSigmaError() const { return fKappaError; }
37 Double_t GetMean() const { return fN; }
38 Double_t GetKappaSigma() const { return fKappaSigma; }
39 Double_t GetMeanError() const { return fNError; }
40 Double_t GetOmega() const { return fOmega; }
41 Double_t GetOmegaError() const { return fOmegaError; }
42 Double_t GetSSigmaError() const { return fSigmaError; }
43 Double_t GetSSigma() const { return fSSigma; }
44 Double_t GetCentralMoment(Int_t i) const;
50 void SetTollerance(Double_t tollerance) { fTollerance = tollerance; };
51 virtual ~FluctuationMath();
52 void SetSSigma(Double_t sSigma) { fSSigma = sSigma; }
53 void SetSample(Int_t sample) { fNSample = sample; };
54 };
55} // namespace Hal
56#endif /* HALFLUCTUATIONMATH_H_ */
void SetTollerance(Double_t tollerance)