Builds ideal, real and misaligned geometries. More...
Classes | |
struct | GDTokens |
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 | |
Public Types inherited from edm::eventsetup::DataProxyProvider | |
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > | KeyedProxies |
typedef std::vector< EventSetupRecordKey > | Keys |
typedef std::map< EventSetupRecordKey, KeyedProxies > | RecordProxies |
Protected Member Functions inherited from edm::ESProducer | |
ESProducer (const ESProducer &)=delete | |
ESProducer const & | operator= (const ESProducer &)=delete |
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 eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override |
override DataProxyProvider method More... | |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
deletes all the Proxies in aStream More... | |
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &) |
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 100 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 56 of file CTPPSGeometryESModule.cc.
References fillDescriptions(), and produceIdealGD().
|
staticprivate |
Definition at line 124 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, dataset::name, DetGeomDesc::name(), year_2016_postTS2_cff::rpId, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produceGD().
|
staticprivate |
Definition at line 186 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, gamEcalExtractorBlocks_cff::detector, DDFilteredView::firstChild(), DDFilteredView::logicalPart(), DDName::name(), dataset::name, DDBase< N, C >::name(), DDFilteredView::nextSibling(), DDFilteredView::parent(), DetGeomDesc::setGeographicalID(), relativeConstraints::station, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produceIdealGD().
|
static |
Definition at line 113 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 335 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 314 of file CTPPSGeometryESModule.cc.
References buildDetGeomDesc(), compactViewToken_, ALCARECOTkAlBeamHalo_cff::filter, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), and pyrootRender::root.
Referenced by CTPPSGeometryESModule(), and ~CTPPSGeometryESModule().
|
private |
Definition at line 376 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 395 of file CTPPSGeometryESModule.cc.
References DEFINE_FWK_EVENTSETUP_MODULE, dgdMisToken_, and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get().
Referenced by CTPPSGeometryESModule().
|
private |
Definition at line 367 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 385 of file CTPPSGeometryESModule.cc.
References dgdRealToken_, and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get().
Referenced by CTPPSGeometryESModule().
|
private |
Definition at line 86 of file CTPPSGeometryESModule.cc.
Referenced by produceIdealGD().
|
private |
Definition at line 92 of file CTPPSGeometryESModule.cc.
Referenced by CTPPSGeometryESModule(), and produceMisalignedTG().
|
private |
Definition at line 91 of file CTPPSGeometryESModule.cc.
Referenced by CTPPSGeometryESModule(), and produceRealTG().
|
private |
Definition at line 89 of file CTPPSGeometryESModule.cc.
Referenced by CTPPSGeometryESModule(), and produceMisalignedGD().
|
private |
Definition at line 88 of file CTPPSGeometryESModule.cc.
Referenced by CTPPSGeometryESModule(), and produceRealGD().
|
private |
Definition at line 85 of file CTPPSGeometryESModule.cc.
Referenced by produceGD().