CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelLorentzAngle.cc
Go to the documentation of this file.
3 
4 bool SiPixelLorentzAngle::putLorentzAngle(const uint32_t& detid, float& value){
5  std::map<unsigned int,float>::const_iterator id=m_LA.find(detid);
6  if(id!=m_LA.end()){
7  edm::LogError("SiPixelLorentzAngle") << "SiPixelLorentzAngle for DetID " << detid << " is already stored. Skippig this put" << std::endl;
8  return false;
9  }
10  else m_LA[detid]=value;
11  return true;
12 }
13 float SiPixelLorentzAngle::getLorentzAngle(const uint32_t& detid) const {
14  std::map<unsigned int,float>::const_iterator id=m_LA.find(detid);
15  if(id!=m_LA.end()) return id->second;
16  else {
17  edm::LogError("SiPixelLorentzAngle") << "SiPixelLorentzAngle for DetID " << detid << " is not stored" << std::endl;
18  }
19  return 0;
20 }
std::map< unsigned int, float > m_LA
bool putLorentzAngle(const uint32_t &, float &)
float getLorentzAngle(const uint32_t &) const