Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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/ParameterSet/interface/ParameterSet.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
7
#include "G4Step.hh"
8
9
#include <iostream>
10
11
//-------------------------------------------------------------------
12
BHMSD::BHMSD
(
const
std::string
&
name
,
13
const
SensitiveDetectorCatalog
& clg,
14
edm::ParameterSet
const
&
p
,
15
const
SimTrackManager
* manager)
16
:
TimingSD
(name, clg, manager),
numberingScheme
(nullptr) {
17
//Parameters
18
edm::ParameterSet
m_p = p.
getParameter
<
edm::ParameterSet
>(
"BHMSD"
);
19
int
verbn = m_p.
getUntrackedParameter
<
int
>(
"Verbosity"
);
20
21
SetVerboseLevel(verbn);
22
23
if
(verbn > 0) {
24
edm::LogVerbatim
(
"BHMSim"
) <<
"name = "
<< name <<
" and new BHMNumberingScheme"
;
25
}
26
numberingScheme
=
new
BHMNumberingScheme
();
27
}
28
29
BHMSD::~BHMSD
() {
delete
numberingScheme
; }
30
31
uint32_t
BHMSD::setDetUnitId
(
const
G4Step* aStep) {
32
return
(
numberingScheme
==
nullptr
? 0 :
numberingScheme
->
getUnitID
(aStep));
33
}
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition:
MessageLogger.h:128
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
MessageLogger.h
BHMSD::numberingScheme
BHMNumberingScheme * numberingScheme
Definition:
BHMSD.h:25
BHMNumberingScheme.h
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:78
BHMSD.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
BHMNumberingScheme::getUnitID
unsigned int getUnitID(const G4Step *aStep) const
Definition:
BHMNumberingScheme.cc:27
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
BHMSD::BHMSD
BHMSD(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition:
BHMSD.cc:12
BHMSD::~BHMSD
~BHMSD() override
Definition:
BHMSD.cc:29
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
TimingSD
Definition:
TimingSD.h:29
BHMSD::setDetUnitId
uint32_t setDetUnitId(const G4Step *) override
Definition:
BHMSD.cc:31
numberingScheme
static TrackerG4SimHitNumberingScheme & numberingScheme(const GeometricDet &det)
Definition:
TkAccumulatingSensitiveDetector.cc:36
edm::ParameterSet
Definition:
ParameterSet.h:47
BHMNumberingScheme
Definition:
BHMNumberingScheme.h:7
SimTrackManager
Definition:
SimTrackManager.h:35
Generated for CMSSW Reference Manual by
1.8.5