SimG4CMS
HGCalTestBeam
plugins
HGCalTB16SensitiveDector01Builder.cc
Go to the documentation of this file.
1
// system include files
2
3
// user include files
4
#include "
SimG4Core/SensitiveDetector/interface/SensitiveDetectorMakerBase.h
"
5
#include "
SimG4Core/Notification/interface/SimActivityRegistryEnroller.h
"
6
#include "
SimG4Core/SensitiveDetector/interface/SensitiveDetectorPluginFactory.h
"
7
8
#include "
SimG4CMS/HGCalTestBeam/interface/HGCalTB16SD01.h
"
9
10
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
11
#include "
FWCore/Framework/interface/EventSetup.h
"
12
#include "
FWCore/Utilities/interface/ESGetToken.h
"
13
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
14
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
15
16
class
HGCalTB16SensitiveDetector01Builder
:
public
SensitiveDetectorMakerBase
{
17
public
:
18
explicit
HGCalTB16SensitiveDetector01Builder
(
edm::ParameterSet
const
&
p
,
edm::ConsumesCollector
cc) {}
19
std::unique_ptr<SensitiveDetector>
make
(
const
std::string
& iname,
20
const
SensitiveDetectorCatalog
& clg,
21
const
edm::ParameterSet
&
p
,
22
const
SimTrackManager
* man,
23
SimActivityRegistry
& reg)
const
final
{
24
auto
sd = std::make_unique<HGCalTB16SD01>(iname, clg,
p
, man);
25
SimActivityRegistryEnroller::enroll
(reg, sd.get());
26
return
sd;
27
}
28
};
29
30
typedef
HGCalTB16SD01
HGCalTB1601SensitiveDetector
;
31
DEFINE_SENSITIVEDETECTORBUILDER
(
HGCalTB16SensitiveDetector01Builder
,
HGCalTB1601SensitiveDetector
);
HGCalTB16SD01
Definition:
HGCalTB16SD01.h:15
EventSetup.h
SensitiveDetectorMakerBase
Definition:
SensitiveDetectorMakerBase.h:28
HGCalTB16SensitiveDetector01Builder
Definition:
HGCalTB16SensitiveDector01Builder.cc:16
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalTB16SensitiveDetector01Builder::make
std::unique_ptr< SensitiveDetector > make(const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry ®) const final
Definition:
HGCalTB16SensitiveDector01Builder.cc:19
HGCalTB16SensitiveDetector01Builder::HGCalTB16SensitiveDetector01Builder
HGCalTB16SensitiveDetector01Builder(edm::ParameterSet const &p, edm::ConsumesCollector cc)
Definition:
HGCalTB16SensitiveDector01Builder.cc:18
ParameterSet.h
SimActivityRegistryEnroller::enroll
static void enroll(SimActivityRegistry &iReg, T *iObj)
Definition:
SimActivityRegistryEnroller.h:50
DEFINE_SENSITIVEDETECTORBUILDER
#define DEFINE_SENSITIVEDETECTORBUILDER(type, name)
Definition:
SensitiveDetectorPluginFactory.h:21
HGCalTB16SD01.h
SensitiveDetectorPluginFactory.h
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
SimActivityRegistryEnroller.h
HGCalTB1601SensitiveDetector
HGCalTB16SD01 HGCalTB1601SensitiveDetector
Definition:
HGCalTB16SensitiveDector01Builder.cc:30
edm::ParameterSet
Definition:
ParameterSet.h:47
SimActivityRegistry
Definition:
SimActivityRegistry.h:39
ModuleDef.h
ConsumesCollector.h
ESGetToken.h
SensitiveDetectorMakerBase.h
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
SimTrackManager
Definition:
SimTrackManager.h:35
Generated for CMSSW Reference Manual by
1.8.14