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