CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalTB06BeamDetectorBuilder.cc
Go to the documentation of this file.
1 // system include files
2 
3 // user include files
7 
11 
16 
18 public:
21 
22  void beginRun(const edm::EventSetup& es) final { hcPar_ = &es.getData(hcParToken_); }
23 
24  std::unique_ptr<SensitiveDetector> make(const std::string& iname,
25  const SensitiveDetectorCatalog& clg,
26  const edm::ParameterSet& p,
27  const SimTrackManager* man,
28  SimActivityRegistry& reg) const final {
29  auto sd = std::make_unique<HcalTB06BeamSD>(iname, hcPar_, clg, p, man);
31  return sd;
32  }
33 
34 private:
37 };
38 
HcalTB06BeamSD HcalTB06BeamDetector
void beginRun(const edm::EventSetup &es) final
const HcalTB06BeamParameters * hcPar_
static void enroll(SimActivityRegistry &iReg, T *iObj)
#define DEFINE_SENSITIVEDETECTORBUILDER(type, name)
double sd
const edm::ESGetToken< HcalTB06BeamParameters, IdealGeometryRecord > hcParToken_
std::unique_ptr< SensitiveDetector > make(const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry &reg) const final
HcalTB06BeamDetectorBuilder(edm::ParameterSet const &p, edm::ConsumesCollector cc)