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 SensitiveDetectorCatalog & clg,
16  edm::ParameterSet const & p, const SimTrackManager* manager) :
17  TimingSD(name, cpv, clg, p, manager), numberingScheme(nullptr) {
18 
19  //Parameters
21  int verbn = m_p.getUntrackedParameter<int>("Verbosity");
22 
23  SetVerboseLevel(verbn);
24 
25  if (verbn > 0) {
26  edm::LogInfo("BHMSim") << "name = " <<name <<" and new BHMNumberingScheme";
27  }
29 }
30 
32  delete numberingScheme;
33 }
34 
35 uint32_t BHMSD::setDetUnitId(const G4Step * aStep) {
36  return (numberingScheme == nullptr ? 0 : numberingScheme->getUnitID(aStep));
37 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
BHMSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: BHMSD.cc:14
#define nullptr
BHMNumberingScheme * numberingScheme
Definition: BHMSD.h:28
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
static TrackerG4SimHitNumberingScheme & numberingScheme(const DDCompactView &cpv, const GeometricDet &det)
unsigned int getUnitID(const G4Step *aStep) const
~BHMSD() override
Definition: BHMSD.cc:31
uint32_t setDetUnitId(const G4Step *) override
Definition: BHMSD.cc:35