CMS 3D CMS Logo

SiStripLorentzAngle Class Reference

#include <CondFormats/SiStripObjects/interface/SiStripLorentzAngle.h>

List of all members.

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


Detailed Description

Definition at line 10 of file SiStripLorentzAngle.h.


Constructor & Destructor Documentation

SiStripLorentzAngle::SiStripLorentzAngle (  )  [inline]

Definition at line 14 of file SiStripLorentzAngle.h.

00014 {};

SiStripLorentzAngle::~SiStripLorentzAngle (  )  [inline]

Definition at line 15 of file SiStripLorentzAngle.h.

00015 {};


Member Function Documentation

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]

Definition at line 18 of file SiStripLorentzAngle.h.

References m_LA.

00018 {return m_LA;}

void SiStripLorentzAngle::putLorentsAngles ( std::map< unsigned int, float > &  LA  )  [inline]

Definition at line 17 of file SiStripLorentzAngle.h.

References m_LA.

00017 {m_LA=LA;}   

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 }


Member Data Documentation

std::map<unsigned int,float> SiStripLorentzAngle::m_LA [private]

Definition at line 25 of file SiStripLorentzAngle.h.

Referenced by getLorentzAngle(), getLorentzAngles(), putLorentsAngles(), and putLorentzAngle().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:24 2009 for CMSSW by  doxygen 1.5.4