ShowerMaker.h
Go to the documentation of this file.
1 #ifndef _ShowerMaker_ShowerMaker_h_
2 #define _ShowerMaker_ShowerMaker_h_
3 
4 #include <fwk/VModule.h>
5 
6 #include <string>
7 #include <fstream>
8 #include <map>
9 #include <TRandom2.h>
10 //For Debug onely
11 #include <TFile.h>
12 #include <TH2F.h>
13 #include <TH1F.h>
14 #include <TMarker.h>
15 #include <TGraph.h>
16 
17 
18 namespace ShowerMaker {
19 
20  class ShowerMaker : public fwk::VModule {
21  public:
22  ShowerMaker();
23  ~ShowerMaker();
27  private:
28  void Diskgen(TRandom2& rnd, double& x, double& y, double r);
29  std::string fHeraldFilePath;
30  std::ifstream* fHeraldStream;
31  std::map<std::string, unsigned int> fm_index;
32  TRandom2 frand2;
33  // For plotting and Debug
34  TFile* foutfile;
36  TGraph* fDetGraph;
37  TH2F* fH2_Skymap;
38  TH1F* fH_energy;
39  TH1F* fH_theta;
40  TH1F* fH_phi;
41 
42  REGISTER_MODULE("ShowerMaker", ShowerMaker);
43  };
44 
45 }
46 
47 
48 #endif
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Definition: ShowerMaker.cc:56
void Diskgen(TRandom2 &rnd, double &x, double &y, double r)
Definition: ShowerMaker.cc:230
std::string fHeraldFilePath
Definition: ShowerMaker.h:29
std::ifstream * fHeraldStream
Definition: ShowerMaker.h:30
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Definition: ShowerMaker.cc:219
REGISTER_MODULE("ShowerMaker", ShowerMaker)
std::map< std::string, unsigned int > fm_index
Definition: ShowerMaker.h:31
fwk::VModule::ResultFlag Run(evt::Event &theevent)
Run: invoked once per event.
Definition: ShowerMaker.cc:80

, generated on Tue Sep 26 2023.