RdPolarGrid.h
Go to the documentation of this file.
1 
9 #ifndef _RdPolarGrid_h_
10 #define _RdPolarGrid_h_
11 
12 #include <evt/BeamMap.h>
13 #include <revt/REvent.h>
14 
15 #include <utl/Trace.h>
16 #include <utl/Point.h>
17 #include <utl/Vector.h>
18 #include <utl/CoordinateSystemPtr.h>
19 
20 #include <fwk/VModule.h>
21 
22 #include <string>
23 
24 namespace evt {
25  class Event;
26  class ShowerRRecData;
27 }
28 
29 namespace revt {
30  class Station;
31  class REvent;
32 }
33 
34 namespace RdPolarGrid {
46  class RdPolarGrid : public fwk::VModule {
47 
48  public:
49  // If you define a constructor, you MUST provide an implementation
50  // for it, otherwise the REGISTER_MODULE macro will not register
51  // your module. (Here, implementation is in RdPolarGrid.cc)
52  RdPolarGrid();
53  ~RdPolarGrid();
54 
58 
60 
61  protected:
64 
67 
70 
71  int iTh, iPhi, iR, iRho, iB; // Position counters
72  int nTh, nPhi, nR, nRho, nB; // Number of steps for each parameter
73  double minTh, maxTh, minPhi, maxPhi, minR, maxR, minRho, maxRho, minB, maxB; // Ranges for each parameter
74  std::string waveModel;
75 
76  //initialize counters
77  void start (evt::Event& event);
78  //scan in the defined range, return false when finishes
79  bool step();
80 
81  //set direction for RdAntenaChannelToStationConverter
82  void setRRecDirection(utl::Vector dir, evt::Event& event);
83  //ensure RRecShower exists, set core position
85 
86  // The REGISTER_MODULE macro makes the framework aware of your
87  // module. Put this macro at the very end of your class def.
88  REGISTER_MODULE("RdPolarGrid", RdPolarGrid);
89  };
90 
91 }
92 
93 
94 #endif
95 
96 // Local Variables:
97 // mode:c++
98 // compile-command: "make -k"
99 // End:
void start(evt::Event &event)
Definition: RdPolarGrid.cc:234
Point object.
Definition: Point.h:32
REGISTER_MODULE("RdPolarGrid", RdPolarGrid)
Interface class to access to the RD Reconstruction of a Shower.
utl::Vector skyVector(evt::Event &event)
Definition: RdPolarGrid.cc:265
evt::ShowerRRecData & RRecShower(evt::Event &event)
Definition: RdPolarGrid.cc:182
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
Definition: RdPolarGrid.cc:461
utl::CoordinateSystemPtr coreCS
Definition: RdPolarGrid.h:62
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
void setRRecDirection(utl::Vector dir, evt::Event &event)
Definition: RdPolarGrid.cc:449
Vector object.
Definition: Vector.h:30
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Definition: RdPolarGrid.cc:497
This module rasters the sky with a polar grid (theta and phi) within a defined range and with a desir...
Definition: XbArray.h:7
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Definition: RdPolarGrid.cc:58

, generated on Tue Sep 26 2023.