|
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 45 of file SiPixelFakeLorentzAngleESSource.cc.
Definition at line 92 of file SiPixelFakeLorentzAngleESSource.cc.
References PixelEndcapName::bladeName(), bPixLorentzAnglePerTesla_, BPixParameters_, ALCARECOPPSCalTrackBasedSel_cff::detid, PixelEndcapName::diskName(), ALCARECOEcalPhiSym_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(), nano_mu_digi_cff::rawId, SQLiteCheck_cfg::reader, relativeConstraints::ring, PixelEndcapName::ringName(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::barrel::side(), TrackerTopology::side(), and t_topo_fp_.
94 unsigned int nmodules = 0;
97 const std::vector<uint32_t>& DetIds =
reader.getAllDetIds();
102 for (
const auto& detit : DetIds) {
122 LogDebug(
"SiPixelFakeLorentzAngleESSource") <<
" pixel barrel:" 124 <<
" rawId=" <<
rawId <<
" side " <<
side;
132 <<
"ERROR!: detid " <<
rawId <<
" already exists" << std::endl;
136 if (
it.getParameter<
unsigned int>(
"rawid") ==
detid.rawId()) {
137 float lorentzangle = (
float)
it.getParameter<
double>(
"angle");
139 obj->putLorentzAngle(
detid.rawId(), lorentzangle);
141 <<
" LA= " << lorentzangle <<
" individual value " <<
detid.rawId() << std::endl;
144 edm::LogError(
"SiPixelFakeLorentzAngleESSource") <<
"ERROR!: detid already exists" << std::endl;
150 if (
it.exists(
"layer"))
151 if (
it.getParameter<
int>(
"layer") !=
layer)
153 if (
it.exists(
"ladder"))
154 if (
it.getParameter<
int>(
"ladder") !=
ladder)
156 if (
it.exists(
"module"))
157 if (
it.getParameter<
int>(
"module") !=
module)
159 if (
it.exists(
"side"))
160 if (
it.getParameter<
int>(
"side") !=
side)
163 float lorentzangle = (
float)
it.getParameter<
double>(
"angle");
164 obj->putLorentzAngle(
detid.rawId(), lorentzangle);
165 edm::LogInfo(
"SiPixelFakeLorentzAngleESSource") <<
" LA= " << lorentzangle << std::endl;
167 }
else if (
found == 1) {
169 <<
"detid already given in ModuleParameters, skipping ..." << std::endl;
172 <<
" ERROR!: detid " <<
rawId <<
" already exists" << std::endl;
185 int disk = pen.diskName();
186 int blade = pen.bladeName();
187 int panel = pen.pannelName();
188 int ring = pen.ringName();
190 LogDebug(
"SiPixelFakeLorentzAngleESSource") <<
" pixel endcap:" 191 <<
" side=" <<
side <<
" disk=" << disk <<
" blade =" << blade
192 <<
" pannel=" << panel <<
" ring=" <<
ring <<
" rawId=" <<
rawId;
199 edm::LogError(
"SiPixelFakeLorentzAngleESSource") <<
" ERROR! detid already exists" << std::endl;
203 if (
it.getParameter<
unsigned int>(
"rawid") ==
detid.rawId()) {
204 float lorentzangle = (
float)
it.getParameter<
double>(
"angle");
206 obj->putLorentzAngle(
detid.rawId(), lorentzangle);
208 <<
" LA= " << lorentzangle <<
" individual value " <<
detid.rawId() << std::endl;
212 <<
"ERROR!: detid " <<
rawId <<
" already exists" << std::endl;
218 if (
it.exists(
"side"))
219 if (
it.getParameter<
int>(
"side") !=
side)
221 if (
it.exists(
"disk"))
222 if (
it.getParameter<
int>(
"disk") != disk)
224 if (
it.exists(
"ring"))
225 if (
it.getParameter<
int>(
"ring") !=
ring)
227 if (
it.exists(
"blade"))
228 if (
it.getParameter<
int>(
"blade") != blade)
230 if (
it.exists(
"panel"))
231 if (
it.getParameter<
int>(
"panel") != panel)
233 if (
it.exists(
"HVgroup"))
237 float lorentzangle = (
float)
it.getParameter<
double>(
"angle");
238 obj->putLorentzAngle(
detid.rawId(), lorentzangle);
239 edm::LogInfo(
"SiPixelFakeLorentzAngleESSource") <<
" LA= " << lorentzangle << std::endl;
241 }
else if (
found == 1) {
243 <<
" detid " <<
rawId <<
" already given in ModuleParameters, skipping ..." << std::endl;
246 <<
"ERROR!: detid" <<
rawId <<
"already exists" << std::endl;
252 edm::LogInfo(
"SiPixelFakeLorentzAngleESSource") <<
"Modules = " << nmodules << std::endl;
254 return std::unique_ptr<SiPixelLorentzAngle>(
obj);
unsigned int pxbLayer(const DetId &id) const
Parameters FPixParameters_
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)
const std::string & fullPath() const
unsigned int pxbModule(const DetId &id) const
Log< level::Warning, false > LogWarning
Parameters ModuleParameters_
Parameters BPixParameters_