CMS 3D CMS Logo

BHMSD.cc
Go to the documentation of this file.
3 
7 
8 #include "G4Step.hh"
9 
10 #include <iostream>
11 
12 //#define debug
13 //-------------------------------------------------------------------
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  }
30 }
31 
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:58
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