FdAxisFinder.h
Go to the documentation of this file.
1 
9 #ifndef _FdAxisFinderOG_FdAxisFinder_h_
10 #define _FdAxisFinderOG_FdAxisFinder_h_
11 
12 #include <fwk/VModule.h>
13 #include <utl/Vector.h>
14 #include <vector>
15 
16 namespace fevt {
17  class Eye;
18  class Pixel;
19 }
20 
21 
22 
23 
24 
25 namespace FdAxisFinderOG {
26 
37  class FdAxisFinder :public fwk::VModule {
38 
39  public:
40 
44 
45  private:
46  void AxisFirstGuess(fevt::Eye& eye);
47  void FindAxis(fevt::Eye& eye);
48  void FindAxisLaser(fevt::Eye& eye);
49  void FillPoints(fevt::Eye& eye);
50  void RemoveOutliers(fevt::Eye& eye);
51  bool ReadmitPixel(fevt::Eye& eye);
52  bool RejectPixel(fevt::Eye& eye);
53  bool CheckForLasers(evt::Event& event);
54 
55  static void MinuitFitFunc(int& npar, double *gin, double& f,
56  double *par, int iflag);
57  static void MinuitFitFuncLaser(int& npar, double *gin, double& f,
58  double *par, int iflag);
59 
60  static utl::Vector fSDP;
61  static double fChi2;
62  static unsigned int fNDof;
63 
64  double fChi0;
65  double fChi0Error;
66  double fT0;
67  double fT0Error;
68  static double fRp; //static for laser reconstruction
69  double fRpError;
70  double fCovariance[3][3];
71 
72  double fT0First;
73  double fChi0First;
74  double fRpFirst;
75 
77  double fTolerance;
78 
80  double fSigmasLimit;
86 
88  bool fIsBlob;
89 
91  unsigned int fMinPixels;
92 
94  static int fDebuging;
95 
96  static fevt::Eye * fCurEye;
97  static bool fIsCeleste; //for laser reconstruction
98  static bool fIsRamiro; //for laser reconstruction
101 
102  REGISTER_MODULE("FdAxisFinderOG", FdAxisFinder);
103  };
104 
105 } // FdAxisFinderOG
106 
107 
108 #endif // _FdAxisFinderOG_FdAxisFinder_h_
109 
110 // Configure (x)emacs for this file ...
111 // Local Variables:
112 // mode:c++
113 // compile-command: "make -C .. -k"
114 // End:
bool ReadmitPixel(fevt::Eye &eye)
Fluorescence Detector Eye Event.
Definition: FEvent/Eye.h:29
the shower axis finder
Definition: FdAxisFinder.h:37
static unsigned int fNDof
Definition: FdAxisFinder.h:62
void AxisFirstGuess(fevt::Eye &eye)
const unsigned int npar
Definition: UnivRec.h:75
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
void FindAxis(fevt::Eye &eye)
static void MinuitFitFunc(int &npar, double *gin, double &f, double *par, int iflag)
REGISTER_MODULE("FdAxisFinderOG", FdAxisFinder)
void FillPoints(fevt::Eye &eye)
void RemoveOutliers(fevt::Eye &eye)
bool RejectPixel(fevt::Eye &eye)
static int fDebuging
switch for debuging
Definition: FdAxisFinder.h:94
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Definition: FdAxisFinder.cc:99
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Module interface.
Definition: VModule.h:53
static fevt::Eye * fCurEye
Definition: FdAxisFinder.h:96
bool CheckForLasers(evt::Event &event)
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
static utl::Vector fSDP
Definition: FdAxisFinder.h:60
static void MinuitFitFuncLaser(int &npar, double *gin, double &f, double *par, int iflag)
bool fIsBlob
True if the time extension is &lt; fMinimumTimeExtension;.
Definition: FdAxisFinder.h:88
Vector object.
Definition: Vector.h:30
unsigned int fMinPixels
Minimum number of pixels to continue with time fit.
Definition: FdAxisFinder.h:91
void FindAxisLaser(fevt::Eye &eye)
bool fMinuitFailed
flag failure of minuit
Definition: FdAxisFinder.h:100

, generated on Tue Sep 26 2023.