CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
SiPixelLorentzAngle Class Reference

#include <SiPixelLorentzAngle.h>

Public Member Functions

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 &)
 
 SiPixelLorentzAngle ()
 
 ~SiPixelLorentzAngle ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::map< unsigned int, float > m_LA
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 12 of file SiPixelLorentzAngle.h.

Constructor & Destructor Documentation

SiPixelLorentzAngle::SiPixelLorentzAngle ( )
inline

Definition at line 16 of file SiPixelLorentzAngle.h.

16 {};
SiPixelLorentzAngle::~SiPixelLorentzAngle ( )
inline

Definition at line 17 of file SiPixelLorentzAngle.h.

17 {};

Member Function Documentation

float SiPixelLorentzAngle::getLorentzAngle ( const uint32_t &  detid) const

Definition at line 13 of file SiPixelLorentzAngle.cc.

References m_LA.

Referenced by Phase2TrackerDigitizerAlgorithm::DriftDirection(), PixelCPEBase::driftDirection(), SiPixelDigitizerAlgorithm::DriftDirection(), and getLorentzAngles().

13  {
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
const std::map<unsigned int,float>& SiPixelLorentzAngle::getLorentzAngles ( ) const
inline
void SiPixelLorentzAngle::putLorentsAngles ( std::map< unsigned int, float > &  LA)
inline

Definition at line 19 of file SiPixelLorentzAngle.h.

References m_LA.

19 {m_LA=LA;}
std::map< unsigned int, float > m_LA
bool SiPixelLorentzAngle::putLorentzAngle ( const uint32_t &  detid,
float &  value 
)

Definition at line 4 of file SiPixelLorentzAngle.cc.

References m_LA, and relativeConstraints::value.

Referenced by getLorentzAngles(), and SiPixelFakeLorentzAngleESSource::produce().

4  {
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 }
std::map< unsigned int, float > m_LA
template<class Archive >
void SiPixelLorentzAngle::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 29 of file SiPixelLorentzAngle.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 29 of file SiPixelLorentzAngle.h.

Member Data Documentation

std::map<unsigned int,float> SiPixelLorentzAngle::m_LA
private