MdGeometryFitter.h
Go to the documentation of this file.
1 
10 #ifndef _MdGeometryFitterAG_MdGeometryFitter_h_
11 #define _MdGeometryFitterAG_MdGeometryFitter_h_
12 
13 #include <string>
14 
15 #include <TVector3.h>
16 
17 #include <fwk/VModule.h>
18 #include <utl/Point.h>
19 #include <utl/TimeStamp.h>
20 
21 #include <mevt/MEvent.h>
22 #include <evt/ShowerMRecData.h>
23 
24 #include "GeometryFitter.h"
25 
26 
27 namespace MdGeometryFitterAG {
28 
41  class MdGeometryFitter : public fwk::VModule {
42 
43  public:
47 
48  private:
49 
50  enum InfoLevel {
51  eNone = 0,
52  eFinal = 1,
54  eObscure = 3,
55  eMinuit = 4
56  };
57 
58  // xml settings
63 
64  // Parametrization of the radius of curvature of the spherical shower front
65  // radius/m = par1 + par2 * (theta/rad)^2
67 
68  // Extract from the MD event of the data used in the fit (t50, t50 error and counter positions)
69  // The origins of position and time are set to the core position and time reconstructed by the SD respectively
70  void SetTimeData(const mevt::MEvent* mEvent, utl::Point sdCorePosition, utl::TimeStamp fgSdCoreTime, const TVector3& axis, GeometryFitter& fitter);
71 
72  // Fill the MD event with the reconstructed data
73  void FillRecShower(evt::Event& event, const GeometryFitter& geometryFitter, utl::Point sdCorePosition, utl::TimeStamp sdCoreTime, TVector3 sdAxis);
74 
75  // Set time residual of counters
76  void FillCounter(mevt::MEvent* mEvent, const GeometryFitter& fitter);
77 
78  REGISTER_MODULE("MdGeometryFitterAG", MdGeometryFitter);
79  };
80 
81 } // end namespace MdGeometryFitterAG
82 
83 
84 #endif
85 
86 // Configure (x)emacs for this file ...
87 // Local Variables:
88 // mode: c++
89 // compile-command: "make -C .. -k"
90 // End:
Point object.
Definition: Point.h:32
void SetTimeData(const mevt::MEvent *mEvent, utl::Point sdCorePosition, utl::TimeStamp fgSdCoreTime, const TVector3 &axis, GeometryFitter &fitter)
A TimeStamp holds GPS second and nanosecond for some event.
Definition: TimeStamp.h:110
void FillRecShower(evt::Event &event, const GeometryFitter &geometryFitter, utl::Point sdCorePosition, utl::TimeStamp sdCoreTime, TVector3 sdAxis)
Module interface.
Definition: VModule.h:53
void FillCounter(mevt::MEvent *mEvent, const GeometryFitter &fitter)
REGISTER_MODULE("MdGeometryFitterAG", MdGeometryFitter)
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
Reconstruction of the shower geometry.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Root of the Muon event hierarchy.
Definition: MEvent.h:25
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)

, generated on Tue Sep 26 2023.