Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
SimG4CMS
Forward
plugins
BCM1FSensitiveDetectorBuilder.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/Forward/interface/Bcm1fSD.h
"
9
10
#include "
FWCore/Framework/interface/EventSetup.h
"
11
#include "
FWCore/Framework/interface/ConsumesCollector.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
BCM1FSensitiveDetectorBuilder
:
public
SensitiveDetectorMakerBase
{
17
public
:
18
explicit
BCM1FSensitiveDetectorBuilder
(
edm::ParameterSet
const
&
p
,
edm::ConsumesCollector
cc) {}
19
20
void
beginRun
(
const
edm::EventSetup
& es)
final
{}
21
22
std::unique_ptr<SensitiveDetector>
make
(
const
std::string
& iname,
23
const
SensitiveDetectorCatalog
& clg,
24
const
edm::ParameterSet
&
p
,
25
const
SimTrackManager
* man,
26
SimActivityRegistry
& reg)
const
final
{
27
auto
sd
= std::make_unique<Bcm1fSD>(iname, clg,
p
, man);
28
SimActivityRegistryEnroller::enroll
(reg,
sd
.get());
29
return
sd
;
30
}
31
};
32
33
typedef
Bcm1fSD
BCM1FSensitiveDetector
;
34
DEFINE_SENSITIVEDETECTORBUILDER
(
BCM1FSensitiveDetectorBuilder
,
BCM1FSensitiveDetector
);
Bcm1fSD.h
EventSetup.h
SensitiveDetectorMakerBase
Definition:
SensitiveDetectorMakerBase.h:28
BCM1FSensitiveDetector
Bcm1fSD BCM1FSensitiveDetector
Definition:
BCM1FSensitiveDetectorBuilder.cc:33
Bcm1fSD
Definition:
Bcm1fSD.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
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
BCM1FSensitiveDetectorBuilder::beginRun
void beginRun(const edm::EventSetup &es) final
Definition:
BCM1FSensitiveDetectorBuilder.cc:20
ESGetToken.h
SensitiveDetectorPluginFactory.h
edm::EventSetup
Definition:
EventSetup.h:59
BCM1FSensitiveDetectorBuilder::BCM1FSensitiveDetectorBuilder
BCM1FSensitiveDetectorBuilder(edm::ParameterSet const &p, edm::ConsumesCollector cc)
Definition:
BCM1FSensitiveDetectorBuilder.cc:18
BCM1FSensitiveDetectorBuilder::make
std::unique_ptr< SensitiveDetector > make(const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry ®) const final
Definition:
BCM1FSensitiveDetectorBuilder.cc:22
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
SimActivityRegistryEnroller.h
sd
double sd
Definition:
CascadeWrapper.h:113
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::ParameterSet
Definition:
ParameterSet.h:47
SimActivityRegistry
Definition:
SimActivityRegistry.h:39
BCM1FSensitiveDetectorBuilder
Definition:
BCM1FSensitiveDetectorBuilder.cc:16
ModuleDef.h
ConsumesCollector.h
SensitiveDetectorMakerBase.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
SimTrackManager
Definition:
SimTrackManager.h:35
Generated for CMSSW Reference Manual by
1.8.5