CMS 3D CMS Logo

SensitiveDetectorMaker.h
Go to the documentation of this file.
1 #ifndef SimG4Core_SensitiveDetector_SensitiveDetectorMaker_h
2 #define SimG4Core_SensitiveDetector_SensitiveDetectorMaker_h
3 // -*- C++ -*-
4 //
5 // Package: SensitiveDetector
6 // Class : SensitiveDetectorMaker
7 //
8 //
9 // Original Author:
10 // Created: Mon Nov 14 11:56:05 EST 2005
11 //
12 
13 // user include files
17 
19 
20 // forward declarations
21 class SimTrackManager;
24 
25 namespace edm {
26  class EventSetup;
27  class ParameterSet;
28 } // namespace edm
29 
30 template <class T>
32 public:
33  explicit SensitiveDetectorMaker(){};
34 
35  // ---------- const member functions ---------------------
37  const edm::EventSetup& es,
38  const SensitiveDetectorCatalog& clg,
39  const edm::ParameterSet& p,
40  const SimTrackManager* man,
41  SimActivityRegistry& reg) const override {
42  T* sd = new T(iname, es, clg, p, man);
44  return static_cast<SensitiveDetector*>(sd);
45  };
46 
47 private:
50 };
51 
52 #endif
SimTrackManager
Definition: SimTrackManager.h:35
MessageLogger.h
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
SensitiveDetector
Definition: SensitiveDetector.h:25
SensitiveDetectorMaker::make
SensitiveDetector * make(const std::string &iname, const edm::EventSetup &es, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry &reg) const override
Definition: SensitiveDetectorMaker.h:36
SensitiveDetectorCatalog
Definition: SensitiveDetectorCatalog.h:10
SensitiveDetectorMaker
Definition: SensitiveDetectorMaker.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
SensitiveDetectorMakerBase
Definition: SensitiveDetectorMakerBase.h:27
SimActivityRegistryEnroller::enroll
static void enroll(SimActivityRegistry &iReg, T *iObj)
Definition: SimActivityRegistryEnroller.h:82
edm::EventSetup
Definition: EventSetup.h:57
SimActivityRegistryEnroller.h
SimActivityRegistry
Definition: SimActivityRegistry.h:43
SensitiveDetector.h
T
long double T
Definition: Basic3DVectorLD.h:48
SensitiveDetectorMaker::operator=
const SensitiveDetectorMaker & operator=(const SensitiveDetectorMaker &)=delete
sd
double sd
Definition: CascadeWrapper.h:113
EventSetup
SensitiveDetectorMakerBase.h
SensitiveDetectorMaker::SensitiveDetectorMaker
SensitiveDetectorMaker()
Definition: SensitiveDetectorMaker.h:33