CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
SiStripDetInfo Class Reference

#include "SiStripDetInfo.h"

Classes

struct  DetInfo
 

Public Member Functions

const std::map< uint32_t, DetInfo > & getAllData () const noexcept
 
const std::vector< uint32_t > & getAllDetIds () const noexcept
 
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength (uint32_t detId) const
 
const float & getThickness (uint32_t detId) const
 
SiStripDetInfooperator= (const SiStripDetInfo &)=default
 
SiStripDetInfooperator= (SiStripDetInfo &&)=default
 
 SiStripDetInfo ()=default
 
 SiStripDetInfo (const SiStripDetInfo &)=default
 
 SiStripDetInfo (SiStripDetInfo &&)=default
 
 SiStripDetInfo (std::map< uint32_t, DetInfo > iDetData, std::vector< uint32_t > iIDs) noexcept
 
 ~SiStripDetInfo ()=default
 

Private Attributes

std::map< uint32_t, DetInfodetData_
 
std::vector< uint32_t > detIds_
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 29 of file SiStripDetInfo.h.

Constructor & Destructor Documentation

◆ SiStripDetInfo() [1/4]

SiStripDetInfo::SiStripDetInfo ( std::map< uint32_t, DetInfo iDetData,
std::vector< uint32_t >  iIDs 
)
inlinenoexcept

Definition at line 41 of file SiStripDetInfo.h.

42  : detData_{std::move(iDetData)}, detIds_{std::move(iIDs)} {}

References eostools::move().

◆ SiStripDetInfo() [2/4]

SiStripDetInfo::SiStripDetInfo ( )
default

◆ ~SiStripDetInfo()

SiStripDetInfo::~SiStripDetInfo ( )
default

◆ SiStripDetInfo() [3/4]

SiStripDetInfo::SiStripDetInfo ( const SiStripDetInfo )
default

◆ SiStripDetInfo() [4/4]

SiStripDetInfo::SiStripDetInfo ( SiStripDetInfo &&  )
default

Member Function Documentation

◆ getAllData()

const std::map<uint32_t, DetInfo>& SiStripDetInfo::getAllData ( ) const
inlinenoexcept

◆ getAllDetIds()

const std::vector<uint32_t>& SiStripDetInfo::getAllDetIds ( ) const
inlinenoexcept

◆ getNumberOfApvsAndStripLength()

const std::pair< unsigned short, double > SiStripDetInfo::getNumberOfApvsAndStripLength ( uint32_t  detId) const

Definition at line 19 of file SiStripDetInfo.cc.

19  {
20  std::map<uint32_t, DetInfo>::const_iterator it = detData_.find(detId);
21 
22  if (it != detData_.end()) {
23  return std::pair<unsigned short, double>(it->second.nApvs, it->second.stripLength);
24 
25  } else {
26  std::pair<unsigned short, double> defaultValue(0, 0.);
28  "SiStripDetInfoFileReader::getNumberOfApvsAndStripLength - Unable to find requested detid. Returning invalid "
29  "data ")
30  << std::endl;
31  return defaultValue;
32  }
33 }

References detData_.

Referenced by SiStripQuality::add(), SiStripHitEffFromCalibTree::algoAnalyze(), OverlapValidation::analyze(), SiStripBaseCondObjDQM::bookProfileMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), SiStripQuality::compact(), SiStripQuality::difference(), SiStripQuality::fillBadComponents(), SiStripQualityDQM::fillMEsForDet(), SiStripNoisesDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForDet(), SiStripThresholdDQM::fillMEsForDet(), SiStripApvGainsDQM::fillMEsForDet(), SiStripNoisesDQM::fillMEsForLayer(), SiStripPedestalsDQM::fillMEsForLayer(), SiStripQualityDQM::fillMEsForLayer(), SiStripThresholdDQM::fillMEsForLayer(), SiStripApvGainsDQM::fillMEsForLayer(), SiStripBadChannelBuilder::getNewObject(), SiStripFedCablingFakeESSource::make(), SiStripHitEffFromCalibTree::makeSQLite(), SiStripBadModuleConfigurableFakeESSource::produce(), SiStripCondObjBuilderFromDb::retrieveNumberAPVPairs(), SiStripQualityStatistics::SetBadComponents(), SiStripQualityDQM::SetBadComponents(), SiStripHitEffFromCalibTree::SetBadComponents(), SiStripCondObjBuilderFromDb::setValuesApvLatency(), and SiStripQualityStatistics::updateAndSave().

◆ getThickness()

const float & SiStripDetInfo::getThickness ( uint32_t  detId) const

Definition at line 35 of file SiStripDetInfo.cc.

35  {
36  std::map<uint32_t, DetInfo>::const_iterator it = detData_.find(detId);
37 
38  if (it != detData_.end()) {
39  return it->second.thickness;
40 
41  } else {
42  static const float defaultValue = 0;
43  edm::LogWarning("SiStripDetInfo::getThickness - Unable to find requested detid. Returning invalid data ")
44  << std::endl;
45  return defaultValue;
46  }
47 }

References detData_.

◆ operator=() [1/2]

SiStripDetInfo& SiStripDetInfo::operator= ( const SiStripDetInfo )
default

◆ operator=() [2/2]

SiStripDetInfo& SiStripDetInfo::operator= ( SiStripDetInfo &&  )
default

Member Data Documentation

◆ detData_

std::map<uint32_t, DetInfo> SiStripDetInfo::detData_
private

Definition at line 67 of file SiStripDetInfo.h.

Referenced by getAllData(), getNumberOfApvsAndStripLength(), and getThickness().

◆ detIds_

std::vector<uint32_t> SiStripDetInfo::detIds_
private

Definition at line 68 of file SiStripDetInfo.h.

Referenced by getAllDetIds().

edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
SiStripDetInfo::detData_
std::map< uint32_t, DetInfo > detData_
Definition: SiStripDetInfo.h:67
eostools.move
def move(src, dest)
Definition: eostools.py:511
SiStripDetInfo::detIds_
std::vector< uint32_t > detIds_
Definition: SiStripDetInfo.h:68