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 (std::map< uint32_t, DetInfo > iDetData, std::vector< uint32_t > iIDs) noexcept
 
 SiStripDetInfo ()=default
 
 SiStripDetInfo (const SiStripDetInfo &)=default
 
 SiStripDetInfo (SiStripDetInfo &&)=default
 
 ~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.

References eostools::move().

42  : detData_{std::move(iDetData)}, detIds_{std::move(iIDs)} {}
std::map< uint32_t, DetInfo > detData_
std::vector< uint32_t > detIds_
def move(src, dest)
Definition: eostools.py:511

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

References hltPixelClustersMultiplicity_cfi::defaultValue, and detData_.

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

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 }
std::map< uint32_t, DetInfo > detData_
Log< level::Warning, false > LogWarning

◆ getThickness()

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

Definition at line 35 of file SiStripDetInfo.cc.

References hltPixelClustersMultiplicity_cfi::defaultValue, and detData_.

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 }
std::map< uint32_t, DetInfo > detData_
Log< level::Warning, false > LogWarning

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