TelescopeSimulatorKG/TelescopeSimulator.h
Go to the documentation of this file.
1 
9 #ifndef _TelescopeSimulatorKG_TelescopeSimulator_h_
10 #define _TelescopeSimulatorKG_TelescopeSimulator_h_
11 
12 
13 #include <fwk/VModule.h>
14 
15 #include <utl/CoordinateSystemPtr.h>
16 #include <utl/ShadowPtr.h>
17 #include <utl/Photon.h>
18 
19 #include <map>
20 #include <list>
21 #include <vector>
22 #include <fstream>
23 
24 
25 namespace utl {
26  class Point;
27  class Vector;
28  class RandomEngine;
29 }
30 
31 namespace fdet {
32  class Telescope;
33 }
34 
35 namespace evt {
36  class Event;
37 }
38 
39 namespace TelescopeSimulatorKG {
40 
52 
53  public:
54  typedef std::list<std::pair<utl::Photon, int> > PhotonList;
55  typedef PhotonList::iterator PhotonListIterator;
56  typedef PhotonList::const_iterator PhotonListConstIterator;
57 
59 
63 
64  void SetSpotPhotonList(PhotonList& phList);
65 
69 
71  void SetStoreLightComponentsAtPixels(const bool store)
73 
75  int GetVerbosity() { return fVerbosityLevel; }
77  void SetVerbosity(const int verbosity) { fVerbosityLevel = verbosity; }
78 
79  private:
81 
82  // general options
86 
87  // drawing options
88  bool fDraw;
90 
91  // shodow photons output file
92  std::string fShadowDataOutName;
93 
94  // spot shape mode
95  bool fSpotMode;
97 
99 
101 
102  // drum simulations
103  bool fDrumMode;
105 
106  // -- shadow factor calculation --
107  std::map<int, unsigned int> fNHit;
108  std::map<int, unsigned int> fN_1;
109  std::map<int, unsigned int> fN_2;
110  std::map<int, unsigned int> fN_3;
111  std::map<int, unsigned int> fN_4;
112  std::map<int, unsigned int> fN_5;
113  std::map<int, unsigned int> fN_6;
114 
115  // --------------------------
116  // Wed Jul 26 10:51:33 CEST 2006
117  // this is for SG spot tables !!!!!!!!!
118  static void TransformToLocalCameraCoordinates(const double laz, const double lze, double& caz, double& cze);
119  // ------------------------------------------
120 
121  REGISTER_MODULE("TelescopeSimulatorKG", TelescopeSimulator);
122 
123  };
124 
125 }
126 
127 
128 #endif
129 
130 // Configure (x)emacs for this file ...
131 // Local Variables:
132 // mode: c++
133 // compile-command: "make -C .. -k"
134 // End:
bool StoreLightComponentsAtPixels()
Returns whether pixel traces are stored for individual light components.
std::list< std::pair< utl::Photon, int > > PhotonList
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Wraps the random number engine used to generate distributions.
Definition: RandomEngine.h:27
int GetVerbosity()
Returns the current verbosity level.
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
void SetVerbosity(const int verbosity)
Sets the verbosity level.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
REGISTER_MODULE("TelescopeSimulatorKG", TelescopeSimulator)
static void TransformToLocalCameraCoordinates(const double laz, const double lze, double &caz, double &cze)
void SetStoreLightComponentsAtPixels(const bool store)
Sets whether pixel traces are stored for individual light components.

, generated on Tue Sep 26 2023.