|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef CALOCONDBLOBOBJS_CALOCONDBLOBDAT_H
6 #define CALOCONDBLOBOBJS_CALOCONDBLOBDAT_H
27 #include "CoralBase/Blob.h"
37 typedef std::vector<std::vector<T> >
DefType;
70 const std::string&
author=
"",
92 virtual void dump(std::ostream& stm)
const;
110 template<
class T>
void
114 const std::string&
author,
125 for(
unsigned int adc=0;
adc<nGains; ++
adc){
143 return (
static_cast<const T*
>(m_pDataStart))[
channel];
149 template<
class T>
void
158 template<
class T>
void
161 for(
typename std::vector<T>::const_iterator
i=
data.begin();
i!=
data.end(); ++
i){
168 template<
class T>
const T*
175 if(
adc>=getNGains()){
192 if(
adc>=getNGains()){
202 template<
class T>
void
207 for(
unsigned int adc=0;
adc<getNGains(); ++
adc){
209 for(
unsigned int idx=0;
idx<getObjSizeUint32(); ++
idx){
void setData(unsigned int channel, unsigned int adc, unsigned int idx, T data)
Sets a single T belonging to a channel/gain.
char data[hepevt_bytes_allocation_ATLAS]
Generic template class for storing a number of "T"s for each channel/gain.
T getData(const unsigned int channel, const unsigned int adc, const unsigned int idx) const
Returns a single T belonging to a channel/gain.
const InDetSimData * getData(const InDetSimDataCollection &coll, const Identifier &id)
std::vector< std::vector< T > > DefType
Object to hold default data used for initialization.
T * getAddress(const unsigned int channel, const unsigned int adc)
const void * getAddress(unsigned int iEle) const
Returns start address of iEle-th basic unit.
const T * getAddress(const unsigned int channel, const unsigned int adc) const
Returns a pointer to the first value for the specified channel/gain.
T getData(const unsigned int channel) const
Returns a single T belonging to a channel/gain.
void init(const DefType &def, uint32_t nChans, uint16_t objVers, const std::string &author="", const std::string &comment="", uint64_t timeStamp=0)
Initializing function.
CaloCondBlobDat(const coral::Blob &blob)
Ctor.
virtual ~CaloCondBlobDat()
Dtor.
void dumpHeader(std::ostream &stm) const
Prints the BLOB header summary information.
Thrown if an index is out of range.
void setData(unsigned int channel, unsigned int adc, const std::vector< T > &data)
Sets a number of Ts stored in the input vector.
This class provides the core BLOB infrastructure.
virtual void dump() const
Prints out the content of the blob to std::out.
virtual void dump(std::ostream &stm) const
Prints out the content of the blob.
T getType(const char *cStr)
Return Ringer enumeration of type T identifying string type:
CaloCondBlobDat(coral::Blob &blob)
Ctor.