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.

References ALCARECOPPSCalTrackBasedSel_cff::detid, EcalPhiSymFlatTableProducers_cfi::id, and m_LA.

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

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 }
std::map< unsigned int, float > m_LA

◆ 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.

References m_LA.

16 { m_LA = LA; }
std::map< unsigned int, float > m_LA

◆ putLorentzAngle()

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

Definition at line 4 of file SiPixelLorentzAngle.cc.

References ALCARECOPPSCalTrackBasedSel_cff::detid, m_LA, and relativeConstraints::value.

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. Skipping this put" << std::endl;
9  return false;
10  } else
11  m_LA[detid] = value;
12  return true;
13 }
Log< level::Error, false > LogError
std::map< unsigned int, float > m_LA

◆ 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