Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFitParamsSetup.h
1/*
2 * CorrFitDatabase.h
3 *
4 * Created on: 22 sty 2020
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALCORRFITPARAMSSETUP_H_
10#define HALCORRFITPARAMSSETUP_H_
11
12#include "Array.h"
13
14#include <Rtypes.h>
15#include <RtypesCore.h>
16#include <TString.h>
17
18namespace Hal {
24 class CorrFitParamsSetup : public TObject {
25 Int_t fSize;
28 Array_1<Int_t> fNpoints;
29 TString* fNames; //[fSize]
30 public:
31 CorrFitParamsSetup(Int_t params = 1);
32 CorrFitParamsSetup(TString xmlFile);
34 CorrFitParamsSetup& operator=(const CorrFitParamsSetup& rhs);
35 virtual void Print(Option_t* opt = "") const;
36 void SetParameter(Int_t par_id, Double_t min, Double_t max, Int_t points, TString name);
37 static Bool_t TestMapFile(Int_t jobId);
38 Int_t GetNJobs() const;
39 Int_t GetNParams() const { return fSize; }
40 Int_t GetNSteps(Int_t par_id) const { return fNpoints.Get(par_id) - 1; };
41 Int_t GetNPoints(Int_t par_id) const { return fNpoints.Get(par_id); };
42 Int_t GetParId(TString name) const;
43 Double_t GetMin(Int_t par_id) const { return fMin.Get(par_id); };
44 Double_t GetMax(Int_t par_id) const { return fMax.Get(par_id); };
45 Double_t GetStepSize(Int_t par_id) const;
46 std::vector<int> GetDimensions() const;
47 TString GetParName(Int_t par_id) const { return fNames[par_id]; };
48 virtual ~CorrFitParamsSetup() { delete[] fNames; }
49 ClassDef(CorrFitParamsSetup, 2)
50 };
51} // namespace Hal
52
53
54#endif /* HALCORRFITPARAMSSETUP_H_ \
55 */
T Get(Int_t i) const
Definition Array.h:97