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 11 of file SiPixelLorentzAngle.h.

Constructor & Destructor Documentation

◆ SiPixelLorentzAngle()

SiPixelLorentzAngle::SiPixelLorentzAngle ( )
inline

Definition at line 13 of file SiPixelLorentzAngle.h.

13 {};

◆ ~SiPixelLorentzAngle()

SiPixelLorentzAngle::~SiPixelLorentzAngle ( )
inline

Definition at line 14 of file SiPixelLorentzAngle.h.

14 {};

Member Function Documentation

◆ getLorentzAngle()

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

Definition at line 14 of file SiPixelLorentzAngle.cc.

14  {
15  std::map<unsigned int, float>::const_iterator id = m_LA.find(detid);
16  if (id != m_LA.end())
17  return id->second;
18  else {
19  edm::LogError("SiPixelLorentzAngle") << "SiPixelLorentzAngle for DetID " << detid << " is not stored" << std::endl;
20  }
21  return 0;
22 }

References triggerObjects_cff::id, and m_LA.

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

◆ getLorentzAngles()

const std::map<unsigned int, float>& SiPixelLorentzAngle::getLorentzAngles ( ) const
inline

◆ putLorentsAngles()

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

Definition at line 16 of file SiPixelLorentzAngle.h.

16 { m_LA = LA; }

References m_LA.

◆ putLorentzAngle()

bool SiPixelLorentzAngle::putLorentzAngle ( const uint32_t &  detid,
float &  value 
)

Definition at line 4 of file SiPixelLorentzAngle.cc.

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
8  << " is already stored. Skippig this put" << std::endl;
9  return false;
10  } else
11  m_LA[detid] = value;
12  return true;
13 }

References m_LA, and relativeConstraints::value.

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 25 of file SiPixelLorentzAngle.h.

◆ cond::serialization::access

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

Definition at line 25 of file SiPixelLorentzAngle.h.

Member Data Documentation

◆ m_LA

std::map<unsigned int, float> SiPixelLorentzAngle::m_LA
private
SiPixelLorentzAngle::m_LA
std::map< unsigned int, float > m_LA
Definition: SiPixelLorentzAngle.h:23
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
relativeConstraints.value
value
Definition: relativeConstraints.py:53
edm::Log
Definition: MessageLogger.h:70