![]() |
ATLAS Offline Software
|
This class is a collection of AttributeLists where each one is associated with a channel number. This allows R/W with COOL of multichannel conditions objects, stored in COOL itself. The collection looks like a vector of pairs of (channel num, AttributeList) where one may iterate over all of them or access each AttrList by channel number as in a map. One also maintains the IOV of each channel allow update of only invalid channels. More...
#include <CondAttrListCollection.h>
Public Types | |
| typedef unsigned int | ChanNum |
| typedef coral::AttributeList | AttributeList |
| typedef std::map< ChanNum, coral::AttributeList > | ChanAttrListMap |
| typedef ChanAttrListMap::value_type | ChanAttrListPair |
| typedef std::map< ChanNum, IOVRange > | ChanIOVMap |
| typedef ChanIOVMap::value_type | ChanIOVPair |
| typedef std::map< ChanNum, std::string > | ChanNameMap |
| typedef ChanNameMap::value_type | ChanNamePair |
| typedef ChanAttrListMap::const_iterator | const_iterator |
| typedef ChanAttrListMap::iterator | iterator |
| typedef ChanAttrListMap::size_type | size_type |
| typedef ChanIOVMap::const_iterator | iov_const_iterator |
| typedef ChanIOVMap::iterator | iov_iterator |
| typedef ChanIOVMap::size_type | iov_size_type |
| typedef ChanNameMap::const_iterator | name_const_iterator |
| typedef ChanNameMap::iterator | name_iterator |
| typedef ChanNameMap::size_type | name_size_type |
Public Member Functions | |
| CondAttrListCollection (bool hasRunLumiBlockTime) | |
| Constructor with specification for type of time: run/lumiBlock or timestamp. More... | |
| ~CondAttrListCollection () | |
| CondAttrListCollection (const CondAttrListCollection &rhs) | |
| CondAttrListCollection & | operator= (const CondAttrListCollection &rhs)=delete |
| const_iterator | chanAttrListPair (ChanNum chanNum) const |
| Access to Chan/AttributeList pairs via channel number: returns map iterator. More... | |
| const_iterator | begin () const |
| Access to Chan/AttributeList pairs via iterators. More... | |
| const_iterator | end () const |
| size_type | size () const |
| number of Chan/AttributeList pairs More... | |
| iov_const_iterator | chanIOVPair (ChanNum chanNum) const |
| Access to Chan/IOV pairs via channel number: returns map iterator. More... | |
| iov_const_iterator | iov_begin () const |
| Access to Chan/IOV pairs via iterators. More... | |
| iov_const_iterator | iov_end () const |
| iov_size_type | iov_size () const |
| number of Chan/IOV pairs More... | |
| name_const_iterator | chanNamePair (ChanNum chanNum) const |
| Access to Chan/Name pairs via channel number: returns map iterator. More... | |
| name_const_iterator | name_begin () const |
| Access to Chan/Name pairs via iterators. More... | |
| name_const_iterator | name_end () const |
| name_size_type | name_size () const |
| number of Chan/Name pairs More... | |
| ChanNum | chanNum (unsigned int index) const |
| channel number for index: (index = 0 to size-1) More... | |
| bool | fixChanNum (ChanNum oldChan, ChanNum newChan) |
| const AttributeList & | attributeList (ChanNum chanNum) const |
| attribute list for a given channel number More... | |
| const IOVRange & | iovRange (ChanNum chanNum) const |
| IOVRange list for a given channel number. More... | |
| const std::string & | chanName (ChanNum chanNum) const |
| find name for particular channel More... | |
| const IOVRange & | minRange () const |
| Current minimal IOVRange. More... | |
| bool | hasUniqueIOV () const |
| Check whether there is a unique IOV for all channels. More... | |
| bool | add (ChanNum chanNum, const AttributeList &attributeList) |
| Adding in chan/attrList pairs. More... | |
| void | addShared (ChanNum chanNum, const AttributeList &attributeList) |
| Adding in chan/attrList pairs with shared data. More... | |
| void | add (ChanNum chanNum, const IOVRange &range) |
| Adding in chan/iov range pairs. More... | |
| void | add (ChanNum chanNum, const std::string &name) |
| Adding in chan/name pairs: ASSUMED TO BE IN ORDER. More... | |
| void | addNewStart (const IOVTime &start) |
| Add new start time to minRange - make sure that start is >= to new start. More... | |
| void | addNewStop (const IOVTime &stop) |
| Add new stop time to minRange - make sure that stop is <= to new stop More... | |
| void | resetMinRange () |
| Reset minRange according to the IOVs of the contained channels. More... | |
| void | dump () const |
| Dump our contents to std::cout. More... | |
| void | dump (std::ostringstream &stream) const |
| Dump the contents to std::ostringstream. More... | |
| bool | operator== (const CondAttrListCollection &rhs) const |
| Equal operator. More... | |
| bool | operator!= (const CondAttrListCollection &rhs) const |
| Comparison operator. More... | |
| bool | isSameButMinRange (const CondAttrListCollection &rhs, bool ignoreIOVs=false) const |
| Equal operator which ignores minRange. More... | |
Private Member Functions | |
| CondAttrListCollection () | |
| Default constructor - we hide it to prevent clients from using it - forcing them to specify the type of IOVTime with the other constructor. More... | |
Private Attributes | |
| ChanAttrListMap | m_attrMap |
| ChanIOVMap | m_iovMap |
| ChanNameMap | m_nameMap |
| IOVRange | m_minRange |
| bool | m_hasUniqueIOV |
| bool | m_hasRunLumiBlockTime |
| coral::AttributeListSpecification * | m_spec |
This class is a collection of AttributeLists where each one is associated with a channel number. This allows R/W with COOL of multichannel conditions objects, stored in COOL itself. The collection looks like a vector of pairs of (channel num, AttributeList) where one may iterate over all of them or access each AttrList by channel number as in a map. One also maintains the IOV of each channel allow update of only invalid channels.
WARNING: In order to accumulation correctly the minimum IOVRange for all channels one needs to use the constructor which specifies the type of time being used, i.e. run/lumiBlock or timestamp
Definition at line 50 of file CondAttrListCollection.h.
| typedef coral::AttributeList CondAttrListCollection::AttributeList |
Definition at line 55 of file CondAttrListCollection.h.
| typedef std::map<ChanNum, coral::AttributeList> CondAttrListCollection::ChanAttrListMap |
Definition at line 56 of file CondAttrListCollection.h.
| typedef ChanAttrListMap::value_type CondAttrListCollection::ChanAttrListPair |
Definition at line 57 of file CondAttrListCollection.h.
| typedef std::map<ChanNum, IOVRange> CondAttrListCollection::ChanIOVMap |
Definition at line 58 of file CondAttrListCollection.h.
| typedef ChanIOVMap::value_type CondAttrListCollection::ChanIOVPair |
Definition at line 59 of file CondAttrListCollection.h.
| typedef std::map<ChanNum, std::string> CondAttrListCollection::ChanNameMap |
Definition at line 60 of file CondAttrListCollection.h.
| typedef ChanNameMap::value_type CondAttrListCollection::ChanNamePair |
Definition at line 61 of file CondAttrListCollection.h.
| typedef unsigned int CondAttrListCollection::ChanNum |
Definition at line 54 of file CondAttrListCollection.h.
| typedef ChanAttrListMap::const_iterator CondAttrListCollection::const_iterator |
Definition at line 62 of file CondAttrListCollection.h.
| typedef ChanIOVMap::const_iterator CondAttrListCollection::iov_const_iterator |
Definition at line 65 of file CondAttrListCollection.h.
| typedef ChanIOVMap::iterator CondAttrListCollection::iov_iterator |
Definition at line 66 of file CondAttrListCollection.h.
| typedef ChanIOVMap::size_type CondAttrListCollection::iov_size_type |
Definition at line 67 of file CondAttrListCollection.h.
| typedef ChanAttrListMap::iterator CondAttrListCollection::iterator |
Definition at line 63 of file CondAttrListCollection.h.
| typedef ChanNameMap::const_iterator CondAttrListCollection::name_const_iterator |
Definition at line 68 of file CondAttrListCollection.h.
| typedef ChanNameMap::iterator CondAttrListCollection::name_iterator |
Definition at line 69 of file CondAttrListCollection.h.
| typedef ChanNameMap::size_type CondAttrListCollection::name_size_type |
Definition at line 70 of file CondAttrListCollection.h.
| typedef ChanAttrListMap::size_type CondAttrListCollection::size_type |
Definition at line 64 of file CondAttrListCollection.h.
|
inlineexplicit |
Constructor with specification for type of time: run/lumiBlock or timestamp.
Definition at line 218 of file CondAttrListCollection.h.
|
inline |
Definition at line 232 of file CondAttrListCollection.h.
|
inline |
Definition at line 236 of file CondAttrListCollection.h.
|
inlineprivate |
Default constructor - we hide it to prevent clients from using it - forcing them to specify the type of IOVTime with the other constructor.
Definition at line 208 of file CondAttrListCollection.h.
|
inline |
Adding in chan/attrList pairs.
Adding in chan/attrList pairs: ASSUMED TO BE IN ORDER.
Definition at line 451 of file CondAttrListCollection.h.
Adding in chan/iov range pairs.
Adding in chan/iov pairs: ASSUMED TO BE IN ORDER.
Definition at line 483 of file CondAttrListCollection.h.
Adding in chan/name pairs: ASSUMED TO BE IN ORDER.
Definition at line 498 of file CondAttrListCollection.h.
Add new start time to minRange - make sure that start is >= to new start.
Definition at line 507 of file CondAttrListCollection.h.
Add new stop time to minRange - make sure that stop is <= to new stop
Add new stop time to minRange - make sure that stop is <= to new stop.
Definition at line 517 of file CondAttrListCollection.h.
|
inline |
Adding in chan/attrList pairs with shared data.
Adding in chan/attrList pairs with shared AttrList: ASSUMED TO BE IN ORDER.
Definition at line 468 of file CondAttrListCollection.h.
|
inline |
|
inline |
Access to Chan/AttributeList pairs via iterators.
Definition at line 308 of file CondAttrListCollection.h.
|
inline |
Access to Chan/AttributeList pairs via channel number: returns map iterator.
Access to Chan/AttributeList pairs via channel number.
Definition at line 300 of file CondAttrListCollection.h.
|
inline |
Access to Chan/IOV pairs via channel number: returns map iterator.
Access to IOV pairs via channel number.
Definition at line 329 of file CondAttrListCollection.h.
find name for particular channel
Definition at line 425 of file CondAttrListCollection.h.
|
inline |
Access to Chan/Name pairs via channel number: returns map iterator.
Access to name via channel number.
Definition at line 356 of file CondAttrListCollection.h.
|
inline |
channel number for index: (index = 0 to size-1)
Definition at line 383 of file CondAttrListCollection.h.
|
inline |
|
inline |
|
inline |
Definition at line 314 of file CondAttrListCollection.h.
Definition at line 667 of file CondAttrListCollection.h.
|
inline |
Check whether there is a unique IOV for all channels.
Definition at line 444 of file CondAttrListCollection.h.
|
inline |
Access to Chan/IOV pairs via iterators.
Access to AttributeList pairs via iterators.
Definition at line 336 of file CondAttrListCollection.h.
|
inline |
Definition at line 342 of file CondAttrListCollection.h.
|
inline |
|
inline |
Equal operator which ignores minRange.
Same as equal operator but ignores the values for minRange. This allows merging of AttrListColls which have the same content and differ only by the minRange.
Definition at line 621 of file CondAttrListCollection.h.
Current minimal IOVRange.
Definition at line 437 of file CondAttrListCollection.h.
|
inline |
Access to Chan/Name pairs via iterators.
Access to chan/name pairs via iterators.
Definition at line 363 of file CondAttrListCollection.h.
|
inline |
Definition at line 369 of file CondAttrListCollection.h.
|
inline |
|
inline |
Comparison operator.
Compares channels, IOVs and attributes. For attributes only types and values are compared, not the attribute names
Definition at line 614 of file CondAttrListCollection.h.
|
delete |
|
inline |
Equal operator.
Compares channels, IOVs and attributes. For attributes only types and values are compared, not the attribute names
Definition at line 601 of file CondAttrListCollection.h.
|
inline |
Reset minRange according to the IOVs of the contained channels.
This is needed to expand minRange, done with a subsequent addNewStart/Stop.
Definition at line 528 of file CondAttrListCollection.h.
|
inline |
number of Chan/AttributeList pairs
number of pairs
Definition at line 321 of file CondAttrListCollection.h.
|
private |
Definition at line 190 of file CondAttrListCollection.h.
|
private |
Definition at line 195 of file CondAttrListCollection.h.
|
private |
Definition at line 194 of file CondAttrListCollection.h.
|
private |
Definition at line 191 of file CondAttrListCollection.h.
|
private |
Definition at line 193 of file CondAttrListCollection.h.
|
private |
Definition at line 192 of file CondAttrListCollection.h.
|
private |
Definition at line 196 of file CondAttrListCollection.h.
1.8.18