CMS 3D CMS Logo

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

Public Member Functions

void beginRun (const edm::EventSetup &es) final
 
std::unique_ptr< SensitiveDetectormake (const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry &reg) const final
 
 MuonSensitiveDetectorBuilder (edm::ParameterSet const &p, edm::ConsumesCollector cc)
 
- 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

bool allMuonsPersistent_
 
bool dd4hep_
 
double ePersistentCutGeV_
 
const edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecordgeomConstantsToken_
 
const MuonGeometryConstantsmdc_
 
const MuonOffsetMapoffmap_
 
const edm::ESGetToken< MuonOffsetMap, IdealGeometryRecordoffsetToken_
 
bool printHits_
 

Detailed Description

Definition at line 32 of file MuonSensitiveDetectorBuilder.cc.

Constructor & Destructor Documentation

◆ MuonSensitiveDetectorBuilder()

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

Definition at line 34 of file MuonSensitiveDetectorBuilder.cc.

35  : offmap_{nullptr},
36  mdc_{nullptr},
const MuonGeometryConstants * mdc_
const edm::ESGetToken< MuonOffsetMap, IdealGeometryRecord > offsetToken_
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
const edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > geomConstantsToken_

Member Function Documentation

◆ beginRun()

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

Reimplemented from SensitiveDetectorMakerBase.

Definition at line 40 of file MuonSensitiveDetectorBuilder.cc.

References geomConstantsToken_, edm::ESHandleBase::isValid(), mdc_, offmap_, offsetToken_, and edm::ESHandle< T >::product().

40  {
42  offmap_ = (mom.isValid()) ? mom.product() : nullptr;
43  edm::LogVerbatim("MuonSim") << "Finds the offset map at " << offmap_;
45  }
Log< level::Info, true > LogVerbatim
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
const MuonGeometryConstants * mdc_
const edm::ESGetToken< MuonOffsetMap, IdealGeometryRecord > offsetToken_
const edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > geomConstantsToken_
T const * product() const
Definition: ESHandle.h:86
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
bool isValid() const
Definition: ESHandle.h:44

◆ make()

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

References SimActivityRegistryEnroller::enroll(), mdc_, offmap_, and AlCaHLTBitMon_ParallelJobs::p.

51  {
52  auto sd = std::make_unique<MuonSensitiveDetector>(iname, offmap_, *mdc_, clg, p, man);
54  return sd;
55  }
const MuonGeometryConstants * mdc_
static void enroll(SimActivityRegistry &iReg, T *iObj)

Member Data Documentation

◆ allMuonsPersistent_

bool MuonSensitiveDetectorBuilder::allMuonsPersistent_
private

Definition at line 63 of file MuonSensitiveDetectorBuilder.cc.

◆ dd4hep_

bool MuonSensitiveDetectorBuilder::dd4hep_
private

Definition at line 65 of file MuonSensitiveDetectorBuilder.cc.

◆ ePersistentCutGeV_

double MuonSensitiveDetectorBuilder::ePersistentCutGeV_
private

Definition at line 62 of file MuonSensitiveDetectorBuilder.cc.

◆ geomConstantsToken_

const edm::ESGetToken<MuonGeometryConstants, IdealGeometryRecord> MuonSensitiveDetectorBuilder::geomConstantsToken_
private

Definition at line 61 of file MuonSensitiveDetectorBuilder.cc.

Referenced by beginRun().

◆ mdc_

const MuonGeometryConstants* MuonSensitiveDetectorBuilder::mdc_
private

Definition at line 59 of file MuonSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

◆ offmap_

const MuonOffsetMap* MuonSensitiveDetectorBuilder::offmap_
private

Definition at line 58 of file MuonSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

◆ offsetToken_

const edm::ESGetToken<MuonOffsetMap, IdealGeometryRecord> MuonSensitiveDetectorBuilder::offsetToken_
private

Definition at line 60 of file MuonSensitiveDetectorBuilder.cc.

Referenced by beginRun().

◆ printHits_

bool MuonSensitiveDetectorBuilder::printHits_
private

Definition at line 64 of file MuonSensitiveDetectorBuilder.cc.