CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
CTPPSGeometryESModule Class Reference
Inheritance diagram for CTPPSGeometryESModule:
edm::ESProducer edm::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

Public Member Functions

 CTPPSGeometryESModule (const edm::ParameterSet &)
 
 ~CTPPSGeometryESModule () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
 ESProducer (ESProducer &&)=delete
 
ESResolverIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (ESProducer &&)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
static void prevalidate (ConfigurationDescriptions &)
 

Private Member Functions

std::vector< int > fillCopyNos (TGeoIterator &it)
 
template<typename REC , typename GEO >
std::unique_ptr< DetGeomDescproduceGD (const GEO &, const std::optional< REC > &, edm::ESGetToken< DetGeomDesc, GEO > const &, edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, REC > const &, const char *name)
 
std::unique_ptr< DetGeomDescproduceIdealGD (const IdealGeometryRecord &)
 
std::unique_ptr< DetGeomDescproduceIdealGDFromPreprocessedDB (const VeryForwardIdealGeometryRecord &)
 
std::unique_ptr< DetGeomDescproduceMisalignedGD (const VeryForwardMisalignedGeometryRecord &)
 
std::unique_ptr< DetGeomDescproduceMisalignedGDFromPreprocessedDB (const VeryForwardMisalignedGeometryRecord &)
 
std::unique_ptr< CTPPSGeometryproduceMisalignedTG (const VeryForwardMisalignedGeometryRecord &)
 
std::unique_ptr< DetGeomDescproduceRealGD (const VeryForwardRealGeometryRecord &)
 
std::unique_ptr< DetGeomDescproduceRealGDFromPreprocessedDB (const VeryForwardRealGeometryRecord &)
 
std::unique_ptr< CTPPSGeometryproduceRealTG (const VeryForwardRealGeometryRecord &)
 

Private Attributes

const bool buildMisalignedGeometry_
 
edm::ESGetToken< PDetGeomDesc, VeryForwardIdealGeometryRecorddbToken_
 
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecorddd4hepToken_
 
edm::ESGetToken< DDCompactView, IdealGeometryRecordddToken_
 
edm::ESGetToken< DetGeomDesc, VeryForwardMisalignedGeometryRecorddgdMisToken_
 
edm::ESGetToken< DetGeomDesc, VeryForwardRealGeometryRecorddgdRealToken_
 
const bool fromDD4hep_
 
const bool fromPreprocessedDB_
 
edm::ESGetToken< DetGeomDesc, VeryForwardIdealGeometryRecordidealDBGDToken2_
 
edm::ESGetToken< DetGeomDesc, VeryForwardIdealGeometryRecordidealDBGDToken_
 
edm::ESGetToken< DetGeomDesc, IdealGeometryRecordidealGDToken2_
 
edm::ESGetToken< DetGeomDesc, IdealGeometryRecordidealGDToken_
 
const bool isRun2_
 
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecordmisAlignmentToken_
 
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecordrealAlignmentToken_
 
const unsigned int verbosity_
 

Additional Inherited Members

- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 
- Protected Member Functions inherited from edm::ESProducer
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
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 TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProductResolverFactoryProducer
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::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Definition at line 52 of file CTPPSGeometryESModule.cc.

Constructor & Destructor Documentation

◆ CTPPSGeometryESModule()

CTPPSGeometryESModule::CTPPSGeometryESModule ( const edm::ParameterSet iConfig)

Definition at line 99 of file CTPPSGeometryESModule.cc.

References buildMisalignedGeometry_, DummyCfis::c, alignmentValidation::c1, dbToken_, dd4hepToken_, ddToken_, dgdMisToken_, dgdRealToken_, fromDD4hep_, fromPreprocessedDB_, edm::ParameterSet::getParameter(), idealDBGDToken2_, idealDBGDToken_, idealGDToken2_, idealGDToken_, misAlignmentToken_, produceIdealGD(), produceIdealGDFromPreprocessedDB(), produceMisalignedGD(), produceMisalignedGDFromPreprocessedDB(), produceMisalignedTG(), produceRealGD(), produceRealGDFromPreprocessedDB(), produceRealTG(), realAlignmentToken_, edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.

100  : verbosity_(iConfig.getUntrackedParameter<unsigned int>("verbosity")),
101  buildMisalignedGeometry_(iConfig.getParameter<bool>("buildMisalignedGeometry")),
102  isRun2_(iConfig.getParameter<bool>("isRun2")),
103  fromPreprocessedDB_(iConfig.getUntrackedParameter<bool>("fromPreprocessedDB", false)),
104  fromDD4hep_(iConfig.getUntrackedParameter<bool>("fromDD4hep", false)) {
105  if (fromPreprocessedDB_) {
107  dbToken_ = c.consumes<PDetGeomDesc>(edm::ESInputTag("", iConfig.getParameter<std::string>("dbTag")));
108 
112 
118  }
119  } else if (!fromDD4hep_) {
121  ddToken_ = c.consumes<DDCompactView>(edm::ESInputTag("", iConfig.getParameter<std::string>("compactViewTag")));
122 
126 
132  }
133  } else {
135  dd4hepToken_ =
136  c.consumes<cms::DDCompactView>(edm::ESInputTag("", iConfig.getParameter<std::string>("compactViewTag")));
137 
141 
147  }
148  }
149 
151  dgdRealToken_ = c_RTG.consumes<DetGeomDesc>(edm::ESInputTag());
152 
155  dgdMisToken_ = c_MTG.consumes<DetGeomDesc>(edm::ESInputTag());
156  }
157 }
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4hepToken_
Event setup record containing the ideal PPS geometry information.
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
edm::ESGetToken< DetGeomDesc, VeryForwardIdealGeometryRecord > idealDBGDToken2_
edm::ESGetToken< DetGeomDesc, IdealGeometryRecord > idealGDToken2_
edm::ESGetToken< DetGeomDesc, IdealGeometryRecord > idealGDToken_
edm::ESGetToken< DDCompactView, IdealGeometryRecord > ddToken_
std::unique_ptr< CTPPSGeometry > produceRealTG(const VeryForwardRealGeometryRecord &)
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< CTPPSGeometry > produceMisalignedTG(const VeryForwardMisalignedGeometryRecord &)
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord > misAlignmentToken_
std::unique_ptr< DetGeomDesc > produceRealGD(const VeryForwardRealGeometryRecord &)
edm::ESGetToken< DetGeomDesc, VeryForwardRealGeometryRecord > dgdRealToken_
edm::ESGetToken< DetGeomDesc, VeryForwardMisalignedGeometryRecord > dgdMisToken_
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord > realAlignmentToken_
edm::ESGetToken< DetGeomDesc, VeryForwardIdealGeometryRecord > idealDBGDToken_
edm::ESGetToken< PDetGeomDesc, VeryForwardIdealGeometryRecord > dbToken_
std::unique_ptr< DetGeomDesc > produceMisalignedGD(const VeryForwardMisalignedGeometryRecord &)
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
std::unique_ptr< DetGeomDesc > produceMisalignedGDFromPreprocessedDB(const VeryForwardMisalignedGeometryRecord &)
std::unique_ptr< DetGeomDesc > produceIdealGD(const IdealGeometryRecord &)
const unsigned int verbosity_
std::unique_ptr< DetGeomDesc > produceIdealGDFromPreprocessedDB(const VeryForwardIdealGeometryRecord &)
std::unique_ptr< DetGeomDesc > produceRealGDFromPreprocessedDB(const VeryForwardRealGeometryRecord &)

◆ ~CTPPSGeometryESModule()

CTPPSGeometryESModule::~CTPPSGeometryESModule ( )
inlineoverride

Definition at line 55 of file CTPPSGeometryESModule.cc.

55 {}

Member Function Documentation

◆ fillCopyNos()

std::vector<int> CTPPSGeometryESModule::fillCopyNos ( TGeoIterator &  it)
private

◆ fillDescriptions()

void CTPPSGeometryESModule::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 159 of file CTPPSGeometryESModule.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

159  {
161  desc.addUntracked<unsigned int>("verbosity", 1);
162  desc.add<bool>("buildMisalignedGeometry", false)->setComment("switch if misaligned geometry shall be built");
163  desc.add<bool>("isRun2", false)->setComment("Switch to legacy (2017-18) definition of diamond geometry");
164  desc.add<std::string>("dbTag", std::string());
165  desc.add<std::string>("compactViewTag", std::string());
166  desc.addUntracked<bool>("fromPreprocessedDB", false);
167  desc.addUntracked<bool>("fromDD4hep", false);
168  descriptions.add("CTPPSGeometryESModule", desc);
169 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produceGD()

template<typename REC , typename GEO >
std::unique_ptr< DetGeomDesc > CTPPSGeometryESModule::produceGD ( const GEO &  iIdealRec,
const std::optional< REC > &  iAlignRec,
edm::ESGetToken< DetGeomDesc, GEO > const &  iGDToken,
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, REC > const &  iAlignToken,
const char *  name 
)
private

Definition at line 202 of file CTPPSGeometryESModule.cc.

References CTPPSGeometryESCommon::applyAlignments(), CTPPSRPAlignmentCorrectionsData::getRPMap(), CTPPSRPAlignmentCorrectionsData::getSensorMap(), Skims_PA_cff::name, and verbosity_.

Referenced by produceMisalignedGD(), produceMisalignedGDFromPreprocessedDB(), produceRealGD(), and produceRealGDFromPreprocessedDB().

207  {
208  // get the input GeometricalDet
209  auto const& idealGD = iIdealRec.get(iGDToken);
210 
211  // load alignments
212  CTPPSRPAlignmentCorrectionsData const* alignments = nullptr;
213  if (iAlignRec) {
214  auto alignmentsHandle = iAlignRec->getHandle(iAlignToken);
215  if (alignmentsHandle.isValid()) {
216  alignments = alignmentsHandle.product();
217  }
218  }
219 
220  if (verbosity_) {
221  if (alignments) {
222  edm::LogVerbatim(name) << ">> " << name << " > Real geometry: " << alignments->getRPMap().size() << " RP and "
223  << alignments->getSensorMap().size() << " sensor alignments applied.";
224  } else {
225  edm::LogVerbatim(name) << ">> " << name << " > Real geometry: No alignment applied.";
226  }
227  }
228 
229  return CTPPSGeometryESCommon::applyAlignments(idealGD, alignments);
230 }
Log< level::Info, true > LogVerbatim
const mapType & getSensorMap() const
returns the map of sensor alignment corrections
std::unique_ptr< DetGeomDesc > applyAlignments(const DetGeomDesc &, const CTPPSRPAlignmentCorrectionsData *)
const mapType & getRPMap() const
returns the map of RP alignment corrections
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
const unsigned int verbosity_

◆ produceIdealGD()

std::unique_ptr< DetGeomDesc > CTPPSGeometryESModule::produceIdealGD ( const IdealGeometryRecord iRecord)
private

Definition at line 171 of file CTPPSGeometryESModule.cc.

References detgeomdescbuilder::buildDetGeomDescFromCompactView(), dd4hepToken_, ddToken_, fromDD4hep_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), and isRun2_.

Referenced by CTPPSGeometryESModule().

171  {
172  if (!fromDD4hep_) {
173  // Get the DDCompactView from EventSetup
174  auto const& myCompactView = iRecord.get(ddToken_);
175 
176  // Build geo from compact view.
178  }
179 
180  else {
181  // Get the DDCompactView from EventSetup
182  auto const& myCompactView = iRecord.get(dd4hepToken_);
183 
184  // Build geo from compact view.
186  }
187 }
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4hepToken_
edm::ESGetToken< DDCompactView, IdealGeometryRecord > ddToken_
std::unique_ptr< DetGeomDesc > buildDetGeomDescFromCompactView(const DDCompactView &myCompactView, const bool isRun2)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const

◆ produceIdealGDFromPreprocessedDB()

std::unique_ptr< DetGeomDesc > CTPPSGeometryESModule::produceIdealGDFromPreprocessedDB ( const VeryForwardIdealGeometryRecord iRecord)
private

Definition at line 189 of file CTPPSGeometryESModule.cc.

References dbToken_, and edm::eventsetup::EventSetupRecordImplementation< T >::get().

Referenced by CTPPSGeometryESModule().

190  {
191  // Get the PDetGeomDesc from EventSetup
192  auto const& myDB = iRecord.get(dbToken_);
193 
194  edm::LogInfo("CTPPSGeometryESModule") << " myDB size = " << myDB.container_.size();
195 
196  // Build geo from PDetGeomDesc DB object.
197  auto pdet = std::make_unique<DetGeomDesc>(myDB);
198  return pdet;
199 }
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
Log< level::Info, false > LogInfo
edm::ESGetToken< PDetGeomDesc, VeryForwardIdealGeometryRecord > dbToken_

◆ produceMisalignedGD()

std::unique_ptr< DetGeomDesc > CTPPSGeometryESModule::produceMisalignedGD ( const VeryForwardMisalignedGeometryRecord iRecord)
private

Definition at line 264 of file CTPPSGeometryESModule.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), idealGDToken2_, misAlignmentToken_, produceGD(), and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::tryToGetRecord().

Referenced by CTPPSGeometryESModule().

265  {
266  return produceGD(iRecord.getRecord<IdealGeometryRecord>(),
270  "CTPPSGeometryESModule::produceMisalignedGD");
271 }
edm::ESGetToken< DetGeomDesc, IdealGeometryRecord > idealGDToken2_
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord > misAlignmentToken_
std::unique_ptr< DetGeomDesc > produceGD(const GEO &, const std::optional< REC > &, edm::ESGetToken< DetGeomDesc, GEO > const &, edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, REC > const &, const char *name)

◆ produceMisalignedGDFromPreprocessedDB()

std::unique_ptr< DetGeomDesc > CTPPSGeometryESModule::produceMisalignedGDFromPreprocessedDB ( const VeryForwardMisalignedGeometryRecord iRecord)
private

Definition at line 243 of file CTPPSGeometryESModule.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), idealDBGDToken2_, misAlignmentToken_, produceGD(), and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::tryToGetRecord().

Referenced by CTPPSGeometryESModule().

244  {
249  "CTPPSGeometryESModule::produceMisalignedGDFromPreprocessedDB");
250 }
Event setup record containing the ideal PPS geometry information.
edm::ESGetToken< DetGeomDesc, VeryForwardIdealGeometryRecord > idealDBGDToken2_
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord > misAlignmentToken_
std::unique_ptr< DetGeomDesc > produceGD(const GEO &, const std::optional< REC > &, edm::ESGetToken< DetGeomDesc, GEO > const &, edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, REC > const &, const char *name)

◆ produceMisalignedTG()

std::unique_ptr< CTPPSGeometry > CTPPSGeometryESModule::produceMisalignedTG ( const VeryForwardMisalignedGeometryRecord iRecord)
private

Definition at line 283 of file CTPPSGeometryESModule.cc.

References dgdMisToken_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), and verbosity_.

Referenced by CTPPSGeometryESModule().

284  {
285  auto const& gD = iRecord.get(dgdMisToken_);
286 
287  return std::make_unique<CTPPSGeometry>(&gD, verbosity_);
288 }
edm::ESGetToken< DetGeomDesc, VeryForwardMisalignedGeometryRecord > dgdMisToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
const unsigned int verbosity_

◆ produceRealGD()

std::unique_ptr< DetGeomDesc > CTPPSGeometryESModule::produceRealGD ( const VeryForwardRealGeometryRecord iRecord)
private

Definition at line 254 of file CTPPSGeometryESModule.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), idealGDToken_, produceGD(), realAlignmentToken_, and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::tryToGetRecord().

Referenced by CTPPSGeometryESModule().

254  {
255  return produceGD(iRecord.getRecord<IdealGeometryRecord>(),
259  "CTPPSGeometryESModule::produceRealGD");
260 }
edm::ESGetToken< DetGeomDesc, IdealGeometryRecord > idealGDToken_
std::unique_ptr< DetGeomDesc > produceGD(const GEO &, const std::optional< REC > &, edm::ESGetToken< DetGeomDesc, GEO > const &, edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, REC > const &, const char *name)
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord > realAlignmentToken_

◆ produceRealGDFromPreprocessedDB()

std::unique_ptr< DetGeomDesc > CTPPSGeometryESModule::produceRealGDFromPreprocessedDB ( const VeryForwardRealGeometryRecord iRecord)
private

Definition at line 232 of file CTPPSGeometryESModule.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), idealDBGDToken_, produceGD(), realAlignmentToken_, and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::tryToGetRecord().

Referenced by CTPPSGeometryESModule().

233  {
238  "CTPPSGeometryESModule::produceRealGDFromPreprocessedDB");
239 }
Event setup record containing the ideal PPS geometry information.
std::unique_ptr< DetGeomDesc > produceGD(const GEO &, const std::optional< REC > &, edm::ESGetToken< DetGeomDesc, GEO > const &, edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, REC > const &, const char *name)
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord > realAlignmentToken_
edm::ESGetToken< DetGeomDesc, VeryForwardIdealGeometryRecord > idealDBGDToken_

◆ produceRealTG()

std::unique_ptr< CTPPSGeometry > CTPPSGeometryESModule::produceRealTG ( const VeryForwardRealGeometryRecord iRecord)
private

Definition at line 275 of file CTPPSGeometryESModule.cc.

References dgdRealToken_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), and verbosity_.

Referenced by CTPPSGeometryESModule().

275  {
276  auto const& gD = iRecord.get(dgdRealToken_);
277 
278  return std::make_unique<CTPPSGeometry>(&gD, verbosity_);
279 }
edm::ESGetToken< DetGeomDesc, VeryForwardRealGeometryRecord > dgdRealToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
const unsigned int verbosity_

Member Data Documentation

◆ buildMisalignedGeometry_

const bool CTPPSGeometryESModule::buildMisalignedGeometry_
private

Definition at line 80 of file CTPPSGeometryESModule.cc.

Referenced by CTPPSGeometryESModule().

◆ dbToken_

edm::ESGetToken<PDetGeomDesc, VeryForwardIdealGeometryRecord> CTPPSGeometryESModule::dbToken_
private

◆ dd4hepToken_

edm::ESGetToken<cms::DDCompactView, IdealGeometryRecord> CTPPSGeometryESModule::dd4hepToken_
private

Definition at line 84 of file CTPPSGeometryESModule.cc.

Referenced by CTPPSGeometryESModule(), and produceIdealGD().

◆ ddToken_

edm::ESGetToken<DDCompactView, IdealGeometryRecord> CTPPSGeometryESModule::ddToken_
private

Definition at line 83 of file CTPPSGeometryESModule.cc.

Referenced by CTPPSGeometryESModule(), and produceIdealGD().

◆ dgdMisToken_

edm::ESGetToken<DetGeomDesc, VeryForwardMisalignedGeometryRecord> CTPPSGeometryESModule::dgdMisToken_
private

Definition at line 96 of file CTPPSGeometryESModule.cc.

Referenced by CTPPSGeometryESModule(), and produceMisalignedTG().

◆ dgdRealToken_

edm::ESGetToken<DetGeomDesc, VeryForwardRealGeometryRecord> CTPPSGeometryESModule::dgdRealToken_
private

Definition at line 95 of file CTPPSGeometryESModule.cc.

Referenced by CTPPSGeometryESModule(), and produceRealTG().

◆ fromDD4hep_

const bool CTPPSGeometryESModule::fromDD4hep_
private

Definition at line 86 of file CTPPSGeometryESModule.cc.

Referenced by CTPPSGeometryESModule(), and produceIdealGD().

◆ fromPreprocessedDB_

const bool CTPPSGeometryESModule::fromPreprocessedDB_
private

Definition at line 86 of file CTPPSGeometryESModule.cc.

Referenced by CTPPSGeometryESModule().

◆ idealDBGDToken2_

edm::ESGetToken<DetGeomDesc, VeryForwardIdealGeometryRecord> CTPPSGeometryESModule::idealDBGDToken2_
private

◆ idealDBGDToken_

edm::ESGetToken<DetGeomDesc, VeryForwardIdealGeometryRecord> CTPPSGeometryESModule::idealDBGDToken_
private

◆ idealGDToken2_

edm::ESGetToken<DetGeomDesc, IdealGeometryRecord> CTPPSGeometryESModule::idealGDToken2_
private

Definition at line 88 of file CTPPSGeometryESModule.cc.

Referenced by CTPPSGeometryESModule(), and produceMisalignedGD().

◆ idealGDToken_

edm::ESGetToken<DetGeomDesc, IdealGeometryRecord> CTPPSGeometryESModule::idealGDToken_
private

Definition at line 89 of file CTPPSGeometryESModule.cc.

Referenced by CTPPSGeometryESModule(), and produceRealGD().

◆ isRun2_

const bool CTPPSGeometryESModule::isRun2_
private

Definition at line 81 of file CTPPSGeometryESModule.cc.

Referenced by produceIdealGD().

◆ misAlignmentToken_

edm::ESGetToken<CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord> CTPPSGeometryESModule::misAlignmentToken_
private

◆ realAlignmentToken_

edm::ESGetToken<CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord> CTPPSGeometryESModule::realAlignmentToken_
private

◆ verbosity_

const unsigned int CTPPSGeometryESModule::verbosity_
private

Definition at line 79 of file CTPPSGeometryESModule.cc.

Referenced by produceGD(), produceMisalignedTG(), and produceRealTG().