CMS 3D CMS Logo

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

Public Member Functions

void beginRun (const edm::EventSetup &es) final
 
 FiberSensitiveDetectorBuilder (const edm::ParameterSet &p, edm::ConsumesCollector cc)
 
std::unique_ptr< SensitiveDetectormake (const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry &reg) const final
 
- 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 edm::ESGetToken< HcalDDDSimConstants, HcalSimNumberingRecordcdcToken_
 
const edm::ESGetToken< HcalSimulationConstants, HcalSimNumberingRecordcspsToken_
 
const HcalDDDSimConstantshcalDDCons_
 
const HcalSimulationConstantshcalSimCons_
 

Detailed Description

Definition at line 32 of file FiberSensitiveDetectorBuilder.cc.

Constructor & Destructor Documentation

◆ FiberSensitiveDetectorBuilder()

FiberSensitiveDetectorBuilder::FiberSensitiveDetectorBuilder ( const edm::ParameterSet p,
edm::ConsumesCollector  cc 
)
inlineexplicit

Definition at line 34 of file FiberSensitiveDetectorBuilder.cc.

References edm::BeginRun, and gpuPixelDoublets::cc.

35  : cspsToken_{cc.esConsumes<edm::Transition::BeginRun>()},
36  cdcToken_{cc.esConsumes<edm::Transition::BeginRun>()},
37  hcalSimCons_{nullptr},
38  hcalDDCons_{nullptr} {}
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
const edm::ESGetToken< HcalDDDSimConstants, HcalSimNumberingRecord > cdcToken_
const HcalSimulationConstants * hcalSimCons_
const edm::ESGetToken< HcalSimulationConstants, HcalSimNumberingRecord > cspsToken_

Member Function Documentation

◆ beginRun()

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

Reimplemented from SensitiveDetectorMakerBase.

Definition at line 40 of file FiberSensitiveDetectorBuilder.cc.

References cdcToken_, cspsToken_, hcalDDCons_, and hcalSimCons_.

40  {
43  }
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
const edm::ESGetToken< HcalDDDSimConstants, HcalSimNumberingRecord > cdcToken_
const HcalSimulationConstants * hcalSimCons_
const edm::ESGetToken< HcalSimulationConstants, HcalSimNumberingRecord > cspsToken_

◆ make()

std::unique_ptr<SensitiveDetector> FiberSensitiveDetectorBuilder::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 45 of file FiberSensitiveDetectorBuilder.cc.

References SimActivityRegistryEnroller::enroll(), hcalDDCons_, hcalSimCons_, and AlCaHLTBitMon_ParallelJobs::p.

49  {
50  auto sd = std::make_unique<FiberSD>(iname, hcalSimCons_, hcalDDCons_, clg, p, man);
52  return sd;
53  }
static void enroll(SimActivityRegistry &iReg, T *iObj)
const HcalSimulationConstants * hcalSimCons_

Member Data Documentation

◆ cdcToken_

const edm::ESGetToken<HcalDDDSimConstants, HcalSimNumberingRecord> FiberSensitiveDetectorBuilder::cdcToken_
private

Definition at line 57 of file FiberSensitiveDetectorBuilder.cc.

Referenced by beginRun().

◆ cspsToken_

const edm::ESGetToken<HcalSimulationConstants, HcalSimNumberingRecord> FiberSensitiveDetectorBuilder::cspsToken_
private

Definition at line 56 of file FiberSensitiveDetectorBuilder.cc.

Referenced by beginRun().

◆ hcalDDCons_

const HcalDDDSimConstants* FiberSensitiveDetectorBuilder::hcalDDCons_
private

Definition at line 59 of file FiberSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

◆ hcalSimCons_

const HcalSimulationConstants* FiberSensitiveDetectorBuilder::hcalSimCons_
private

Definition at line 58 of file FiberSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().