CMS 3D CMS Logo

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

Public Member Functions

void beginRun (const edm::EventSetup &es) final
 
 HcalTB02SensitiveDetectorBuilder (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 HcalTB02ParametersebPar_
 
const edm::ESGetToken< HcalTB02Parameters, IdealGeometryRecordebParToken_
 
const HcalTB02ParametershcPar_
 
const edm::ESGetToken< HcalTB02Parameters, IdealGeometryRecordhcParToken_
 

Detailed Description

Definition at line 17 of file HcalTB02SensitiveDetectorBuilder.cc.

Constructor & Destructor Documentation

◆ HcalTB02SensitiveDetectorBuilder()

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

Member Function Documentation

◆ beginRun()

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

Reimplemented from SensitiveDetectorMakerBase.

Definition at line 27 of file HcalTB02SensitiveDetectorBuilder.cc.

References ebPar_, ebParToken_, hcPar_, and hcParToken_.

27  {
28  ebPar_ = &es.getData(ebParToken_);
29  hcPar_ = &es.getData(hcParToken_);
30  }
const edm::ESGetToken< HcalTB02Parameters, IdealGeometryRecord > hcParToken_
const edm::ESGetToken< HcalTB02Parameters, IdealGeometryRecord > ebParToken_
bool getData(T &iHolder) const
Definition: EventSetup.h:122

◆ make()

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

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

36  {
37  auto par = ((iname == "EcalHitsEB") ? ebPar_ : ((iname == "HcalHits") ? hcPar_ : nullptr));
38  auto sd = std::make_unique<HcalTB02SD>(iname, par, clg, p, man);
40  return sd;
41  }
static void enroll(SimActivityRegistry &iReg, T *iObj)

Member Data Documentation

◆ ebPar_

const HcalTB02Parameters* HcalTB02SensitiveDetectorBuilder::ebPar_
private

Definition at line 46 of file HcalTB02SensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

◆ ebParToken_

const edm::ESGetToken<HcalTB02Parameters, IdealGeometryRecord> HcalTB02SensitiveDetectorBuilder::ebParToken_
private

Definition at line 44 of file HcalTB02SensitiveDetectorBuilder.cc.

Referenced by beginRun().

◆ hcPar_

const HcalTB02Parameters* HcalTB02SensitiveDetectorBuilder::hcPar_
private

Definition at line 47 of file HcalTB02SensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

◆ hcParToken_

const edm::ESGetToken<HcalTB02Parameters, IdealGeometryRecord> HcalTB02SensitiveDetectorBuilder::hcParToken_
private

Definition at line 45 of file HcalTB02SensitiveDetectorBuilder.cc.

Referenced by beginRun().