5 std::unordered_map<unsigned int, float>::const_iterator
id =
m_LA.find(detid);
6 if (
id !=
m_LA.end()) {
7 edm::LogError(
"SiPhase2OuterTrackerLorentzAngle") <<
"SiPhase2OuterTrackerLorentzAngle for DetID " << detid
8 <<
" is already stored. Skipping this put" << std::endl;
16 std::unordered_map<unsigned int, float>::const_iterator
id =
m_LA.find(detid);
21 <<
"SiPhase2OuterTrackerLorentzAngle for DetID " << detid <<
" is not stored" << std::endl;
27 std::unordered_map<unsigned int, float>&
out)
const {
28 for (
const auto& [det, LA] :
m_LA) {
36 const std::unordered_map<unsigned int, float>& detid_la =
getLorentzAngles();
37 ss <<
"SiPhase2OuterTrackerLorentzAngleReader:" << std::endl;
38 ss <<
"detid \t Lorentz angle" << std::endl;
39 for (
const auto& it : detid_la) {
40 ss << it.first <<
"\t" << it.second << std::endl;
const std::unordered_map< unsigned int, float > & getLorentzAngles() const
void getLorentzAnglesByModuleType(const TrackerGeometry *trackerGeometry, const TrackerGeometry::ModuleType &theType, std::unordered_map< unsigned int, float > &out) const
Log< level::Error, false > LogError
void printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
bool putLorentzAngle(const uint32_t &, float)
ModuleType getDetectorType(DetId) const
std::unordered_map< unsigned int, float > m_LA
float getLorentzAngle(const uint32_t &) const