6 std::map<unsigned int,float>::const_iterator
id=
m_LA.find(detid);
8 edm::LogError(
"SiStripLorentzAngle") <<
"SiStripLorentzAngle for DetID " << detid <<
" is already stored. Skippig this put" << std::endl;
15 std::map<unsigned int,float>::const_iterator
id=
m_LA.find(detid);
16 if(
id!=
m_LA.end())
return id->second;
18 edm::LogError(
"SiStripLorentzAngle") <<
"SiStripLorentzAngle for DetID " << detid <<
" is not stored" << std::endl;
26 std::map<unsigned int,float>::const_iterator it;
28 ss <<
"SiStripLorentzAngleReader:" << std::endl;
29 ss <<
"detid \t Lorentz angle" << std::endl;
30 for( it=detid_la.begin(); it!=detid_la.end(); ++it ) {
31 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;
46 summary.
add(detid, value);
48 ss <<
"Summary of lorentz angles:" << std::endl;
std::map< unsigned int, float > m_LA
bool putLorentzAngle(const uint32_t &, float)
const std::map< unsigned int, float > & getLorentzAngles() const
float getLorentzAngle(const uint32_t &) const
void print(std::stringstream &ss, const bool mean=true) const
void add(const DetId &detid, const float &value)
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo...
void printDebug(std::stringstream &ss) const
Prints LorentzAngles for all detIds.
void printSummary(std::stringstream &ss) const
Prints the mean value of the LorentzAngle divided by subdetector, layer and mono/stereo.