Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Fluctuation1D.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 HALFLUCTUATION1D_H_
10#define HALFLUCTUATION1D_H_
11
12
13#include <TBrowser.h>
14#include <TH1D.h>
15#include <TH2D.h>
16#include <TObject.h>
17
18#include "Object.h"
24namespace Hal {
25 class Fluctuation1D : public Object {
26 Double_t fN;
27 Double_t fNError;
28 Double_t fM[7];
29 Double_t fMErr[7];
30 Double_t fOmega;
31 Double_t fSSigma;
32 Double_t fKappaSigma;
33 Double_t fOmegaError;
34 Double_t fSigmaError;
35 Double_t fKappaError;
36 Int_t fNSample;
37 TH1D* fHistogram;
38 Double_t GetRMS(Double_t* array, Int_t size) const;
39 void Calc(TH1D* h);
40 void CalcError(TH1D* h);
41 void GetFrom2D(TH1D* h, TString opt);
42 TH1D* CalcProfile(TH2D* h, Int_t opt = 0);
43
44 public:
53 Fluctuation1D(TH1D* h);
63 Fluctuation1D(TH2D* h, TString opt);
64 virtual TString HTMLExtract(Int_t no, TString dir = "") const;
69 virtual void Add(const Object* pack);
74 virtual Long64_t Merge(TCollection* collection);
79 Double_t GetKappaSigmaError() const { return fKappaError; }
84 Double_t GetMean() const { return fN; }
89 Double_t GetKappaSigma() const { return fKappaSigma; }
94 Double_t GetMeanError() const { return fNError; }
99 Double_t GetOmega() const { return fOmega; }
104 Double_t GetOmegaError() const { return fOmegaError; }
109 Double_t GetSSigmaError() const { return fSigmaError; }
114 Double_t GetSSigma() const { return fSSigma; }
120 Double_t GetCentralMoment(Int_t i) const;
126 Double_t GetCentralMomentError(Int_t i) const;
130 void Recalculate();
136 void SetSample(Int_t sample) { fNSample = sample; };
137 virtual void Draw(Option_t* opt);
138 virtual void Browse(TBrowser* b);
139 virtual void Print(Option_t* option = "") const;
144 TH1D* GetHistogram() const { return fHistogram; };
145 virtual ~Fluctuation1D();
146 ClassDef(Fluctuation1D, 1)
147 };
148} // namespace Hal
149
150#endif /* HALFLUCTUATION1D_H_ */
Double_t GetOmegaError() const
Double_t GetKappaSigma() const
virtual TString HTMLExtract(Int_t no, TString dir="") const
Double_t GetMeanError() const
void SetSample(Int_t sample)
virtual Long64_t Merge(TCollection *collection)
Double_t GetKappaSigmaError() const
Double_t GetSSigmaError() const
TH1D * GetHistogram() const
virtual void Add(const Object *pack)
Double_t GetSSigma() const
Double_t GetMean() const
Double_t GetCentralMomentError(Int_t i) const
Double_t GetCentralMoment(Int_t i) const
Double_t GetOmega() const