FdEnergyFinder.h
Go to the documentation of this file.
1 
9 #ifndef _FdEnergyFinderOG_FdEnergyFinder_h_
10 #define _FdEnergyFinderOG_FdEnergyFinder_h_
11 
12 #include <fwk/VModule.h>
13 #include <evt/GaisserHillas4Parameter.h>
14 #include <vector>
15 
16 
17 namespace utl{
18  class TabulatedFunctionErrors;
19 }
20 
21 
22 namespace FdEnergyFinderOG {
23 
34  class FdEnergyFinder :public fwk::VModule {
35 
36  public:
37 
41 
42  private:
43 
44  void FitProfile();
45 
46  void FindEmEnergy();
47 
48  void FindEmEnergyError();
49 
50  void FindTotalEnergy();
51 
52  // void FindTotalEnergy(double Eem);
53 
54  // double PolinomialInterpolation(double xa[], double ya[],
55  // int n, double exp);
56 
57  static void MinuitFitFunction(int& npar, double *gin, double& f,
58  double *par, int iflag);
59 
61 
63 
65 
66  double fNmaxGH;
67  double fXmaxGH;
68  double fX0GH;
69  double fEemGH;
70  double fEtotalGH;
71  double fNmaxGH_error;
72  double fXmaxGH_error;
73  double fX0GH_error;
74  double fEemGH_error;
75  static double fChisqGH;
76  static double fNdof;
77  double fEnergyCutoff;
78  unsigned int fFixX0;
79  unsigned int fComposition;
80  unsigned int fUnseenEnergyModel;
81 
82 
83  REGISTER_MODULE("FdEnergyFinderOG",FdEnergyFinder);
84 
85  }; // FdEnergyFinder
86 
87 
88 } // FdEnergyFinderOG
89 
90 
91 #endif // _FdEnergyFinderOG_FdEnergyFinder_h_
92 
93 // Configure (x)emacs for this file ...
94 // Local Variables:
95 // mode:c++
96 // compile-command: "make -C .. -k"
97 // End:
A simple module to estimate energy from the longitudinal profile.
static void MinuitFitFunction(int &npar, double *gin, double &f, double *par, int iflag)
static const utl::TabulatedFunctionErrors * fLongProfile
const unsigned int npar
Definition: UnivRec.h:75
evt::GaisserHillas4Parameter * fGHParameters
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
Module interface.
Definition: VModule.h:53
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Gaisser Hillas with 4 parameters.
REGISTER_MODULE("FdEnergyFinderOG", FdEnergyFinder)

, generated on Tue Sep 26 2023.