SimG4CMS
PPS
plugins
RomanPotSensitiveDetectorBuilder.cc
Go to the documentation of this file.
1
// system include files
2
#include <string>
3
#include <vector>
4
5
// user include files
6
#include "
SimG4Core/SensitiveDetector/interface/SensitiveDetectorMakerBase.h
"
7
#include "
SimG4Core/Notification/interface/SimActivityRegistryEnroller.h
"
8
#include "
SimG4Core/SensitiveDetector/interface/SensitiveDetectorPluginFactory.h
"
9
10
#include "
SimG4CMS/PPS/interface/TotemRPSD.h
"
11
12
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
13
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
14
#include "
FWCore/Utilities/interface/ESGetToken.h
"
15
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
16
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
17
18
class
RomanPotSensitiveDetectorBuilder
:
public
SensitiveDetectorMakerBase
{
19
public
:
20
explicit
RomanPotSensitiveDetectorBuilder
(
edm::ParameterSet
const
&
p
,
edm::ConsumesCollector
cc
) {}
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<TotemRPSD>(iname, clg,
p
, man);
27
SimActivityRegistryEnroller::enroll
(reg,
sd
.get());
28
return
sd
;
29
}
30
};
31
32
typedef
TotemRPSD
RomanPotSensitiveDetector
;
33
DEFINE_SENSITIVEDETECTORBUILDER
(
RomanPotSensitiveDetectorBuilder
,
RomanPotSensitiveDetector
);
SimTrackManager
Definition:
SimTrackManager.h:35
MessageLogger.h
TotemRPSD
Definition:
TotemRPSD.h:30
RomanPotSensitiveDetector
TotemRPSD RomanPotSensitiveDetector
Definition:
RomanPotSensitiveDetectorBuilder.cc:32
ESGetToken.h
RomanPotSensitiveDetectorBuilder
Definition:
RomanPotSensitiveDetectorBuilder.cc:18
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
SensitiveDetectorMakerBase
Definition:
SensitiveDetectorMakerBase.h:28
ModuleDef.h
SimActivityRegistryEnroller::enroll
static void enroll(SimActivityRegistry &iReg, T *iObj)
Definition:
SimActivityRegistryEnroller.h:50
cc
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
SimActivityRegistryEnroller.h
SimActivityRegistry
Definition:
SimActivityRegistry.h:39
DEFINE_SENSITIVEDETECTORBUILDER
#define DEFINE_SENSITIVEDETECTORBUILDER(type, name)
Definition:
SensitiveDetectorPluginFactory.h:21
TotemRPSD.h
sd
double sd
Definition:
CascadeWrapper.h:113
RomanPotSensitiveDetectorBuilder::RomanPotSensitiveDetectorBuilder
RomanPotSensitiveDetectorBuilder(edm::ParameterSet const &p, edm::ConsumesCollector cc)
Definition:
RomanPotSensitiveDetectorBuilder.cc:20
RomanPotSensitiveDetectorBuilder::make
std::unique_ptr< SensitiveDetector > make(const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry ®) const final
Definition:
RomanPotSensitiveDetectorBuilder.cc:21
ConsumesCollector.h
SensitiveDetectorPluginFactory.h
ParameterSet.h
SensitiveDetectorMakerBase.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Generated for CMSSW Reference Manual by
1.8.16