Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
SimG4CMS
FP420
plugins
FP420SensitiveDetectorBuilder.cc
Go to the documentation of this file.
1
// system include files
2
#include <string>
3
4
// user include files
5
#include "
SimG4Core/SensitiveDetector/interface/SensitiveDetectorMakerBase.h
"
6
#include "
SimG4Core/Notification/interface/SimActivityRegistryEnroller.h
"
7
#include "
SimG4Core/SensitiveDetector/interface/SensitiveDetectorPluginFactory.h
"
8
9
#include "
SimG4CMS/FP420/interface/FP420SD.h
"
10
11
#include "
FWCore/Framework/interface/EventSetup.h
"
12
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
13
#include "
FWCore/Utilities/interface/ESGetToken.h
"
14
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
15
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
16
17
class
FP420SensitiveDetectorBuilder
:
public
SensitiveDetectorMakerBase
{
18
public
:
19
explicit
FP420SensitiveDetectorBuilder
(
const
edm::ParameterSet
&
p
,
edm::ConsumesCollector
cc) {}
20
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<FP420SD>(iname, clg,
p
, man);
27
SimActivityRegistryEnroller::enroll
(reg,
sd
.get());
28
return
sd
;
29
}
30
};
31
32
typedef
FP420SD
FP420SensitiveDetector
;
33
DEFINE_SENSITIVEDETECTORBUILDER
(
FP420SensitiveDetectorBuilder
,
FP420SensitiveDetector
);
FP420SensitiveDetectorBuilder::make
std::unique_ptr< SensitiveDetector > make(const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry ®) const final
Definition:
FP420SensitiveDetectorBuilder.cc:21
FP420SensitiveDetectorBuilder
Definition:
FP420SensitiveDetectorBuilder.cc:17
FP420SD.h
EventSetup.h
SensitiveDetectorMakerBase
Definition:
SensitiveDetectorMakerBase.h:28
FP420SensitiveDetectorBuilder::FP420SensitiveDetectorBuilder
FP420SensitiveDetectorBuilder(const edm::ParameterSet &p, edm::ConsumesCollector cc)
Definition:
FP420SensitiveDetectorBuilder.cc:19
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
ESGetToken.h
SensitiveDetectorPluginFactory.h
FP420SensitiveDetector
FP420SD FP420SensitiveDetector
Definition:
FP420SensitiveDetectorBuilder.cc:32
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
SimActivityRegistryEnroller.h
sd
double sd
Definition:
CascadeWrapper.h:113
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
FP420SD
Definition:
FP420SD.h:44
edm::ParameterSet
Definition:
ParameterSet.h:47
SimActivityRegistry
Definition:
SimActivityRegistry.h:39
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