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
}
BscSD::setDetUnitId
uint32_t setDetUnitId(const G4Step *) override
Definition:
BscSD.cc:44
SimTrackManager
Definition:
SimTrackManager.h:35
BscG4Hit.h
BscSD::BscSD
BscSD(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition:
BscSD.cc:21
BscSD.h
MessageLogger.h
BscG4HitCollection.h
BscNumberingScheme
Definition:
BscNumberingScheme.h:13
BscNumberingScheme.h
TimingSD
Definition:
TimingSD.h:29
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition:
MessageLogger.h:122
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
numberingScheme
static TrackerG4SimHitNumberingScheme & numberingScheme(const GeometricDet &det)
Definition:
TkAccumulatingSensitiveDetector.cc:36
BscNumberingScheme::getUnitID
unsigned int getUnitID(const G4Step *aStep) const
Definition:
BscNumberingScheme.cc:33
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
BscSD::numberingScheme
BscNumberingScheme * numberingScheme
Definition:
BscSD.h:24
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition:
MessageLogger.h:128
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
ParameterSet.h
BscSD::~BscSD
~BscSD() override
Definition:
BscSD.cc:42
Generated for CMSSW Reference Manual by
1.8.16