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
MuonSensitiveDetectorBuilder Class Reference
Inheritance diagram for MuonSensitiveDetectorBuilder:
SensitiveDetectorMakerBase

Public Member Functions

void beginRun (const edm::EventSetup &es) final
 
std::unique_ptr
< SensitiveDetector
make (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
< 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

bool allMuonsPersistent_
 
bool dd4hep_
 
double ePersistentCutGeV_
 
const edm::ESGetToken
< MuonGeometryConstants,
IdealGeometryRecord
geomConstantsToken_
 
const MuonGeometryConstantsmdc_
 
const MuonOffsetMapoffmap_
 
const edm::ESGetToken
< MuonOffsetMap,
IdealGeometryRecord
offsetToken_
 
bool printHits_
 

Detailed Description

Definition at line 32 of file MuonSensitiveDetectorBuilder.cc.

Constructor & Destructor Documentation

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_
const edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > geomConstantsToken_

Member Function Documentation

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< class >::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
const MuonGeometryConstants * mdc_
const edm::ESGetToken< MuonOffsetMap, IdealGeometryRecord > offsetToken_
const edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > geomConstantsToken_
bool getData(T &iHolder) const
Definition: EventSetup.h:128
T const * product() const
Definition: ESHandle.h:86
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:157
bool isValid() const
Definition: ESHandle.h:44
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_, AlCaHLTBitMon_ParallelJobs::p, and sd.

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

Member Data Documentation

bool MuonSensitiveDetectorBuilder::allMuonsPersistent_
private

Definition at line 63 of file MuonSensitiveDetectorBuilder.cc.

bool MuonSensitiveDetectorBuilder::dd4hep_
private

Definition at line 65 of file MuonSensitiveDetectorBuilder.cc.

double MuonSensitiveDetectorBuilder::ePersistentCutGeV_
private

Definition at line 62 of file MuonSensitiveDetectorBuilder.cc.

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

Definition at line 61 of file MuonSensitiveDetectorBuilder.cc.

Referenced by beginRun().

const MuonGeometryConstants* MuonSensitiveDetectorBuilder::mdc_
private

Definition at line 59 of file MuonSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

const MuonOffsetMap* MuonSensitiveDetectorBuilder::offmap_
private

Definition at line 58 of file MuonSensitiveDetectorBuilder.cc.

Referenced by beginRun(), and make().

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

Definition at line 60 of file MuonSensitiveDetectorBuilder.cc.

Referenced by beginRun().

bool MuonSensitiveDetectorBuilder::printHits_
private

Definition at line 64 of file MuonSensitiveDetectorBuilder.cc.