SimG4CMS
ShowerLibraryProducer
plugins
HFWedgeSensitiveDetectorBuilder.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/ShowerLibraryProducer/interface/HFWedgeSD.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
HFWedgeSensitiveDetectorBuilder
:
public
SensitiveDetectorMakerBase
{
17
public
:
18
explicit
HFWedgeSensitiveDetectorBuilder
(
edm::ParameterSet
const
&
p
,
edm::ConsumesCollector
cc
) {}
19
20
void
beginRun
(
const
edm::EventSetup
& es)
final
{}
21
std::unique_ptr<SensitiveDetector>
make
(
const
std::string
& iname,
22
const
SensitiveDetectorCatalog
& clg,
23
const
edm::ParameterSet
&
p
,
24
const
SimTrackManager
* man,
25
SimActivityRegistry
& reg)
const
final
{
26
auto
sd
= std::make_unique<HFWedgeSD>(iname, clg, man);
27
SimActivityRegistryEnroller::enroll
(reg,
sd
.get());
28
return
sd
;
29
}
30
};
31
32
typedef
HFWedgeSD
HFWedgeSensitiveDetector
;
33
DEFINE_SENSITIVEDETECTORBUILDER
(
HFWedgeSensitiveDetectorBuilder
,
HFWedgeSensitiveDetector
);
SimTrackManager
Definition:
SimTrackManager.h:35
HFWedgeSD.h
ESGetToken.h
HFWedgeSD
Definition:
HFWedgeSD.h:20
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
HFWedgeSensitiveDetectorBuilder::make
std::unique_ptr< SensitiveDetector > make(const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry ®) const final
Definition:
HFWedgeSensitiveDetectorBuilder.cc:21
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
SensitiveDetectorMakerBase
Definition:
SensitiveDetectorMakerBase.h:28
HFWedgeSensitiveDetector
HFWedgeSD HFWedgeSensitiveDetector
Definition:
HFWedgeSensitiveDetectorBuilder.cc:32
ModuleDef.h
SimActivityRegistryEnroller::enroll
static void enroll(SimActivityRegistry &iReg, T *iObj)
Definition:
SimActivityRegistryEnroller.h:50
edm::EventSetup
Definition:
EventSetup.h:58
cc
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HFWedgeSensitiveDetectorBuilder::HFWedgeSensitiveDetectorBuilder
HFWedgeSensitiveDetectorBuilder(edm::ParameterSet const &p, edm::ConsumesCollector cc)
Definition:
HFWedgeSensitiveDetectorBuilder.cc:18
SimActivityRegistryEnroller.h
SimActivityRegistry
Definition:
SimActivityRegistry.h:39
DEFINE_SENSITIVEDETECTORBUILDER
#define DEFINE_SENSITIVEDETECTORBUILDER(type, name)
Definition:
SensitiveDetectorPluginFactory.h:21
HFWedgeSensitiveDetectorBuilder::beginRun
void beginRun(const edm::EventSetup &es) final
Definition:
HFWedgeSensitiveDetectorBuilder.cc:20
EventSetup.h
sd
double sd
Definition:
CascadeWrapper.h:113
ConsumesCollector.h
SensitiveDetectorPluginFactory.h
ParameterSet.h
HFWedgeSensitiveDetectorBuilder
Definition:
HFWedgeSensitiveDetectorBuilder.cc:16
SensitiveDetectorMakerBase.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Generated for CMSSW Reference Manual by
1.8.16