CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::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
Definition: eostools.py:511
SiStripDetInfo::SiStripDetInfo ( )
default
SiStripDetInfo::~SiStripDetInfo ( )
default
SiStripDetInfo::SiStripDetInfo ( const SiStripDetInfo )
default
SiStripDetInfo::SiStripDetInfo ( SiStripDetInfo &&  )
default

Member Function Documentation

const std::map<uint32_t, DetInfo>& SiStripDetInfo::getAllData ( ) const
inlinenoexcept
const std::vector<uint32_t>& SiStripDetInfo::getAllDetIds ( ) const
inlinenoexcept
const std::pair< unsigned short, double > SiStripDetInfo::getNumberOfApvsAndStripLength ( uint32_t  detId) const

Definition at line 19 of file SiStripDetInfo.cc.

References detData_.

Referenced by SiStripQuality::add(), SiStripHitEffFromCalibTree::algoAnalyze(), OverlapValidation::analyzeTrajectory(), SiStripBaseCondObjDQM::bookProfileMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), SiStripQuality::compact(), SiStripQuality::difference(), SiStripQuality::fillBadComponents(), SiStripThresholdDQM::fillMEsForDet(), SiStripThresholdDQM::fillMEsForLayer(), SiStripBadChannelBuilder::getNewObject(), SiStripFedCablingFakeESSource::make(), SiStripHitEffFromCalibTree::makeSQLite(), SiStripBadModuleConfigurableFakeESSource::produce(), SiStripCondObjBuilderFromDb::retrieveNumberAPVPairs(), 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
const float & SiStripDetInfo::getThickness ( uint32_t  detId) const

Definition at line 35 of file SiStripDetInfo.cc.

References 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
SiStripDetInfo& SiStripDetInfo::operator= ( const SiStripDetInfo )
default
SiStripDetInfo& SiStripDetInfo::operator= ( SiStripDetInfo &&  )
default

Member Data Documentation

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

Definition at line 67 of file SiStripDetInfo.h.

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

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

Definition at line 68 of file SiStripDetInfo.h.

Referenced by getAllDetIds().