CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
SiPixelDynamicInefficiency Class Reference

#include <SiPixelDynamicInefficiency.h>

Public Member Functions

double getChipGeomFactor (const uint32_t &) const
 
const std::map< unsigned int,
double > & 
getChipGeomFactors () const
 
double getColGeomFactor (const uint32_t &) const
 
const std::map< unsigned int,
double > & 
getColGeomFactors () const
 
uint32_t getDetIdmask (unsigned int &) const
 
const std::vector< uint32_t > getDetIdmasks () const
 
double getPixelGeomFactor (const uint32_t &) const
 
const std::map< unsigned int,
double > & 
getPixelGeomFactors () const
 
std::vector< double > getPUFactor (const uint32_t &) const
 
const std::map< unsigned int,
std::vector< double > > & 
getPUFactors () const
 
double gettheInstLumiScaleFactor () const
 
const double gettheInstLumiScaleFactor_ () const
 
bool putChipGeomFactor (const uint32_t &, double &)
 
void putChipGeomFactors (std::map< unsigned int, double > &ChipGeomFactors)
 
bool putColGeomFactor (const uint32_t &, double &)
 
void putColGeomFactors (std::map< unsigned int, double > &ColGeomFactors)
 
bool putDetIdmask (uint32_t &)
 
void putDetIdmasks (std::vector< uint32_t > &masks)
 
bool putPixelGeomFactor (const uint32_t &, double &)
 
void putPixelGeomFactors (std::map< unsigned int, double > &PixelGeomFactors)
 
bool putPUFactor (const uint32_t &, std::vector< double > &)
 
void putPUFactors (std::map< unsigned int, std::vector< double > > &PUFactors)
 
bool puttheInstLumiScaleFactor (double &)
 
void puttheInstLumiScaleFactor_ (double &InstLumiScaleFactor)
 
 SiPixelDynamicInefficiency ()
 
 ~SiPixelDynamicInefficiency ()
 

Private Member Functions

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

Private Attributes

std::map< unsigned int, double > m_ChipGeomFactors
 
std::map< unsigned int, double > m_ColGeomFactors
 
std::map< unsigned int, double > m_PixelGeomFactors
 
std::map< unsigned int,
std::vector< double > > 
m_PUFactors
 
double theInstLumiScaleFactor_
 
std::vector< uint32_t > v_DetIdmasks
 

Friends

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

Detailed Description

Definition at line 12 of file SiPixelDynamicInefficiency.h.

Constructor & Destructor Documentation

SiPixelDynamicInefficiency::SiPixelDynamicInefficiency ( )
SiPixelDynamicInefficiency::~SiPixelDynamicInefficiency ( )
inline

Definition at line 17 of file SiPixelDynamicInefficiency.h.

17 {};

Member Function Documentation

double SiPixelDynamicInefficiency::getChipGeomFactor ( const uint32_t &  detid) const

Definition at line 54 of file SiPixelDynamicInefficiency.cc.

References m_ChipGeomFactors.

54  {
55  std::map<unsigned int,double>::const_iterator id=m_ChipGeomFactors.find(detid);
56  if(id!=m_ChipGeomFactors.end()) return id->second;
57  else {
58  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency ChipGeomFactor for DetID " << detid << " is not stored" << std::endl;
59  }
60  return 0;
61 }
std::map< unsigned int, double > m_ChipGeomFactors
const std::map<unsigned int,double>& SiPixelDynamicInefficiency::getChipGeomFactors ( ) const
inline

Definition at line 26 of file SiPixelDynamicInefficiency.h.

References m_ChipGeomFactors.

26 {return m_ChipGeomFactors;}
std::map< unsigned int, double > m_ChipGeomFactors
double SiPixelDynamicInefficiency::getColGeomFactor ( const uint32_t &  detid) const

Definition at line 35 of file SiPixelDynamicInefficiency.cc.

References m_ColGeomFactors.

35  {
36  std::map<unsigned int,double>::const_iterator id=m_ColGeomFactors.find(detid);
37  if(id!=m_ColGeomFactors.end()) return id->second;
38  else {
39  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency ColGeomFactor for DetID " << detid << " is not stored" << std::endl;
40  }
41  return 0;
42 }
std::map< unsigned int, double > m_ColGeomFactors
const std::map<unsigned int,double>& SiPixelDynamicInefficiency::getColGeomFactors ( ) const
inline

Definition at line 23 of file SiPixelDynamicInefficiency.h.

References m_ColGeomFactors.

23 {return m_ColGeomFactors;}
std::map< unsigned int, double > m_ColGeomFactors
uint32_t SiPixelDynamicInefficiency::getDetIdmask ( unsigned int &  i) const

Definition at line 88 of file SiPixelDynamicInefficiency.cc.

References i, and v_DetIdmasks.

88  {
89  if (v_DetIdmasks.size() <= i) {
90  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency DetIdmask "<<i<<" is not stored!" << std::endl;
91  return 0;
92  }
93  else return v_DetIdmasks.at(i);
94 }
int i
Definition: DBlmapReader.cc:9
std::vector< uint32_t > v_DetIdmasks
const std::vector<uint32_t> SiPixelDynamicInefficiency::getDetIdmasks ( ) const
inline

Definition at line 35 of file SiPixelDynamicInefficiency.h.

References v_DetIdmasks.

35 {return v_DetIdmasks;}
std::vector< uint32_t > v_DetIdmasks
double SiPixelDynamicInefficiency::getPixelGeomFactor ( const uint32_t &  detid) const

Definition at line 16 of file SiPixelDynamicInefficiency.cc.

References m_PixelGeomFactors.

16  {
17  std::map<unsigned int,double>::const_iterator id=m_PixelGeomFactors.find(detid);
18  if(id!=m_PixelGeomFactors.end()) return id->second;
19  else {
20  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency PixelGeomFactor for DetID " << detid << " is not stored" << std::endl;
21  }
22  return 0;
23 }
std::map< unsigned int, double > m_PixelGeomFactors
const std::map<unsigned int,double>& SiPixelDynamicInefficiency::getPixelGeomFactors ( ) const
inline

Definition at line 20 of file SiPixelDynamicInefficiency.h.

References m_PixelGeomFactors.

20 {return m_PixelGeomFactors;}
std::map< unsigned int, double > m_PixelGeomFactors
std::vector< double > SiPixelDynamicInefficiency::getPUFactor ( const uint32_t &  detid) const

Definition at line 73 of file SiPixelDynamicInefficiency.cc.

References m_PUFactors.

73  {
74  std::map<unsigned int,std::vector<double> >::const_iterator id=m_PUFactors.find(detid);
75  if(id!=m_PUFactors.end()) return id->second;
76  else {
77  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency PUFactor for DetID " << detid << " is not stored" << std::endl;
78  }
79  std::vector<double> empty;
80  return empty;
81 }
std::map< unsigned int, std::vector< double > > m_PUFactors
const std::map<unsigned int,std::vector<double> >& SiPixelDynamicInefficiency::getPUFactors ( ) const
inline

Definition at line 29 of file SiPixelDynamicInefficiency.h.

References m_PUFactors.

29 {return m_PUFactors;}
std::map< unsigned int, std::vector< double > > m_PUFactors
double SiPixelDynamicInefficiency::gettheInstLumiScaleFactor ( ) const

Definition at line 107 of file SiPixelDynamicInefficiency.cc.

References theInstLumiScaleFactor_.

107  {
108  if (theInstLumiScaleFactor_ == -9999) {
109  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency theInstLumiScaleFactor is not stored!" << std::endl;
110  return 0;
111  }
112  else return theInstLumiScaleFactor_;
113 }
const double SiPixelDynamicInefficiency::gettheInstLumiScaleFactor_ ( ) const
inline
bool SiPixelDynamicInefficiency::putChipGeomFactor ( const uint32_t &  detid,
double &  value 
)

Definition at line 44 of file SiPixelDynamicInefficiency.cc.

References m_ChipGeomFactors, and relativeConstraints::value.

44  {
45  std::map<unsigned int,double>::const_iterator id=m_ChipGeomFactors.find(detid);
46  if(id!=m_ChipGeomFactors.end()){
47  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency ChipGeomFactor for DetID " << detid << " is already stored. Skippig this put" << std::endl;
48  return false;
49  }
50  else m_ChipGeomFactors[detid]=value;
51  return true;
52 }
std::map< unsigned int, double > m_ChipGeomFactors
void SiPixelDynamicInefficiency::putChipGeomFactors ( std::map< unsigned int, double > &  ChipGeomFactors)
inline

Definition at line 25 of file SiPixelDynamicInefficiency.h.

References m_ChipGeomFactors.

25 {m_ChipGeomFactors=ChipGeomFactors;}
std::map< unsigned int, double > m_ChipGeomFactors
bool SiPixelDynamicInefficiency::putColGeomFactor ( const uint32_t &  detid,
double &  value 
)

Definition at line 25 of file SiPixelDynamicInefficiency.cc.

References m_ColGeomFactors, and relativeConstraints::value.

25  {
26  std::map<unsigned int,double>::const_iterator id=m_ColGeomFactors.find(detid);
27  if(id!=m_ColGeomFactors.end()){
28  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency ColGeomFactor for DetID " << detid << " is already stored. Skippig this put" << std::endl;
29  return false;
30  }
31  else m_ColGeomFactors[detid]=value;
32  return true;
33 }
std::map< unsigned int, double > m_ColGeomFactors
void SiPixelDynamicInefficiency::putColGeomFactors ( std::map< unsigned int, double > &  ColGeomFactors)
inline

Definition at line 22 of file SiPixelDynamicInefficiency.h.

References m_ColGeomFactors.

22 {m_ColGeomFactors=ColGeomFactors;}
std::map< unsigned int, double > m_ColGeomFactors
bool SiPixelDynamicInefficiency::putDetIdmask ( uint32_t &  mask)

Definition at line 83 of file SiPixelDynamicInefficiency.cc.

References i, and v_DetIdmasks.

83  {
84  for (unsigned int i=0;i<v_DetIdmasks.size();i++) if (mask == v_DetIdmasks.at(i)) return false;
85  v_DetIdmasks.push_back(mask);
86  return true;
87 }
int i
Definition: DBlmapReader.cc:9
std::vector< uint32_t > v_DetIdmasks
void SiPixelDynamicInefficiency::putDetIdmasks ( std::vector< uint32_t > &  masks)
inline

Definition at line 34 of file SiPixelDynamicInefficiency.h.

References masks, and v_DetIdmasks.

std::vector< uint32_t > v_DetIdmasks
constexpr uint32_t masks[]
Definition: CaloRecHit.cc:12
bool SiPixelDynamicInefficiency::putPixelGeomFactor ( const uint32_t &  detid,
double &  value 
)

Definition at line 6 of file SiPixelDynamicInefficiency.cc.

References m_PixelGeomFactors, and relativeConstraints::value.

6  {
7  std::map<unsigned int,double>::const_iterator id=m_PixelGeomFactors.find(detid);
8  if(id!=m_PixelGeomFactors.end()){
9  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency PixelGeomFactor for DetID " << detid << " is already stored. Skippig this put" << std::endl;
10  return false;
11  }
12  else m_PixelGeomFactors[detid]=value;
13  return true;
14 }
std::map< unsigned int, double > m_PixelGeomFactors
void SiPixelDynamicInefficiency::putPixelGeomFactors ( std::map< unsigned int, double > &  PixelGeomFactors)
inline

Definition at line 19 of file SiPixelDynamicInefficiency.h.

References m_PixelGeomFactors.

19 {m_PixelGeomFactors=PixelGeomFactors;}
std::map< unsigned int, double > m_PixelGeomFactors
bool SiPixelDynamicInefficiency::putPUFactor ( const uint32_t &  detid,
std::vector< double > &  v_value 
)

Definition at line 63 of file SiPixelDynamicInefficiency.cc.

References m_PUFactors.

63  {
64  std::map<unsigned int,std::vector<double> >::const_iterator id=m_PUFactors.find(detid);
65  if(id!=m_PUFactors.end()){
66  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency PUFactor for DetID " << detid << " is already stored. Skippig this put" << std::endl;
67  return false;
68  }
69  else m_PUFactors[detid]=v_value;
70  return true;
71 }
std::map< unsigned int, std::vector< double > > m_PUFactors
void SiPixelDynamicInefficiency::putPUFactors ( std::map< unsigned int, std::vector< double > > &  PUFactors)
inline

Definition at line 28 of file SiPixelDynamicInefficiency.h.

References m_PUFactors.

28 {m_PUFactors=PUFactors;}
std::map< unsigned int, std::vector< double > > m_PUFactors
bool SiPixelDynamicInefficiency::puttheInstLumiScaleFactor ( double &  theInstLumiScaleFactor)

Definition at line 96 of file SiPixelDynamicInefficiency.cc.

References theInstLumiScaleFactor_.

96  {
97  if (theInstLumiScaleFactor_ != -9999){
98  edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency theInstLumiScaleFactor is already stored! Skippig this put!" << std::endl;
99  return false;
100  }
101  else {
102  theInstLumiScaleFactor_ = theInstLumiScaleFactor;
103  return true;
104  }
105 }
void SiPixelDynamicInefficiency::puttheInstLumiScaleFactor_ ( double &  InstLumiScaleFactor)
inline

Definition at line 31 of file SiPixelDynamicInefficiency.h.

References theInstLumiScaleFactor_.

31 {theInstLumiScaleFactor_=InstLumiScaleFactor;}
template<class Archive >
void SiPixelDynamicInefficiency::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 63 of file SiPixelDynamicInefficiency.h.

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

Definition at line 63 of file SiPixelDynamicInefficiency.h.

Member Data Documentation

std::map<unsigned int,double> SiPixelDynamicInefficiency::m_ChipGeomFactors
private
std::map<unsigned int,double> SiPixelDynamicInefficiency::m_ColGeomFactors
private
std::map<unsigned int,double> SiPixelDynamicInefficiency::m_PixelGeomFactors
private
std::map<unsigned int,std::vector<double> > SiPixelDynamicInefficiency::m_PUFactors
private

Definition at line 59 of file SiPixelDynamicInefficiency.h.

Referenced by getPUFactor(), getPUFactors(), putPUFactor(), and putPUFactors().

double SiPixelDynamicInefficiency::theInstLumiScaleFactor_
private
std::vector<uint32_t> SiPixelDynamicInefficiency::v_DetIdmasks
private