CMS 3D CMS Logo

TkAccumulatingSensitiveDetectorBuilder.cc
Go to the documentation of this file.
1 // system include files
2 
3 // user include files
7 
10 
12 
18 
20 public:
22  : geomdet_{nullptr}, geomdetToken_{cc.esConsumes<edm::Transition::BeginRun>()} {}
23 
24  void beginRun(const edm::EventSetup& es) final { geomdet_ = &es.getData(geomdetToken_); }
25 
26  std::unique_ptr<SensitiveDetector> make(const std::string& iname,
27  const SensitiveDetectorCatalog& clg,
28  const edm::ParameterSet& p,
29  const SimTrackManager* man,
30  SimActivityRegistry& reg) const final {
31  auto sd = std::make_unique<TkAccumulatingSensitiveDetector>(iname, geomdet_, clg, p, man);
33  return sd;
34  }
35 
36 private:
39 };
40 
TkAccumulatingSensitiveDetectorBuilder::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: TkAccumulatingSensitiveDetectorBuilder.cc:26
SimTrackManager
Definition: SimTrackManager.h:35
TkAccumulatingSensitiveDetector
Definition: TkAccumulatingSensitiveDetector.h:31
ESGetToken.h
TkAccumulatingSensitiveDetector.h
GeometricDet
Definition: GeometricDet.h:31
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
SimActivityRegistryEnroller::enroll
static void enroll(SimActivityRegistry &iReg, T *iObj)
Definition: SimActivityRegistryEnroller.h:50
TkAccumulatingSensitiveDetectorBuilder
Definition: TkAccumulatingSensitiveDetectorBuilder.cc:19
IdealGeometryRecord.h
edm::EventSetup
Definition: EventSetup.h:58
GeometricDet.h
cc
edm::ESGetToken< GeometricDet, IdealGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TkAccumulatingSensitiveDetectorBuilder::TkAccumulatingSensitiveDetectorBuilder
TkAccumulatingSensitiveDetectorBuilder(edm::ParameterSet const &p, edm::ConsumesCollector cc)
Definition: TkAccumulatingSensitiveDetectorBuilder.cc:21
SimActivityRegistryEnroller.h
SimActivityRegistry
Definition: SimActivityRegistry.h:39
DEFINE_SENSITIVEDETECTORBUILDER
#define DEFINE_SENSITIVEDETECTORBUILDER(type, name)
Definition: SensitiveDetectorPluginFactory.h:21
edm::Transition::BeginRun
TkAccumulatingSensitiveDetectorBuilder::beginRun
void beginRun(const edm::EventSetup &es) final
Definition: TkAccumulatingSensitiveDetectorBuilder.cc:24
EventSetup.h
TkAccumulatingSensitiveDetectorBuilder::geomdet_
const GeometricDet * geomdet_
Definition: TkAccumulatingSensitiveDetectorBuilder.cc:37
TkAccumulatingSensitiveDetectorBuilder::geomdetToken_
const edm::ESGetToken< GeometricDet, IdealGeometryRecord > geomdetToken_
Definition: TkAccumulatingSensitiveDetectorBuilder.cc:38
sd
double sd
Definition: CascadeWrapper.h:113
ConsumesCollector.h
SensitiveDetectorPluginFactory.h
ParameterSet.h
SensitiveDetectorMakerBase.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45