#include <SiPixelTemplateDBObject.h>
Classes | |
union | char2float |
Public Member Functions | |
bool | fail () |
short | getTemplateID (const uint32_t &detid) const |
const std::map< unsigned int, short > & | getTemplateIDs () const |
void | incrementIndex (int i) |
int | index () const |
int | maxIndex () const |
int | numOfTempl () const |
SiPixelTemplateDBObject & | operator>> (float &f) |
SiPixelTemplateDBObject & | operator>> (int &i) |
void | push_back (float entry) |
bool | putTemplateID (const uint32_t &detid, short &value) |
void | putTemplateIDs (std::map< unsigned int, short > &t_ID) |
void | setIndex (int index) |
void | setInvalid () |
void | setMaxIndex (int maxIndex) |
void | setNumOfTempl (int numOfTempl) |
void | setVersion (float version) |
SiPixelTemplateDBObject () | |
std::vector< float > | sVector () const |
float | version () const |
virtual | ~SiPixelTemplateDBObject () |
Private Attributes | |
int | index_ |
bool | isInvalid_ |
int | maxIndex_ |
int | numOfTempl_ |
std::vector< float > | sVector_ |
std::map< unsigned int, short > | templ_ID |
float | version_ |
Friends | |
std::ostream & | operator<< (std::ostream &s, const SiPixelTemplateDBObject &dbobject) |
Definition at line 14 of file SiPixelTemplateDBObject.h.
SiPixelTemplateDBObject::SiPixelTemplateDBObject | ( | ) | [inline] |
Definition at line 16 of file SiPixelTemplateDBObject.h.
References sVector_.
:index_(0),maxIndex_(0),numOfTempl_(1),version_(-99.9),isInvalid_(false),sVector_(0) { sVector_.reserve(1000000); }
virtual SiPixelTemplateDBObject::~SiPixelTemplateDBObject | ( | ) | [inline, virtual] |
Definition at line 19 of file SiPixelTemplateDBObject.h.
{}
bool SiPixelTemplateDBObject::fail | ( | ) | [inline] |
Definition at line 52 of file SiPixelTemplateDBObject.h.
References isInvalid_.
Referenced by SiPixelTemplate::pushfile().
{return isInvalid_;}
short SiPixelTemplateDBObject::getTemplateID | ( | const uint32_t & | detid | ) | const [inline] |
Definition at line 93 of file SiPixelTemplateDBObject.h.
References templ_ID.
Referenced by PixelCPEGeneric::localPosition(), and PixelCPETemplateReco::localPosition().
{ std::map<unsigned int,short>::const_iterator id=templ_ID.find(detid); if(id!=templ_ID.end()) return id->second; else edm::LogError("SiPixelTemplateDBObject") << "Template ID for DetID " << detid << " is not stored" << std::endl; return 0; }
const std::map<unsigned int,short>& SiPixelTemplateDBObject::getTemplateIDs | ( | ) | const [inline] |
void SiPixelTemplateDBObject::incrementIndex | ( | int | i | ) | [inline] |
Definition at line 68 of file SiPixelTemplateDBObject.h.
Referenced by SiPixelTemplate::pushfile().
int SiPixelTemplateDBObject::index | ( | ) | const [inline] |
Definition at line 61 of file SiPixelTemplateDBObject.h.
References index_.
Referenced by SiPixelTemplate::pushfile(), and setIndex().
{return index_;}
int SiPixelTemplateDBObject::maxIndex | ( | ) | const [inline] |
Definition at line 62 of file SiPixelTemplateDBObject.h.
References maxIndex_.
Referenced by setMaxIndex().
{return maxIndex_;}
int SiPixelTemplateDBObject::numOfTempl | ( | ) | const [inline] |
Definition at line 63 of file SiPixelTemplateDBObject.h.
References numOfTempl_.
Referenced by SiPixelTemplate::pushfile(), and setNumOfTempl().
{return numOfTempl_;}
SiPixelTemplateDBObject& SiPixelTemplateDBObject::operator>> | ( | float & | f | ) | [inline] |
Definition at line 37 of file SiPixelTemplateDBObject.h.
References index_, isInvalid_, and maxIndex_.
SiPixelTemplateDBObject& SiPixelTemplateDBObject::operator>> | ( | int & | i | ) | [inline] |
Definition at line 25 of file SiPixelTemplateDBObject.h.
References index_, isInvalid_, and maxIndex_.
void SiPixelTemplateDBObject::push_back | ( | float | entry | ) | [inline] |
Definition at line 55 of file SiPixelTemplateDBObject.h.
References sVector_.
bool SiPixelTemplateDBObject::putTemplateID | ( | const uint32_t & | detid, |
short & | value | ||
) | [inline] |
Definition at line 81 of file SiPixelTemplateDBObject.h.
References cond::rpcobgas::detid, templ_ID, and relativeConstraints::value.
void SiPixelTemplateDBObject::putTemplateIDs | ( | std::map< unsigned int, short > & | t_ID | ) | [inline] |
void SiPixelTemplateDBObject::setIndex | ( | int | index | ) | [inline] |
void SiPixelTemplateDBObject::setInvalid | ( | void | ) | [inline] |
Definition at line 51 of file SiPixelTemplateDBObject.h.
References isInvalid_.
{isInvalid_ = true;}
void SiPixelTemplateDBObject::setMaxIndex | ( | int | maxIndex | ) | [inline] |
Definition at line 57 of file SiPixelTemplateDBObject.h.
References maxIndex(), and maxIndex_.
void SiPixelTemplateDBObject::setNumOfTempl | ( | int | numOfTempl | ) | [inline] |
Definition at line 58 of file SiPixelTemplateDBObject.h.
References numOfTempl(), and numOfTempl_.
{numOfTempl_ = numOfTempl;}
void SiPixelTemplateDBObject::setVersion | ( | float | version | ) | [inline] |
std::vector<float> SiPixelTemplateDBObject::sVector | ( | ) | const [inline] |
Definition at line 65 of file SiPixelTemplateDBObject.h.
References sVector_.
Referenced by SiPixelTemplate::pushfile().
{return sVector_;}
float SiPixelTemplateDBObject::version | ( | ) | const [inline] |
Definition at line 64 of file SiPixelTemplateDBObject.h.
References version_.
Referenced by setVersion().
{return version_;}
std::ostream& operator<< | ( | std::ostream & | s, |
const SiPixelTemplateDBObject & | dbobject | ||
) | [friend] |
int SiPixelTemplateDBObject::index_ [private] |
Definition at line 103 of file SiPixelTemplateDBObject.h.
Referenced by incrementIndex(), index(), operator>>(), and setIndex().
bool SiPixelTemplateDBObject::isInvalid_ [private] |
Definition at line 107 of file SiPixelTemplateDBObject.h.
Referenced by fail(), operator>>(), and setInvalid().
int SiPixelTemplateDBObject::maxIndex_ [private] |
Definition at line 104 of file SiPixelTemplateDBObject.h.
Referenced by maxIndex(), operator>>(), and setMaxIndex().
int SiPixelTemplateDBObject::numOfTempl_ [private] |
Definition at line 105 of file SiPixelTemplateDBObject.h.
Referenced by numOfTempl(), and setNumOfTempl().
std::vector<float> SiPixelTemplateDBObject::sVector_ [private] |
Definition at line 108 of file SiPixelTemplateDBObject.h.
Referenced by push_back(), SiPixelTemplateDBObject(), and sVector().
std::map<unsigned int,short> SiPixelTemplateDBObject::templ_ID [private] |
Definition at line 109 of file SiPixelTemplateDBObject.h.
Referenced by getTemplateID(), getTemplateIDs(), putTemplateID(), and putTemplateIDs().
float SiPixelTemplateDBObject::version_ [private] |
Definition at line 106 of file SiPixelTemplateDBObject.h.
Referenced by setVersion(), and version().