All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CRTDetSim.h
Go to the documentation of this file.
1 /**
2  * \brief LArSoft plugin for SBND CRT detector simulation parameters
3  *
4  * \author Andy Mastbaum
5  * \author Marco Del Tutto
6  */
7 
8  ///////////////////////////////////////////////////////////////////////////////
9 /// Class: CRTDetSim
10 /// Module Type: producer
11 /// File: CRTDetSim_module.cc
12 ///
13 /// Based on LArIAT TOFSimDigits.cc (Author: Lucas Mendes Santos)
14 ///
15 /// Author: mastbaum@uchicago.edu
16 ///////////////////////////////////////////////////////////////////////////////
17 
18 #include "art/Framework/Core/EDProducer.h"
19 #include "art/Framework/Principal/Event.h"
20 #include "fhiclcpp/ParameterSet.h"
21 
23 
25 
26 #include <string>
27 
28 namespace sbnd {
29 namespace crt {
30 
31 class CRTDetSim : public art::EDProducer {
32 public:
33  explicit CRTDetSim(fhicl::ParameterSet const & p);
34 
35  CRTDetSim(CRTDetSim const &) = delete;
36  CRTDetSim(CRTDetSim &&) = delete;
37  CRTDetSim& operator = (CRTDetSim const &) = delete;
38  CRTDetSim& operator = (CRTDetSim &&) = delete;
39  void reconfigure(fhicl::ParameterSet const & p) ;
40 
41  void produce(art::Event & e) override;
42  std::string fG4ModuleLabel;
43 
44 private:
45 
46  CLHEP::HepRandomEngine& fEngine; //!< Reference to art-managed random-number engine
47  double fG4RefTime; //!< Stores the G4 reference time
48  CRTDetSimAlg fDetAlg; //!< Instance of the CRT detector simulation algorithm
49 };
50 
51 } // namespace crt
52 } // namespace sbnd
pdgs p
Definition: selectors.fcl:22
std::string fG4ModuleLabel
Definition: CRTDetSim.h:42
CRTDetSim & operator=(CRTDetSim const &)=delete
CLHEP::HepRandomEngine & fEngine
Reference to art-managed random-number engine.
Definition: CRTDetSim.h:46
CRTDetSim(fhicl::ParameterSet const &p)
void reconfigure(fhicl::ParameterSet const &p)
do i e
Class def header for a class ElecClock.
stream1 can override from command line with o or output services user sbnd
CRTDetSimAlg fDetAlg
Instance of the CRT detector simulation algorithm.
Definition: CRTDetSim.h:48
process_name crt
double fG4RefTime
Stores the G4 reference time.
Definition: CRTDetSim.h:47