src
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) {
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
}
else
{
37
edm::LogWarning
(
"BscSim"
) <<
"BscSD: ReadoutName "
<<
name
<<
" not supported"
;
38
}
39
}
40
41
BscSD::~BscSD
() {}
42
43
uint32_t
BscSD::setDetUnitId
(
const
G4Step* aStep) {
return
BscNumberingScheme::getUnitID
(aStep); }
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition:
MessageLogger.h:134
MessageLogger.h
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
mergeVDriftHistosByStation.name
name
Definition:
mergeVDriftHistosByStation.py:78
SensitiveDetectorCatalog
Definition:
SensitiveDetectorCatalog.h:10
BscG4HitCollection.h
TimingSD
Definition:
TimingSD.h:29
edm::ParameterSet
Definition:
ParameterSet.h:48
BscSD::~BscSD
~BscSD() override
Definition:
BscSD.cc:41
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition:
MessageLogger.h:128
BscNumberingScheme::getUnitID
unsigned int getUnitID(const G4Step *aStep)
Definition:
BscNumberingScheme.cc:37
BscSD::setDetUnitId
uint32_t setDetUnitId(const G4Step *) override
Definition:
BscSD.cc:43
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
SimTrackManager
Definition:
SimTrackManager.h:28
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