|
ATLAS Offline Software
|
#include <IOVPayloadContainerPTCnv_p1.h>
◆ attrNameMapValue_t
◆ IOVPayloadContainerPTCnv_p1()
IOVPayloadContainerPTCnv_p1::IOVPayloadContainerPTCnv_p1 |
( |
| ) |
|
◆ fillAttributeData() [1/2]
◆ fillAttributeData() [2/2]
void IOVPayloadContainerPTCnv_p1::fillAttributeData |
( |
unsigned int |
attrName, |
|
|
unsigned int |
attrType, |
|
|
const coral::Attribute & |
attr, |
|
|
IOVPayloadContainer_p1 * |
persObj |
|
) |
| |
|
private |
Definition at line 287 of file IOVPayloadContainerPTCnv_p1.cxx.
298 persObj->
m_bool.push_back(attr.data<
bool>());
303 persObj->
m_char.push_back(attr.data<
char>());
314 persObj->
m_short.push_back(attr.data<
short>());
325 persObj->
m_int.push_back(attr.data<
int>());
336 persObj->
m_long.push_back(attr.data<
long>());
347 persObj->
m_longLong.push_back(attr.data<
long long>());
358 persObj->
m_float.push_back(attr.data<
float>());
363 persObj->
m_double.push_back(attr.data<
double>());
373 persObj->
m_string.push_back(attr.data<std::string>());
◆ fillAttributeTypeMap()
void IOVPayloadContainerPTCnv_p1::fillAttributeTypeMap |
( |
| ) |
|
|
private |
◆ fillPersAttrSpec()
Definition at line 188 of file IOVPayloadContainerPTCnv_p1.cxx.
199 std::set<std::string>
names;
203 for (; itPayload != itPayloadEnd; ++itPayload) {
208 for (; itColl != itCollEnd; ++itColl) {
211 coral::AttributeList::const_iterator
it = attrList.begin();
212 coral::AttributeList::const_iterator last = attrList.end();
213 for (;
it != last; ++
it) {
214 const coral::Attribute& attr = *
it;
215 std::string
name = attr.specification().name();
216 std::string
typeName = attr.specification().typeName();
227 unsigned int iname = 0;
231 for (; itName != itNameEnd; ++itName) {
◆ persToTrans()
Definition at line 26 of file IOVPayloadContainerPTCnv_p1.cxx.
45 bool isEarlyVersion = persObj->
m_attrType.size() > 0;
48 typedef std::vector<IOVPayloadContainer_p1::CondAttrListCollection_p1>::const_iterator attrCollIt;
53 for (;
it != last; ++
it) {
62 typedef std::vector<IOVPayloadContainer_p1::CondAttrListEntry_p1>::const_iterator attrListIt_t;
64 attrListIt_t itattrList = persColl.
m_attrLists.begin();
65 attrListIt_t lastAttrList = persColl.
m_attrLists.end();
66 for (; itattrList != lastAttrList; ++itattrList) {
73 unsigned int inameOld = 0;
74 for (
unsigned int iattr =
entry.m_firstIndex;
75 iattr <
entry.m_lastIndex; ++iattr, ++inameOld) {
77 if (!isEarlyVersion) {
95 bool indexesOK =
true;
108 unsigned int itype = persObj->
m_attrType[inameOld];
117 unsigned int itype = indexes.
typeIndex();
118 typedef std::map<std::string, unsigned int>::const_iterator it_type;
121 for (; typeIt != endType; ++typeIt) {
122 if (itype == typeIt->second) {
127 std::string
name =
"unknown";
136 transColl->
add(
entry.m_channelNumber, attrList);
138 bool hasIOV = !(
entry.m_range.m_start == 0 &&
entry.m_range.m_stop == 0);
161 if (
entry.m_name.size()) {
◆ m_attributeTypeMap
std::map<std::string, unsigned int> IOVPayloadContainerPTCnv_p1::m_attributeTypeMap |
|
private |
◆ m_attributeTypes
std::vector<std::string> IOVPayloadContainerPTCnv_p1::m_attributeTypes |
|
private |
◆ m_attrNameMap
std::map<std::string, unsigned int> IOVPayloadContainerPTCnv_p1::m_attrNameMap |
|
private |
◆ m_objIndexOffset
The documentation for this class was generated from the following files:
std::map< std::string, unsigned int > m_attributeTypeMap
JetConstituentVector::iterator iterator
std::vector< AttrListIndexes > m_attrIndexes
const_iterator end() const
std::vector< short > m_short
std::vector< double > m_double
Validity Range object. Holds two IOVTimes (start and stop)
unsigned long long m_stop
Indexes to attribute name, type name and object value for the persistent storage of an attribute list...
void fillAttributeData(unsigned int attrName, unsigned int attrType, const coral::Attribute &attr, IOVPayloadContainer_p1 *persObj)
std::vector< unsigned long long > m_unsignedLongLong
std::vector< unsigned int > m_unsignedInt
void addNewStop(const IOVTime &stop)
Add new stop time to minRange - make sure that stop is <= to new stop
std::vector< float > m_float
std::vector< long > m_long
unsigned long long m_start
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
void addNewStart(const IOVTime &start)
Add new start time to minRange - make sure that start is >= to new start.
This class is a collection of AttributeLists where each one is associated with a channel number....
@ ATTR_UNSIGNED_LONG_LONG
const_iterator begin() const
Begin of payload vector.
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
std::vector< char > m_char
void fillAttributeTypeMap()
unsigned int m_objIndexOffset[IOVPayloadContainer_p1::ATTR_TIME_STAMP+1]
unsigned short typeIndex() const
Index into the type name vector.
std::vector< std::string > m_attrName
std::vector< long long > m_longLong
std::vector< unsigned int > m_attrType
std::vector< std::string > m_string
std::vector< unsigned short > m_unsignedShort
std::vector< unsigned long long > m_date
std::vector< CondAttrListEntry_p1 > m_attrLists
unsigned short nameIndex() const
Index into attribute name vector.
std::map< std::string, unsigned int > m_attrNameMap
std::map< std::string, unsigned int >::value_type attrNameMapValue_t
std::vector< std::string > m_attributeTypes
def time(flags, cells_name, *args, **kw)
ChanAttrListMap::const_iterator const_iterator
payloadVec::const_iterator const_iterator
const_iterator end() const
End of payload vector.
std::vector< unsigned long > m_unsignedLong
std::vector< unsigned char > m_unsignedChar
std::vector< CondAttrListCollection_p1 > m_payloadVec
bool m_hasRunLumiBlockTime
bool add(ChanNum chanNum, const AttributeList &attributeList)
Adding in chan/attrList pairs.
std::vector< bool > m_bool
std::vector< unsigned long long > m_timeStamp