Builds ideal, real and misaligned geometries. More...
Classes | |
struct | GDTokens |
Public Member Functions | |
CTPPSGeometryESModule (const edm::ParameterSet &) | |
template<typename REC > | |
std::unique_ptr< DetGeomDesc > | produceGD (IdealGeometryRecord const &iIdealRec, std::optional< REC > const &iAlignRec, GDTokens< REC > const &iTokens, const char *name) |
~CTPPSGeometryESModule () override | |
Public Member Functions inherited from edm::ESProducer | |
ESProducer () | |
ESProducer (const ESProducer &)=delete | |
ESProxyIndex const * | getTokenIndices (unsigned int iIndex) const |
ESProducer const & | operator= (const ESProducer &)=delete |
template<typename Record > | |
void | updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) |
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) final |
~ESProducer ()(false) override | |
Public Member Functions inherited from edm::ESProxyFactoryProducer | |
ESProxyFactoryProducer () | |
ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete | |
const ESProxyFactoryProducer & | operator= (const ESProxyFactoryProducer &)=delete |
~ESProxyFactoryProducer () noexcept(false) override | |
Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
void | createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs) |
DataProxyProvider () | |
DataProxyProvider (const DataProxyProvider &)=delete | |
const ComponentDescription & | description () const |
void | fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const |
virtual void | initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs) |
bool | isUsingRecord (const EventSetupRecordKey &key) const |
KeyedProxies & | keyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0) |
const DataProxyProvider & | operator= (const DataProxyProvider &)=delete |
void | setAppendToDataLabel (const edm::ParameterSet &) |
void | setDescription (const ComponentDescription &iDescription) |
std::set< EventSetupRecordKey > | usingRecords () const |
virtual | ~DataProxyProvider () noexcept(false) |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Private Member Functions | |
template<typename REC > | |
std::unique_ptr< DetGeomDesc > | produceGD (IdealGeometryRecord const &, const std::optional< REC > &, GDTokens< REC > const &, const char *name) |
std::unique_ptr< DetGeomDesc > | produceIdealGD (const IdealGeometryRecord &) |
std::unique_ptr< DetGeomDesc > | produceMisalignedGD (const VeryForwardMisalignedGeometryRecord &) |
std::unique_ptr< CTPPSGeometry > | produceMisalignedTG (const VeryForwardMisalignedGeometryRecord &) |
std::unique_ptr< DetGeomDesc > | produceRealGD (const VeryForwardRealGeometryRecord &) |
std::unique_ptr< CTPPSGeometry > | produceRealTG (const VeryForwardRealGeometryRecord &) |
Static Private Member Functions | |
static void | applyAlignments (const DetGeomDesc &, const CTPPSRPAlignmentCorrectionsData *, DetGeomDesc *&) |
static void | buildDetGeomDesc (DDFilteredView *fv, DetGeomDesc *gd) |
Private Attributes | |
const edm::ESGetToken< DDCompactView, IdealGeometryRecord > | compactViewToken_ |
const edm::ESGetToken< DetGeomDesc, VeryForwardMisalignedGeometryRecord > | dgdMisToken_ |
const edm::ESGetToken< DetGeomDesc, VeryForwardRealGeometryRecord > | dgdRealToken_ |
const GDTokens< RPMisalignedAlignmentRecord > | gdMisTokens_ |
const GDTokens< RPRealAlignmentRecord > | gdRealTokens_ |
const unsigned int | verbosity_ |
Additional Inherited Members | |
Protected Types inherited from edm::ESProxyFactoryProducer | |
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
Protected Types inherited from edm::eventsetup::DataProxyProvider | |
using | KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy >>> |
Protected Member Functions inherited from edm::ESProducer | |
template<typename T > | |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const char *iLabel) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const std::string &iLabel) |
template<typename T , typename TDecorator > | |
auto | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={}) |
template<typename T , typename TReturn , typename TRecord > | |
auto | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={}) |
template<typename T , typename TReturn , typename TRecord , typename TArg > | |
ESConsumesCollectorT< TRecord > | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={}) |
Protected Member Functions inherited from edm::ESProxyFactoryProducer | |
template<class TFactory > | |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
KeyedProxiesVector | registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &key) |
Builds ideal, real and misaligned geometries.
First, it creates a tree of DetGeomDesc from DDCompView. For real and misaligned geometries, it applies alignment corrections (RPAlignmentCorrections) found in corresponding ...GeometryRecord.
Second, it creates CTPPSGeometry from DetGeoDesc tree.
Definition at line 52 of file CTPPSGeometryESModule.cc.
CTPPSGeometryESModule::CTPPSGeometryESModule | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 99 of file CTPPSGeometryESModule.cc.
References dgdMisToken_, dgdRealToken_, gdMisTokens_, gdRealTokens_, edm::ParameterSet::getParameter(), produceIdealGD(), produceMisalignedGD(), produceMisalignedTG(), produceRealGD(), produceRealTG(), edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineoverride |
Definition at line 55 of file CTPPSGeometryESModule.cc.
References fillDescriptions(), and produceIdealGD().
|
staticprivate |
Definition at line 121 of file CTPPSGeometryESModule.cc.
References DetGeomDesc::addComponent(), DetGeomDesc::applyAlignment(), edmScanValgrind::buffer, DetGeomDesc::components(), DDD_CTPPS_DIAMONDS_RP_NAME, DDD_CTPPS_DIAMONDS_SEGMENT_NAME, DDD_CTPPS_PIXELS_RP_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME, DDD_CTPPS_UFSD_SEGMENT_NAME, DDD_TOTEM_RP_RP_NAME, DDD_TOTEM_RP_SENSOR_NAME, DDD_TOTEM_TIMING_RP_NAME, DDD_TOTEM_TIMING_SENSOR_TMPL, DetGeomDesc::geographicalID(), CTPPSRPAlignmentCorrectionsData::getFullSensorCorrection(), CTPPSRPAlignmentCorrectionsData::getRPCorrection(), mps_fire::i, Skims_PA_cff::name, DetGeomDesc::name(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produceGD().
|
staticprivate |
Definition at line 177 of file CTPPSGeometryESModule.cc.
References DetGeomDesc::addComponent(), DDFilteredView::copyno(), DDFilteredView::copyNumbers(), DDD_CTPPS_DIAMONDS_RP_NAME, DDD_CTPPS_DIAMONDS_SEGMENT_NAME, DDD_CTPPS_PIXELS_RP_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME, DDD_CTPPS_UFSD_SEGMENT_NAME, DDD_TOTEM_RP_RP_NAME, DDD_TOTEM_RP_SENSOR_NAME, DDD_TOTEM_TIMING_RP_NAME, DDD_TOTEM_TIMING_SENSOR_TMPL, hgcalTestNeighbor_cfi::detector, DDFilteredView::firstChild(), DDFilteredView::logicalPart(), Skims_PA_cff::name, DDName::name(), DDBase< N, C >::name(), DDFilteredView::nextSibling(), DDFilteredView::parent(), DetGeomDesc::setGeographicalID(), relativeConstraints::station, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produceIdealGD().
|
static |
Definition at line 112 of file CTPPSGeometryESModule.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~CTPPSGeometryESModule().
|
private |
Referenced by produceMisalignedGD(), and produceRealGD().
std::unique_ptr<DetGeomDesc> CTPPSGeometryESModule::produceGD | ( | IdealGeometryRecord const & | iIdealRec, |
std::optional< REC > const & | iAlignRec, | ||
GDTokens< REC > const & | iTokens, | ||
const char * | name | ||
) |
Definition at line 322 of file CTPPSGeometryESModule.cc.
References CTPPSGeometryESModule::GDTokens< ALIGNMENT_REC >::alignmentToken_, applyAlignments(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), CTPPSRPAlignmentCorrectionsData::getRPMap(), CTPPSRPAlignmentCorrectionsData::getSensorMap(), CTPPSGeometryESModule::GDTokens< ALIGNMENT_REC >::idealGDToken_, edm::ESHandleBase::isValid(), edm::ESHandle< T >::product(), and verbosity_.
|
private |
Definition at line 303 of file CTPPSGeometryESModule.cc.
References buildDetGeomDesc(), compactViewToken_, ALCARECOTkAlBeamHalo_cff::filter, and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get().
Referenced by CTPPSGeometryESModule(), and ~CTPPSGeometryESModule().
|
private |
Definition at line 358 of file CTPPSGeometryESModule.cc.
References gdMisTokens_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), produceGD(), and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::tryToGetRecord().
Referenced by CTPPSGeometryESModule().
|
private |
Definition at line 376 of file CTPPSGeometryESModule.cc.
References DEFINE_FWK_EVENTSETUP_MODULE, dgdMisToken_, and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get().
Referenced by CTPPSGeometryESModule().
|
private |
Definition at line 349 of file CTPPSGeometryESModule.cc.
References gdRealTokens_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), produceGD(), and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::tryToGetRecord().
Referenced by CTPPSGeometryESModule().
|
private |
Definition at line 368 of file CTPPSGeometryESModule.cc.
References dgdRealToken_, and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get().
Referenced by CTPPSGeometryESModule().
|
private |
Definition at line 87 of file CTPPSGeometryESModule.cc.
Referenced by produceIdealGD().
|
private |
Definition at line 93 of file CTPPSGeometryESModule.cc.
Referenced by CTPPSGeometryESModule(), and produceMisalignedTG().
|
private |
Definition at line 92 of file CTPPSGeometryESModule.cc.
Referenced by CTPPSGeometryESModule(), and produceRealTG().
|
private |
Definition at line 90 of file CTPPSGeometryESModule.cc.
Referenced by CTPPSGeometryESModule(), and produceMisalignedGD().
|
private |
Definition at line 89 of file CTPPSGeometryESModule.cc.
Referenced by CTPPSGeometryESModule(), and produceRealGD().
|
private |
Definition at line 86 of file CTPPSGeometryESModule.cc.
Referenced by produceGD().