SimG4CMS
Forward
src
BscSD.cc
Go to the documentation of this file.
1
// File: BscSD.cc
3
// Date: 02.2006
4
// Description: Sensitive Detector class for Bsc
5
// Modifications:
7
8
#include "
SimG4CMS/Forward/interface/BscSD.h
"
9
#include "
SimG4CMS/Forward/interface/BscG4Hit.h
"
10
#include "
SimG4CMS/Forward/interface/BscG4HitCollection.h
"
11
#include "
SimG4CMS/Forward/interface/BscNumberingScheme.h
"
12
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
15
16
#include "G4Step.hh"
17
18
#include <iostream>
19
20
//-------------------------------------------------------------------
21
BscSD::BscSD
(
const
std::string
&
name
,
22
const
SensitiveDetectorCatalog
& clg,
23
edm::ParameterSet
const
&
p
,
24
const
SimTrackManager
* manager)
25
:
TimingSD
(
name
, clg, manager),
numberingScheme
(nullptr) {
26
//Parameters
27
edm::ParameterSet
m_p =
p
.getParameter<
edm::ParameterSet
>(
"BscSD"
);
28
int
verbn = m_p.
getUntrackedParameter
<
int
>(
"Verbosity"
);
29
30
SetVerboseLevel(verbn);
31
32
if
(
name
==
"BSCHits"
) {
33
if
(verbn > 0) {
34
edm::LogVerbatim
(
"BscSim"
) <<
"name = BSCHits and new BscNumberingSchem"
;
35
}
36
numberingScheme
=
new
BscNumberingScheme
();
37
}
else
{
38
edm::LogWarning
(
"BscSim"
) <<
"BscSD: ReadoutName "
<<
name
<<
" not supported"
;
39
}
40
}
41
42
BscSD::~BscSD
() {
delete
numberingScheme
; }
43
44
uint32_t
BscSD::setDetUnitId
(
const
G4Step* aStep) {
45
return
(
numberingScheme
==
nullptr
? 0 :
numberingScheme
->
getUnitID
(aStep));
46
}
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition:
MessageLogger.h:128
BscNumberingScheme::getUnitID
unsigned int getUnitID(const G4Step *aStep) const
Definition:
BscNumberingScheme.cc:34
MessageLogger.h
BscNumberingScheme
Definition:
BscNumberingScheme.h:13
BscSD.h
BscNumberingScheme.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
BscG4Hit.h
ParameterSet.h
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
BscG4HitCollection.h
BscSD::numberingScheme
BscNumberingScheme * numberingScheme
Definition:
BscSD.h:24
TimingSD
Definition:
TimingSD.h:29
numberingScheme
static TrackerG4SimHitNumberingScheme & numberingScheme(const GeometricDet &det)
Definition:
TkAccumulatingSensitiveDetector.cc:36
edm::ParameterSet
Definition:
ParameterSet.h:47
BscSD::~BscSD
~BscSD() override
Definition:
BscSD.cc:42
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition:
MessageLogger.h:122
BscSD::setDetUnitId
uint32_t setDetUnitId(const G4Step *) override
Definition:
BscSD.cc:44
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
SimTrackManager
Definition:
SimTrackManager.h:35
BscSD::BscSD
BscSD(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition:
BscSD.cc:21
Generated for CMSSW Reference Manual by
1.8.14