CMS 3D CMS Logo

HcalTB06BeamDetectorBuilder.cc
Go to the documentation of this file.
1 // system include files
2 
3 // user include files
7 
10 #include "HcalTB06BeamSD.h"
11 
16 
18 public:
20  : hcParToken_{cc.esConsumes<edm::Transition::BeginRun>()}, hcPar_{nullptr} {}
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 
SimTrackManager
Definition: SimTrackManager.h:35
HcalTB06BeamDetector
HcalTB06BeamSD HcalTB06BeamDetector
Definition: HcalTB06BeamDetectorBuilder.cc:39
HcalTB06BeamDetectorBuilder::hcParToken_
const edm::ESGetToken< HcalTB06BeamParameters, IdealGeometryRecord > hcParToken_
Definition: HcalTB06BeamDetectorBuilder.cc:35
ESGetToken.h
HcalTB06BeamDetectorBuilder::beginRun
void beginRun(const edm::EventSetup &es) final
Definition: HcalTB06BeamDetectorBuilder.cc:22
HcalTB06BeamParameters
Definition: HcalTB06BeamParameters.h:9
HcalTB06BeamParameters.h
HcalTB06BeamSD.h
SensitiveDetectorCatalog
Definition: SensitiveDetectorCatalog.h:10
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
SensitiveDetectorMakerBase
Definition: SensitiveDetectorMakerBase.h:28
ModuleDef.h
HcalTB06BeamSD
Definition: HcalTB06BeamSD.h:20
HcalTB06BeamDetectorBuilder::HcalTB06BeamDetectorBuilder
HcalTB06BeamDetectorBuilder(edm::ParameterSet const &p, edm::ConsumesCollector cc)
Definition: HcalTB06BeamDetectorBuilder.cc:19
SimActivityRegistryEnroller::enroll
static void enroll(SimActivityRegistry &iReg, T *iObj)
Definition: SimActivityRegistryEnroller.h:50
IdealGeometryRecord.h
edm::EventSetup
Definition: EventSetup.h:58
cc
HcalTB06BeamDetectorBuilder::hcPar_
const HcalTB06BeamParameters * hcPar_
Definition: HcalTB06BeamDetectorBuilder.cc:36
edm::ESGetToken< HcalTB06BeamParameters, IdealGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalTB06BeamDetectorBuilder::make
std::unique_ptr< SensitiveDetector > make(const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry &reg) const final
Definition: HcalTB06BeamDetectorBuilder.cc:24
SimActivityRegistryEnroller.h
SimActivityRegistry
Definition: SimActivityRegistry.h:39
DEFINE_SENSITIVEDETECTORBUILDER
#define DEFINE_SENSITIVEDETECTORBUILDER(type, name)
Definition: SensitiveDetectorPluginFactory.h:21
edm::Transition::BeginRun
sd
double sd
Definition: CascadeWrapper.h:113
HcalTB06BeamDetectorBuilder
Definition: HcalTB06BeamDetectorBuilder.cc:17
ConsumesCollector.h
SensitiveDetectorPluginFactory.h
ParameterSet.h
SensitiveDetectorMakerBase.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45