6 std::map<unsigned int,float>::const_iterator
id=
m_BPC.find(detid);
8 edm::LogError(
"SiStripBackPlaneCorrection") <<
"SiStripBackPlaneCorrection for DetID " << detid <<
" is already stored. Skippig this put" << std::endl;
15 std::map<unsigned int,float>::const_iterator
id=
m_BPC.find(detid);
16 if(
id!=
m_BPC.end())
return id->second;
18 edm::LogError(
"SiStripBackPlaneCorrection") <<
"SiStripBackPlaneCorrection for DetID " << detid <<
" is not stored" << std::endl;
26 std::map<unsigned int,float>::const_iterator it;
28 ss <<
"SiStripBackPlaneCorrectionReader:" << std::endl;
29 ss <<
"detid \t Geometry \t Back Plane Corrections" << std::endl;
30 for( it=detid_la.begin(); it!=detid_la.end(); ++it ) {
33 ss << it->first <<
"\t" << moduleGeometry <<
"\t" << it->second << std::endl;
41 std::map<unsigned int,float>::const_iterator it;
45 for( it=detid_la.begin(); it!=detid_la.end(); ++it ) {
47 float value = it->second;
48 summary.
add(detid, value);
50 ss <<
"Summary of BackPlane corrections:" << std::endl;
bool putBackPlaneCorrection(const uint32_t &, float)
void printSummary(std::stringstream &ss) const
Prints the mean value of the BackPlaneCorrection divided by subdetector, layer and mono/stereo...
const std::map< unsigned int, float > & getBackPlaneCorrections() const
float getBackPlaneCorrection(const uint32_t &) const
void print(std::stringstream &ss, const bool mean=true) const
std::map< unsigned int, float > m_BPC
Detector identifier class for the strip tracker.
void printDebug(std::stringstream &ss) const
Prints BackPlaneCorrections for all detIds.
ModuleGeometry moduleGeometry() 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...