CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
< SensitiveDetector
make (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
< SensitiveDetector
make (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,
IdealGeometryRecord
hcParToken_
 

Detailed Description

Definition at line 17 of file HcalTB06BeamDetectorBuilder.cc.

Constructor & Destructor Documentation

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

Definition at line 19 of file HcalTB06BeamDetectorBuilder.cc.

References edm::BeginRun, edm::ConsumesCollector::esConsumes(), and hcPar_.

const HcalTB06BeamParameters * hcPar_
const edm::ESGetToken< HcalTB06BeamParameters, IdealGeometryRecord > hcParToken_

Member Function Documentation

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_); }
const HcalTB06BeamParameters * hcPar_
bool getData(T &iHolder) const
Definition: EventSetup.h:128
const edm::ESGetToken< HcalTB06BeamParameters, IdealGeometryRecord > hcParToken_
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_, AlCaHLTBitMon_ParallelJobs::p, and sd.

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)
double sd

Member Data Documentation

const HcalTB06BeamParameters* HcalTB06BeamDetectorBuilder::hcPar_
private

Definition at line 36 of file HcalTB06BeamDetectorBuilder.cc.

Referenced by beginRun(), HcalTB06BeamDetectorBuilder(), and make().

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

Definition at line 35 of file HcalTB06BeamDetectorBuilder.cc.

Referenced by beginRun().