#include <CondFormats/SiStripObjects/interface/SiStripLorentzAngle.h>
Public Member Functions | |
const float & | getLorentzAngle (const uint32_t &) const |
const std::map< unsigned int, float > & | getLorentzAngles () const |
void | putLorentsAngles (std::map< unsigned int, float > &LA) |
bool | putLorentzAngle (const uint32_t &, float &) |
SiStripLorentzAngle () | |
~SiStripLorentzAngle () | |
Private Attributes | |
std::map< unsigned int, float > | m_LA |
Definition at line 10 of file SiStripLorentzAngle.h.
SiStripLorentzAngle::SiStripLorentzAngle | ( | ) | [inline] |
SiStripLorentzAngle::~SiStripLorentzAngle | ( | ) | [inline] |
const float & SiStripLorentzAngle::getLorentzAngle | ( | const uint32_t & | detid | ) | const |
Definition at line 13 of file SiStripLorentzAngle.cc.
References lat::endl(), and m_LA.
Referenced by StripCPE::driftDirection().
00013 { 00014 std::map<unsigned int,float>::const_iterator id=m_LA.find(detid); 00015 if(id!=m_LA.end()) return id->second; 00016 else { 00017 edm::LogError("SiStripLorentzAngle") << "SiStripLorentzAngle for DetID " << detid << " is not stored" << std::endl; 00018 } 00019 static float temp = 0.; // added by R.B. 00020 return temp; 00021 }
const std::map<unsigned int,float>& SiStripLorentzAngle::getLorentzAngles | ( | ) | const [inline] |
bool SiStripLorentzAngle::putLorentzAngle | ( | const uint32_t & | detid, | |
float & | value | |||
) |
Definition at line 4 of file SiStripLorentzAngle.cc.
References lat::endl(), and m_LA.
Referenced by SiStripCalibLorentzAngle::getNewObject(), SiStripRandomLorentzAngle::getNewObject(), and SiStripLAFakeESSource::produce().
00004 { 00005 std::map<unsigned int,float>::const_iterator id=m_LA.find(detid); 00006 if(id!=m_LA.end()){ 00007 edm::LogError("SiStripLorentzAngle") << "SiStripLorentzAngle for DetID " << detid << " is already stored. Skippig this put" << std::endl; 00008 return false; 00009 } 00010 else m_LA[detid]=value; 00011 return true; 00012 }
std::map<unsigned int,float> SiStripLorentzAngle::m_LA [private] |
Definition at line 25 of file SiStripLorentzAngle.h.
Referenced by getLorentzAngle(), getLorentzAngles(), putLorentsAngles(), and putLorentzAngle().