1 #ifndef CondFormats_SiPixelObjects_SiPixel2DTemplateDBObject_h 2 #define CondFormats_SiPixelObjects_SiPixel2DTemplateDBObject_h 1 43 f = (*this).sVector_[
index_];
85 std::map<unsigned int,short>::const_iterator
id=
templ_ID.find(detid);
87 edm::LogError(
"SiPixel2DTemplateDBObject") <<
"2Dtemplate ID for DetID " << detid
88 <<
" is already stored. Skipping this put" << std::endl;
97 std::map<unsigned int,short>::const_iterator
id=
templ_ID.find(detid);
98 if(
id!=
templ_ID.end())
return id->second;
99 else edm::LogError(
"SiPixel2DTemplateDBObject") <<
"2Dtemplate ID for DetID " << detid
100 <<
" is not stored" << std::endl;
std::vector< float > sVector() const
SiPixel2DTemplateDBObject & operator>>(int &i)
void push_back(float entry)
virtual ~SiPixel2DTemplateDBObject()
SiPixel2DTemplateDBObject()
void setMaxIndex(int maxIndex)
void putTemplateIDs(std::map< unsigned int, short > &t_ID)
void setNumOfTempl(int numOfTempl)
void setVersion(float version)
short getTemplateID(const uint32_t &detid) const
friend std::ostream & operator<<(std::ostream &s, const SiPixel2DTemplateDBObject &dbobject)
void incrementIndex(int i)
#define COND_SERIALIZABLE
std::map< unsigned int, short > templ_ID
bool putTemplateID(const uint32_t &detid, short &value)
SiPixel2DTemplateDBObject & operator>>(float &f)
const std::map< unsigned int, short > & getTemplateIDs() const
std::vector< float > sVector_