CMS 3D CMS Logo

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

Public Member Functions

void beginRun (const edm::EventSetup &es) final
 
 HcalTB06BeamDetectorBuilder (edm::ParameterSet const &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 HcalTB06BeamParametershcPar_
 
const edm::ESGetToken< HcalTB06BeamParameters, IdealGeometryRecordhcParToken_
 

Detailed Description

Definition at line 17 of file HcalTB06BeamDetectorBuilder.cc.

Constructor & Destructor Documentation

◆ HcalTB06BeamDetectorBuilder()

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

Definition at line 19 of file HcalTB06BeamDetectorBuilder.cc.

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

20  : hcParToken_{cc.esConsumes<edm::Transition::BeginRun>()}, hcPar_{nullptr} {}
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
const HcalTB06BeamParameters * hcPar_
const edm::ESGetToken< HcalTB06BeamParameters, IdealGeometryRecord > hcParToken_

Member Function Documentation

◆ beginRun()

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

Reimplemented from SensitiveDetectorMakerBase.

Definition at line 22 of file HcalTB06BeamDetectorBuilder.cc.

References hcPar_, and hcParToken_.

22 { hcPar_ = &es.getData(hcParToken_); }
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
const HcalTB06BeamParameters * hcPar_
const edm::ESGetToken< HcalTB06BeamParameters, IdealGeometryRecord > hcParToken_

◆ make()

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

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

28  {
29  auto sd = std::make_unique<HcalTB06BeamSD>(iname, hcPar_, clg, p, man);
31  return sd;
32  }
const HcalTB06BeamParameters * hcPar_
static void enroll(SimActivityRegistry &iReg, T *iObj)

Member Data Documentation

◆ hcPar_

const HcalTB06BeamParameters* HcalTB06BeamDetectorBuilder::hcPar_
private

Definition at line 36 of file HcalTB06BeamDetectorBuilder.cc.

Referenced by beginRun(), and make().

◆ hcParToken_

const edm::ESGetToken<HcalTB06BeamParameters, IdealGeometryRecord> HcalTB06BeamDetectorBuilder::hcParToken_
private

Definition at line 35 of file HcalTB06BeamDetectorBuilder.cc.

Referenced by beginRun().