CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BHMSD.cc
Go to the documentation of this file.
3 
6 
7 #include "G4Step.hh"
8 
9 #include <iostream>
10 
11 //-------------------------------------------------------------------
13  const SensitiveDetectorCatalog& clg,
14  edm::ParameterSet const& p,
15  const SimTrackManager* manager)
16  : TimingSD(name, clg, manager), numberingScheme(nullptr) {
17  //Parameters
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  }
27 }
28 
30 
31 uint32_t BHMSD::setDetUnitId(const G4Step* aStep) {
32  return (numberingScheme == nullptr ? 0 : numberingScheme->getUnitID(aStep));
33 }
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
BHMNumberingScheme * numberingScheme
Definition: BHMSD.h:25
unsigned int getUnitID(const G4Step *aStep) const
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
BHMSD(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: BHMSD.cc:12
~BHMSD() override
Definition: BHMSD.cc:29
uint32_t setDetUnitId(const G4Step *) override
Definition: BHMSD.cc:31
static TrackerG4SimHitNumberingScheme & numberingScheme(const GeometricDet &det)