src
SimG4CMS
PPS
plugins
CTPPSDiamondSensitiveDetectorBuilder.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/PPSDiamondSD.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
CTPPSDiamondSensitiveDetectorBuilder
:
public
SensitiveDetectorMakerBase
{
19
public
:
20
explicit
CTPPSDiamondSensitiveDetectorBuilder
(
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<PPSDiamondSD>(iname, clg,
p
, man);
27
SimActivityRegistryEnroller::enroll
(reg, sd.get());
28
return
sd;
29
}
30
};
31
32
typedef
PPSDiamondSD
CTPPSDiamondSensitiveDetector
;
33
DEFINE_SENSITIVEDETECTORBUILDER
(
CTPPSDiamondSensitiveDetectorBuilder
,
CTPPSDiamondSensitiveDetector
);
CTPPSDiamondSensitiveDetector
PPSDiamondSD CTPPSDiamondSensitiveDetector
Definition:
CTPPSDiamondSensitiveDetectorBuilder.cc:32
MessageLogger.h
CTPPSDiamondSensitiveDetectorBuilder::make
std::unique_ptr< SensitiveDetector > make(const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry ®) const final
Definition:
CTPPSDiamondSensitiveDetectorBuilder.cc:21
gpuPixelDoublets::cc
uint32_t cc[maxCellsPerHit]
Definition:
gpuFishbone.h:49
PPSDiamondSD.h
SensitiveDetectorMakerBase
Definition:
SensitiveDetectorMakerBase.h:28
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
CTPPSDiamondSensitiveDetectorBuilder::CTPPSDiamondSensitiveDetectorBuilder
CTPPSDiamondSensitiveDetectorBuilder(edm::ParameterSet const &p, edm::ConsumesCollector cc)
Definition:
CTPPSDiamondSensitiveDetectorBuilder.cc:20
CTPPSDiamondSensitiveDetectorBuilder
Definition:
CTPPSDiamondSensitiveDetectorBuilder.cc:18
DEFINE_SENSITIVEDETECTORBUILDER
#define DEFINE_SENSITIVEDETECTORBUILDER(type, name)
Definition:
SensitiveDetectorPluginFactory.h:21
SensitiveDetectorPluginFactory.h
PPSDiamondSD
Definition:
PPSDiamondSD.h:29
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
SimActivityRegistryEnroller.h
edm::ParameterSet
Definition:
ParameterSet.h:48
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:28
Generated for CMSSW Reference Manual by
1.8.14