SimG4CMS
Forward
src
BHMSD.cc
Go to the documentation of this file.
1
#include "
SimG4CMS/Forward/interface/BHMSD.h
"
2
#include "
SimG4CMS/Forward/interface/BHMNumberingScheme.h
"
3
4
#include "
FWCore/Framework/interface/ESHandle.h
"
5
#include "
FWCore/Framework/interface/EventSetup.h
"
6
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
7
8
#include "G4Step.hh"
9
10
#include <iostream>
11
12
//#define debug
13
//-------------------------------------------------------------------
14
BHMSD::BHMSD
(
const
std::string
&
name
,
15
const
edm::EventSetup
& es,
16
const
SensitiveDetectorCatalog
& clg,
17
edm::ParameterSet
const
&
p
,
18
const
SimTrackManager
* manager)
19
:
TimingSD
(
name
, es, clg,
p
, manager),
numberingScheme
(nullptr) {
20
//Parameters
21
edm::ParameterSet
m_p =
p
.getParameter<
edm::ParameterSet
>(
"BHMSD"
);
22
int
verbn = m_p.
getUntrackedParameter
<
int
>(
"Verbosity"
);
23
24
SetVerboseLevel(verbn);
25
26
if
(verbn > 0) {
27
edm::LogInfo
(
"BHMSim"
) <<
"name = "
<<
name
<<
" and new BHMNumberingScheme"
;
28
}
29
numberingScheme
=
new
BHMNumberingScheme
();
30
}
31
32
BHMSD::~BHMSD
() {
delete
numberingScheme
; }
33
34
uint32_t
BHMSD::setDetUnitId
(
const
G4Step* aStep) {
35
return
(
numberingScheme
==
nullptr
? 0 :
numberingScheme
->
getUnitID
(aStep));
36
}
SimTrackManager
Definition:
SimTrackManager.h:35
MessageLogger.h
ESHandle.h
BHMNumberingScheme.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
BHMSD.h
TimingSD
Definition:
TimingSD.h:29
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:125
BHMSD::numberingScheme
BHMNumberingScheme * numberingScheme
Definition:
BHMSD.h:27
BHMNumberingScheme::getUnitID
unsigned int getUnitID(const G4Step *aStep) const
Definition:
BHMNumberingScheme.cc:26
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
numberingScheme
static TrackerG4SimHitNumberingScheme & numberingScheme(const GeometricDet &det)
Definition:
TkAccumulatingSensitiveDetector.cc:41
BHMSD::BHMSD
BHMSD(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition:
BHMSD.cc:14
edm::EventSetup
Definition:
EventSetup.h:57
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
EventSetup.h
BHMSD::~BHMSD
~BHMSD() override
Definition:
BHMSD.cc:32
BHMSD::setDetUnitId
uint32_t setDetUnitId(const G4Step *) override
Definition:
BHMSD.cc:34
BHMNumberingScheme
Definition:
BHMNumberingScheme.h:7
Generated for CMSSW Reference Manual by
1.8.16