CMS 3D CMS Logo

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

Public Member Functions

void beginRun (const edm::EventSetup &es) final
 
 DreamSensitiveDetectorBuilder (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 cms::DDCompactViewcpvDD4Hep_
 
const DDCompactViewcpvDDD_
 
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecordcpvTokenDD4Hep_
 
edm::ESGetToken< DDCompactView, IdealGeometryRecordcpvTokenDDD_
 
bool fromDD4Hep_
 

Detailed Description

Definition at line 19 of file DreamSensitiveDetectorBuilder.cc.

Constructor & Destructor Documentation

◆ DreamSensitiveDetectorBuilder()

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

Definition at line 21 of file DreamSensitiveDetectorBuilder.cc.

21  {
22  fromDD4Hep_ = p.getParameter<bool>("g4GeometryDD4hepSource");
23  if (fromDD4Hep_)
25  else
27  }

References edm::BeginRun, cpvTokenDD4Hep_, cpvTokenDDD_, fromDD4Hep_, and AlCaHLTBitMon_ParallelJobs::p.

Member Function Documentation

◆ beginRun()

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

Reimplemented from SensitiveDetectorMakerBase.

Definition at line 29 of file DreamSensitiveDetectorBuilder.cc.

29  {
30  if (fromDD4Hep_) {
32  } else {
34  }
35  }

References cpvDD4Hep_, cpvDDD_, cpvTokenDD4Hep_, cpvTokenDDD_, and fromDD4Hep_.

◆ make()

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

41  {
42  auto sd = std::make_unique<DreamSD>(iname, cpvDDD_, cpvDD4Hep_, clg, p, man);
44  return sd;
45  }

References cpvDD4Hep_, cpvDDD_, SimActivityRegistryEnroller::enroll(), AlCaHLTBitMon_ParallelJobs::p, and sd.

Member Data Documentation

◆ cpvDD4Hep_

const cms::DDCompactView* DreamSensitiveDetectorBuilder::cpvDD4Hep_
private

Definition at line 52 of file DreamSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

◆ cpvDDD_

const DDCompactView* DreamSensitiveDetectorBuilder::cpvDDD_
private

Definition at line 51 of file DreamSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

◆ cpvTokenDD4Hep_

edm::ESGetToken<cms::DDCompactView, IdealGeometryRecord> DreamSensitiveDetectorBuilder::cpvTokenDD4Hep_
private

Definition at line 50 of file DreamSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and DreamSensitiveDetectorBuilder().

◆ cpvTokenDDD_

edm::ESGetToken<DDCompactView, IdealGeometryRecord> DreamSensitiveDetectorBuilder::cpvTokenDDD_
private

Definition at line 49 of file DreamSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and DreamSensitiveDetectorBuilder().

◆ fromDD4Hep_

bool DreamSensitiveDetectorBuilder::fromDD4Hep_
private

Definition at line 48 of file DreamSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and DreamSensitiveDetectorBuilder().

DreamSensitiveDetectorBuilder::cpvDD4Hep_
const cms::DDCompactView * cpvDD4Hep_
Definition: DreamSensitiveDetectorBuilder.cc:52
DreamSensitiveDetectorBuilder::cpvTokenDDD_
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
Definition: DreamSensitiveDetectorBuilder.cc:49
DreamSensitiveDetectorBuilder::fromDD4Hep_
bool fromDD4Hep_
Definition: DreamSensitiveDetectorBuilder.cc:48
DreamSensitiveDetectorBuilder::cpvTokenDD4Hep_
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4Hep_
Definition: DreamSensitiveDetectorBuilder.cc:50
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
SimActivityRegistryEnroller::enroll
static void enroll(SimActivityRegistry &iReg, T *iObj)
Definition: SimActivityRegistryEnroller.h:50
cc
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
DreamSensitiveDetectorBuilder::cpvDDD_
const DDCompactView * cpvDDD_
Definition: DreamSensitiveDetectorBuilder.cc:51
edm::Transition::BeginRun
sd
double sd
Definition: CascadeWrapper.h:113