FdSimEventChecker.h
Go to the documentation of this file.
1 #ifndef _FdSimEventChecker_h
2 #define _FdSimEventChecker_h
3 
4 #include <fwk/VModule.h>
5 #include <TH2.h>
6 
7 namespace utl {
8  class RandomEngine;
9 }
10 
11 namespace fdet{
12  class Telescope;
13  class Eye;
14 }
15 
16 namespace evt {
17  class ShowerSimData;
18 }
19 
20 namespace FdSimEventCheckerOG {
21 
32  //#warning Rename module, to something like FdSimEventBuilder
33 
35 
36  public:
39 
43 
44  private :
45  double Rcutoff(const double lgE) const;
46  bool PCGFTriggerProbabilityCut(const double lgE, const double dist, const double angle) const;
47  bool PCGFTriggerProbabilityCutHECO(const double lgE, const double dist, const double angle) const;
48  void DumpDB() const;
49 
50  double InterpolatePCGFAcceptanceMap(const double lgE, const double dist) const;
51 
52  double CalculateMinViewingAngle(const fdet::Telescope& tel, const evt::ShowerSimData& shower) const;
53  double CalculateXmaxViewingAngle(const fdet::Eye& eye, const evt::ShowerSimData& shower) const;
54 
55  // options
57 
59  bool fGeometryCheck; // for normal Fd events, results from Sergio
60  bool fGeometryCheckCherenkoHEAT; // for HEAT Cherenkov, PCGF
61  bool fGeometryCheckCherenkoHECO; // for HECO Cherenkov, PCGF
62  TH2D* hMaxVA;
63  bool fFastSkip;
65  bool fUseCDAS;
66 
68 
70 
71  REGISTER_MODULE("FdSimEventCheckerOG", FdSimEventChecker);
72  };
73 
74 }
75 
76 #endif
double Rcutoff(const double lgE) const
double CalculateMinViewingAngle(const fdet::Telescope &tel, const evt::ShowerSimData &shower) const
bool PCGFTriggerProbabilityCutHECO(const double lgE, const double dist, const double angle) const
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
Detector description interface for Eye-related data.
Definition: FDetector/Eye.h:45
double InterpolatePCGFAcceptanceMap(const double lgE, const double dist) const
Interface class to access Shower Simulated parameters.
Definition: ShowerSimData.h:49
REGISTER_MODULE("FdSimEventCheckerOG", FdSimEventChecker)
Wraps the random number engine used to generate distributions.
Definition: RandomEngine.h:27
Module interface.
Definition: VModule.h:53
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Detector description interface for Telescope-related data.
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)
double CalculateXmaxViewingAngle(const fdet::Eye &eye, const evt::ShowerSimData &shower) const
bool PCGFTriggerProbabilityCut(const double lgE, const double dist, const double angle) const

, generated on Tue Sep 26 2023.