|
void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override |
|
ESConsumesInfo * | consumesInfoPushBackNew () |
|
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 &) |
|
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 |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &key) |
|
template<class T > |
void | findingRecord () |
|
void | findingRecordWithKey (const eventsetup::EventSetupRecordKey &) |
|
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 35 of file SiPixelFakeLorentzAngleESSource.h.
Definition at line 50 of file SiPixelFakeLorentzAngleESSource.cc.
References PixelEndcapName::bladeName(), bPixLorentzAnglePerTesla_, BPixParameters_, PixelEndcapName::diskName(), nano_mu_digi_cff::float, newFWLiteAna::found, fp_, fPixLorentzAnglePerTesla_, FPixParameters_, StandaloneTrackerTopology::fromTrackerParametersXMLFile(), edm::FileInPath::fullPath(), HVgroup(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, PVValHelper::ladder, nano_mu_digi_cff::layer, LogDebug, callgraph::module, ModuleParameters_, getGTfromDQMFile::obj, PixelEndcapName::pannelName(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, TrackerTopology::pxbLadder(), TrackerTopology::pxbLayer(), TrackerTopology::pxbModule(), DetId::rawId(), nano_mu_digi_cff::rawId, DQM::reader, relativeConstraints::ring, PixelEndcapName::ringName(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::barrel::side(), TrackerTopology::side(), DetId::subdetId(), and t_topo_fp_.
52 unsigned int nmodules = 0;
55 const std::vector<uint32_t>& DetIds =
reader.getAllDetIds();
60 for (
const auto& detit : DetIds) {
62 const DetId detid(detit);
63 auto rawId = detid.rawId();
80 LogDebug(
"SiPixelFakeLorentzAngleESSource") <<
" pixel barrel:" 82 <<
" rawId=" <<
rawId <<
" side " <<
side;
90 <<
"ERROR!: detid " <<
rawId <<
" already exists" << std::endl;
94 if (
it.getParameter<
unsigned int>(
"rawid") == detid.rawId()) {
95 float lorentzangle = (
float)
it.getParameter<
double>(
"angle");
97 obj->putLorentzAngle(detid.rawId(), lorentzangle);
99 <<
" LA= " << lorentzangle <<
" individual value " << detid.rawId() << std::endl;
102 edm::LogError(
"SiPixelFakeLorentzAngleESSource") <<
"ERROR!: detid already exists" << std::endl;
108 if (
it.exists(
"layer"))
109 if (
it.getParameter<
int>(
"layer") !=
layer)
111 if (
it.exists(
"ladder"))
112 if (
it.getParameter<
int>(
"ladder") !=
ladder)
114 if (
it.exists(
"module"))
115 if (
it.getParameter<
int>(
"module") !=
module)
117 if (
it.exists(
"side"))
118 if (
it.getParameter<
int>(
"side") !=
side)
121 float lorentzangle = (
float)
it.getParameter<
double>(
"angle");
122 obj->putLorentzAngle(detid.rawId(), lorentzangle);
123 edm::LogInfo(
"SiPixelFakeLorentzAngleESSource") <<
" LA= " << lorentzangle << std::endl;
125 }
else if (
found == 1) {
127 <<
"detid already given in ModuleParameters, skipping ..." << std::endl;
130 <<
" ERROR!: detid " <<
rawId <<
" already exists" << std::endl;
143 int disk = pen.diskName();
144 int blade = pen.bladeName();
145 int panel = pen.pannelName();
146 int ring = pen.ringName();
148 LogDebug(
"SiPixelFakeLorentzAngleESSource") <<
" pixel endcap:" 149 <<
" side=" <<
side <<
" disk=" << disk <<
" blade =" << blade
150 <<
" pannel=" << panel <<
" ring=" <<
ring <<
" rawId=" <<
rawId;
157 edm::LogError(
"SiPixelFakeLorentzAngleESSource") <<
" ERROR! detid already exists" << std::endl;
161 if (
it.getParameter<
unsigned int>(
"rawid") == detid.rawId()) {
162 float lorentzangle = (
float)
it.getParameter<
double>(
"angle");
164 obj->putLorentzAngle(detid.rawId(), lorentzangle);
166 <<
" LA= " << lorentzangle <<
" individual value " << detid.rawId() << std::endl;
170 <<
"ERROR!: detid " <<
rawId <<
" already exists" << std::endl;
176 if (
it.exists(
"side"))
177 if (
it.getParameter<
int>(
"side") !=
side)
179 if (
it.exists(
"disk"))
180 if (
it.getParameter<
int>(
"disk") != disk)
182 if (
it.exists(
"ring"))
183 if (
it.getParameter<
int>(
"ring") !=
ring)
185 if (
it.exists(
"blade"))
186 if (
it.getParameter<
int>(
"blade") != blade)
188 if (
it.exists(
"panel"))
189 if (
it.getParameter<
int>(
"panel") != panel)
191 if (
it.exists(
"HVgroup"))
195 float lorentzangle = (
float)
it.getParameter<
double>(
"angle");
196 obj->putLorentzAngle(detid.rawId(), lorentzangle);
197 edm::LogInfo(
"SiPixelFakeLorentzAngleESSource") <<
" LA= " << lorentzangle << std::endl;
199 }
else if (
found == 1) {
201 <<
" detid " <<
rawId <<
" already given in ModuleParameters, skipping ..." << std::endl;
204 <<
"ERROR!: detid" <<
rawId <<
"already exists" << std::endl;
210 edm::LogInfo(
"SiPixelFakeLorentzAngleESSource") <<
"Modules = " << nmodules << std::endl;
212 return std::unique_ptr<SiPixelLorentzAngle>(
obj);
unsigned int pxbLayer(const DetId &id) const
Parameters FPixParameters_
std::string fullPath() const
ALPAKA_FN_ACC int side(int ieta, int iphi)
const edm::FileInPath fp_
unsigned int pxbLadder(const DetId &id) const
Log< level::Error, false > LogError
unsigned int side(const DetId &id) const
float bPixLorentzAnglePerTesla_
int HVgroup(int panel, int module)
const edm::FileInPath t_topo_fp_
Log< level::Info, false > LogInfo
float fPixLorentzAnglePerTesla_
TrackerTopology fromTrackerParametersXMLFile(const std::string &xmlFileName)
unsigned int pxbModule(const DetId &id) const
Log< level::Warning, false > LogWarning
Parameters ModuleParameters_
Parameters BPixParameters_