simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
TSParamList.h
1 /*
2  * TSParamList.h
3  *
4  * Created on: Aug 21, 2014
5  * Author: Silvestro di Luise
6  * Silvestro.Di.Luise@cern.ch
7  *
8  */
9 
10 #ifndef TSPARAMLIST_H_
11 #define TSPARAMLIST_H_
12 
13 #include <TString.h>
14 
15 
16 #include <TH1F.h>
17 #include <TH2F.h>
18 #include <TVectorD.h>
19 #include <TVectorT.h>
20 
21 #include "TSParameter.h"
22 #include "TSArgList.h"
23 
24 
25 /*
26  *
27  */
28 
29 class TSParamList: public TSArgList {
30 
31 public:
32 
33  TSParamList();
34  TSParamList(TString name, TString title="");
39  TSParamList(const TSParamList &);
40 
41  virtual ~TSParamList();
42 
43  void Add(TSParameter *o);
44  void Add(TSParameter *o1,TSParameter *o2,TSParameter *o3=0);
45  void Add(TSParameter *o1,TSParameter *o2,TSParameter *o3,TSParameter *o4,TSParameter *o5=0);
46 
47  void Add(TSParameter& o1);
48  void Add(TSParameter& o1,TSParameter& o2);
49  void Add(TSParameter& o1,TSParameter& o2,TSParameter& o3);
50  void Add(TSParameter& o1,TSParameter& o2,TSParameter& o3,TSParameter& o4);
51 
52 
53 
54  void AddOnce(TSParameter *o);
55 
56  void Add(const TSParamList &);
57 
58  void AddOnce(const TSParamList &);
59 
60  void AddToValues(const TVectorD &);
61 
62  TSParameter* At(int) const;
63 
64  double ComputeErrorLinear() const;
65  double ComputeSum() const;
66 
67  void Copy(const TSArgList &);
68  TSParamList* Clone(TString name="") const;
69 
70  TSParameter* Find(TString) const;
71 
72  void CopyValues(const TSArgList &);
73  void CopyValuesAndErrors(const TSArgList &);
74 
75 
76  void Fix();
77 
78  TH1F* GetHistoOfValues(TString name="") const;
79  TH1F* GetHistoOfErrors(TString name="") const;
80  TH1F* GetHistoOfUpErrors(TString name="") const;
81  TH1F* GetHistoOfLowErrors(TString name="") const;
82  TH1F* GetHistoOfFracErrors(TString name="") const;
83  TH1F* GetHistoOfLowLimits(TString name="") const;
84  TH1F* GetHistoOfUpLimits(TString name="") const;
85 
86  TH1F *GetHisto(TString name="") const;
87  TH2F *GetHisto2D(TString name="") const;
88 
89  void Import(const TSArgList &);
90 
91  void Print() const;
92 
93  void Release();
94 
95  void SetValue(double);
96  void SetFixed(double);
97  void SetRange(double,double);
98  void SetStep(double);
99  void ForceToRange(bool);
100 
101 
102 
103 };
104 
105 
106 #endif /* TSPARAMLIST_H_ */
Definition: TSArgList.h:30
Definition: TSParamList.h:29
Definition: TSParameter.h:39