Go to the documentation of this file.
28 : LAvalue_(conf_.getParameter<double>(
"LAValue")), recordName_(conf_.getParameter<
std::
string>(
"recordName")) {
29 edm::LogInfo(
"SiPhase2OuterTrackerFakeLorentzAngleESSource::SiPhase2OuterTrackerFakeLorentzAngleESSource");
36 findingRecord<SiPhase2OuterTrackerLorentzAngleRcd>();
41 findingRecord<SiPhase2OuterTrackerLorentzAngleSimRcd>();
54 const int subDet = detectorId.
subdetId();
57 if (!
obj->putLorentzAngle(detId,
value))
59 <<
"[SiPhase2OuterTrackerFakeLorentzAngleESSource::produce] detid already exists" << std::endl;
63 return std::unique_ptr<T>(
obj);
70 return fakeOTLA::produceRecord<SiPhase2OuterTrackerLorentzAngle>(LAvalue_, geomDet);
76 return fakeOTLA::produceRecord<SiPhase2OuterTrackerLorentzAngle>(LAvalue_, geomDet);
88 desc.add<
double>(
"LAValue", 0.07);
90 descriptions.
add(
"siPhase2OTFakeLorentzAngleESSource",
desc);
const DepRecordT getRecord() const
constexpr Detector det() const
get the detector field from this detid
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Log< level::Info, false > LogInfo
std::unique_ptr< T > produceRecord(const float value, const GeometricDet &geomDet)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
std::vector< uint32_t > getOuterTrackerDetIds(const GeometricDet &geomDet)
~SiPhase2OuterTrackerFakeLorentzAngleESSource() override
SiPhase2OuterTrackerFakeLorentzAngleESSource(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
virtual std::unique_ptr< SiPhase2OuterTrackerLorentzAngle > produceOTLA(const SiPhase2OuterTrackerLorentzAngleRcd &)
static const IOVSyncValue & endOfTime()
virtual std::unique_ptr< SiPhase2OuterTrackerLorentzAngle > produceOTSimLA(const SiPhase2OuterTrackerLorentzAngleSimRcd &)
const std::string recordName_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > m_tTopoToken
static constexpr auto TOB
static void fillDescriptions(edm::ConfigurationDescriptions &)
static const IOVSyncValue & beginOfTime()
edm::ESGetToken< GeometricDet, IdealGeometryRecord > m_geomDetToken
static constexpr auto TID