CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TkAccumulatingSensitiveDetectorBuilder Class Reference
Inheritance diagram for TkAccumulatingSensitiveDetectorBuilder:
SensitiveDetectorMakerBase

Public Member Functions

void beginRun (const edm::EventSetup &es) final
 
std::unique_ptr< SensitiveDetectormake (const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry &reg) const final
 
 TkAccumulatingSensitiveDetectorBuilder (edm::ParameterSet const &p, edm::ConsumesCollector cc)
 
- Public Member Functions inherited from SensitiveDetectorMakerBase
virtual std::unique_ptr< SensitiveDetectormake (const std::string &iname, const edm::EventSetup &es, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry &reg) const
 
const SensitiveDetectorMakerBaseoperator= (const SensitiveDetectorMakerBase &)=delete
 
 SensitiveDetectorMakerBase ()=default
 
 SensitiveDetectorMakerBase (const SensitiveDetectorMakerBase &)=delete
 
virtual ~SensitiveDetectorMakerBase ()
 

Private Attributes

const GeometricDetgeomdet_
 
const edm::ESGetToken< GeometricDet, IdealGeometryRecordgeomdetToken_
 

Detailed Description

Definition at line 19 of file TkAccumulatingSensitiveDetectorBuilder.cc.

Constructor & Destructor Documentation

◆ TkAccumulatingSensitiveDetectorBuilder()

TkAccumulatingSensitiveDetectorBuilder::TkAccumulatingSensitiveDetectorBuilder ( edm::ParameterSet const &  p,
edm::ConsumesCollector  cc 
)
inlineexplicit

Definition at line 21 of file TkAccumulatingSensitiveDetectorBuilder.cc.

22  : geomdet_{nullptr}, geomdetToken_{cc.esConsumes<edm::Transition::BeginRun>()} {}
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
const edm::ESGetToken< GeometricDet, IdealGeometryRecord > geomdetToken_

Member Function Documentation

◆ beginRun()

void TkAccumulatingSensitiveDetectorBuilder::beginRun ( const edm::EventSetup es)
inlinefinalvirtual

Reimplemented from SensitiveDetectorMakerBase.

Definition at line 24 of file TkAccumulatingSensitiveDetectorBuilder.cc.

References geomdet_, and geomdetToken_.

24 { geomdet_ = &es.getData(geomdetToken_); }
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
const edm::ESGetToken< GeometricDet, IdealGeometryRecord > geomdetToken_

◆ make()

std::unique_ptr<SensitiveDetector> TkAccumulatingSensitiveDetectorBuilder::make ( const std::string &  iname,
const SensitiveDetectorCatalog clg,
const edm::ParameterSet p,
const SimTrackManager man,
SimActivityRegistry reg 
) const
inlinefinalvirtual

Reimplemented from SensitiveDetectorMakerBase.

Definition at line 26 of file TkAccumulatingSensitiveDetectorBuilder.cc.

References SimActivityRegistryEnroller::enroll(), geomdet_, and AlCaHLTBitMon_ParallelJobs::p.

30  {
31  auto sd = std::make_unique<TkAccumulatingSensitiveDetector>(iname, geomdet_, clg, p, man);
33  return sd;
34  }
static void enroll(SimActivityRegistry &iReg, T *iObj)

Member Data Documentation

◆ geomdet_

const GeometricDet* TkAccumulatingSensitiveDetectorBuilder::geomdet_
private

Definition at line 37 of file TkAccumulatingSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

◆ geomdetToken_

const edm::ESGetToken<GeometricDet, IdealGeometryRecord> TkAccumulatingSensitiveDetectorBuilder::geomdetToken_
private

Definition at line 38 of file TkAccumulatingSensitiveDetectorBuilder.cc.

Referenced by beginRun().