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

Definition at line 19 of file HcalTB02SensitiveDetectorBuilder.cc.

21  edm::ESInputTag{"", "EcalHitsEB"})},
23  edm::ESInputTag{"", "HcalHits"})},
24  ebPar_{nullptr},
25  hcPar_{nullptr} {}

References edm::BeginRun.

Member Function Documentation

◆ beginRun()

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

Reimplemented from SensitiveDetectorMakerBase.

Definition at line 27 of file HcalTB02SensitiveDetectorBuilder.cc.

27  {
28  ebPar_ = &es.getData(ebParToken_);
29  hcPar_ = &es.getData(hcParToken_);
30  }

References ebPar_, ebParToken_, hcPar_, and hcParToken_.

◆ 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.

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  }

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

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().

edm::ESInputTag
Definition: ESInputTag.h:87
HcalTB02SensitiveDetectorBuilder::ebPar_
const HcalTB02Parameters * ebPar_
Definition: HcalTB02SensitiveDetectorBuilder.cc:46
HcalTB02SensitiveDetectorBuilder::hcParToken_
const edm::ESGetToken< HcalTB02Parameters, IdealGeometryRecord > hcParToken_
Definition: HcalTB02SensitiveDetectorBuilder.cc:45
HcalTB02SensitiveDetectorBuilder::ebParToken_
const edm::ESGetToken< HcalTB02Parameters, IdealGeometryRecord > ebParToken_
Definition: HcalTB02SensitiveDetectorBuilder.cc:44
HcalTB02Parameters
Definition: HcalTB02Parameters.h:9
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
SimActivityRegistryEnroller::enroll
static void enroll(SimActivityRegistry &iReg, T *iObj)
Definition: SimActivityRegistryEnroller.h:50
cc
HcalTB02SensitiveDetectorBuilder::hcPar_
const HcalTB02Parameters * hcPar_
Definition: HcalTB02SensitiveDetectorBuilder.cc:47
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
edm::Transition::BeginRun
sd
double sd
Definition: CascadeWrapper.h:113
IdealGeometryRecord
Definition: IdealGeometryRecord.h:25