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
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
< 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 HcalTB02ParametersebPar_
 
const edm::ESGetToken
< HcalTB02Parameters,
IdealGeometryRecord
ebParToken_
 
const HcalTB02ParametershcPar_
 
const edm::ESGetToken
< HcalTB02Parameters,
IdealGeometryRecord
hcParToken_
 

Detailed Description

Definition at line 17 of file HcalTB02SensitiveDetectorBuilder.cc.

Constructor & Destructor Documentation

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

Member Function Documentation

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_
bool getData(T &iHolder) const
Definition: EventSetup.h:128
const edm::ESGetToken< HcalTB02Parameters, IdealGeometryRecord > ebParToken_
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_, AlCaHLTBitMon_ParallelJobs::p, and sd.

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

Member Data Documentation

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

Definition at line 44 of file HcalTB02SensitiveDetectorBuilder.cc.

Referenced by beginRun().

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