RdLDFMultiFitter.h
Go to the documentation of this file.
1 #ifndef _RdLDFMultiFitter_h_
2 #define _RdLDFMultiFitter_h_
3 
4 #include <fwk/VModule.h>
5 #include <string>
6 
7 namespace evt {
8  class Event;
9 }
10 
11 namespace revt {
12  class Station;
13 }
14 
15 namespace RdLDFMultiFitter {
16 
18  enum InfoLevel {
19  eNone = 0, eFinal = 1, eIntermediate = 2, eObscure = 3, eDebug = 4
20  };
21 
23  struct parameter {
25  unsigned int id;
27  std::string name;
29  double minval;
31  double maxval;
33  std::vector<double> startvalues;
36  };
37 
39  struct Model {
41  std::string name;
43  std::string formula;
45  std::string color;
47  std::vector<parameter> parameters;
48  };
49 
50 
59 
60  public:
62  virtual ~RdLDFMultiFitter();
63 
67 
69 
75  double ZenithCorrection(double zenith, double energy);
76  double p0(double);
77  double p1(double);
78 
79  private:
82 
84  double fParA200;
85  double fParA201;
86  double fParA210;
87  double fParA211;
88 
93 
95  std::vector<Model> fModels;
96 
97 
98 
99  REGISTER_MODULE("RdLDFMultiFitter", RdLDFMultiFitter);
100 
101  };
102 
103 }
104 
105 #endif
double fEnergyEstimatorDist
xml settings: parameters for energy pre-estimator
std::vector< parameter > parameters
Configuration of parameters (for fitting)
std::string name
Name (displayed in EventBrowser)
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
double minval
Lower bound (for fit)
std::string color
Color (LDF curve in EventBrowser)
Fits lateral distribution of amplitudes usign user-defined 1-D parametrizations. Supports several fit...
int zenithCorrection
Fix parameter using zenith information and energy pre-estimator (if 1)
std::string formula
Formula (in TF1 ROOT format)
unsigned int id
ID (corresponds to one in TF1)
int fInfoLevel
xml settings: info level (0 - 5)
double maxval
Upper bound (for fit)
REGISTER_MODULE("RdLDFMultiFitter", RdLDFMultiFitter)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
Configuration of fit parameters.
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Model (parametrization) used for fitting.
InfoLevel
Info level.
double fParA200
xml settings: parametrization fro zenith correction
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
Definition: XbArray.h:7
double ZenithCorrection(double zenith, double energy)
return value of fixed parameters corresponding to pre-estimated energy and zenith angle of arrival di...
std::string name
Name (displayed in EventBrowser)
std::vector< Model > fModels
xml settings: list of models
std::vector< double > startvalues
Starting fit values.

, generated on Tue Sep 26 2023.