1 #ifndef CondFormats_SiPixelObjects_SiPixelTemplateDBObject_h
2 #define CondFormats_SiPixelObjects_SiPixelTemplateDBObject_h 1
29 i = (int) (*this).sVector_[
index_];
41 f = (*this).sVector_[
index_];
83 std::map<unsigned int,short>::const_iterator
id=
templ_ID.find(detid);
85 edm::LogError(
"SiPixelTemplateDBObject") <<
"Template ID for DetID " << detid
86 <<
" is already stored. Skipping this put" << std::endl;
95 std::map<unsigned int,short>::const_iterator
id=
templ_ID.find(detid);
96 if(
id!=
templ_ID.end())
return id->second;
97 else edm::LogError(
"SiPixelTemplateDBObject") <<
"Template ID for DetID " << detid
98 <<
" is not stored" << std::endl;
void putTemplateIDs(std::map< unsigned int, short > &t_ID)
bool putTemplateID(const uint32_t &detid, short &value)
short getTemplateID(const uint32_t &detid) const
void push_back(float entry)
SiPixelTemplateDBObject()
virtual ~SiPixelTemplateDBObject()
void setMaxIndex(int maxIndex)
SiPixelTemplateDBObject & operator>>(float &f)
void incrementIndex(int i)
std::vector< float > sVector() const
std::map< unsigned int, short > templ_ID
void setVersion(float version)
void setNumOfTempl(int numOfTempl)
std::vector< float > sVector_
const std::map< unsigned int, short > & getTemplateIDs() const
SiPixelTemplateDBObject & operator>>(int &i)
volatile std::atomic< bool > shutdown_flag false
friend std::ostream & operator<<(std::ostream &s, const SiPixelTemplateDBObject &dbobject)