6 std::map<unsigned int, float>::const_iterator
id =
m_LA.find(detid);
7 if (
id !=
m_LA.end()) {
8 edm::LogError(
"SiStripLorentzAngle") <<
"SiStripLorentzAngle for DetID " << detid
9 <<
" is already stored. Skipping this put" << std::endl;
16 std::map<unsigned int, float>::const_iterator
id =
m_LA.find(detid);
20 edm::LogError(
"SiStripLorentzAngle") <<
"SiStripLorentzAngle for DetID " << detid <<
" is not stored" << std::endl;
27 std::map<unsigned int, float>::const_iterator it;
29 ss <<
"SiStripLorentzAngleReader:" << std::endl;
30 ss <<
"detid \t Lorentz angle" << std::endl;
31 for (it = detid_la.begin(); it != detid_la.end(); ++it) {
32 ss << it->first <<
"\t" << it->second << std::endl;
39 std::map<unsigned int, float>::const_iterator it;
43 for (it = detid_la.begin(); it != detid_la.end(); ++it) {
44 DetId detid(it->first);
45 float value = it->second;
48 ss <<
"Summary of lorentz angles:" << std::endl;
std::map< unsigned int, float > m_LA
void printSummary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints the mean value of the LorentzAngle divided by subdetector, layer and mono/stereo.
const std::map< unsigned int, float > & getLorentzAngles() const
Log< level::Error, false > LogError
bool putLorentzAngle(const uint32_t &, float)
float getLorentzAngle(const uint32_t &) const
void printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints LorentzAngles for all detIds.