ATLAS Offline Software
|
LArConditionsContainerDB template class Author: Walter Lampl Initial Version: April, 22nd 2005. More...
#include <LArConditionsContainerDB.h>
Classes | |
class | iteratorT |
Declaration of const iterator. More... | |
Public Member Functions | |
LArConditionsContainerDB (unsigned int gain=0) | |
Constructor with gain. More... | |
void | set (const FebId id, const int channel, const T &payload) |
Setter. More... | |
ConstReference | get (const FebId id, const int channel) const |
Getter. More... | |
Reference | getNonConst (const FebId id, const int channel) |
non-const get function (might extend FEB map) More... | |
bool | exist (FebId id) const |
Do conditions for FebId? Used by writers to check whether add is needed. More... | |
const_iterator | begin (const LArOnlineID_Base *onlineHelper) const |
Iterator over all channels. More... | |
const_iterator | end (const LArOnlineID_Base *onlineHelper) const |
iterator | begin (const LArOnlineID_Base *onlineHelper) |
iterator | end (const LArOnlineID_Base *onlineHelper) |
const_iterator | begin (const LArOnlineID_Base *onlineHelper, const FebIdVec &febIds) const |
Iterator over all channels of selected FEBs. More... | |
iterator | begin (const LArOnlineID_Base *onlineHelper, const FebIdVec &febIds) |
size_type | size () const |
Size of map. More... | |
int | getGain () const |
access to gain More... | |
void | setGain (int g) |
set gain More... | |
void | add (const LArConditionsContainerDB< T > *p) |
const ConditionsMap& getConditionsMap()const { return m_febMap ;} ; More... | |
void | add (FebId id, ChannelVectorPointer channelVec) |
add pointer to vector of (febid/channel vector) More... | |
void | erase (FebId id) |
erase element for this FebId More... | |
Protected Attributes | |
ConditionsMap | m_febMap |
ConditionsHashMap | m_febHashMap |
unsigned int | m_gain |
Private Attributes | |
const iterator | m_dummyIt |
const const_iterator | m_dummyConstIt |
LArConditionsContainerDB template class Author: Walter Lampl Initial Version: April, 22nd 2005.
Container class to store any kind of data object that is organized by FEB and FEB-channel number.
The data object stored in this container has to have a sensible default constructor. A default instance is returned by Get-function if the requested channel is not known. Furthermore, the data object must have a operator= because this operator is used by the set function.
About the iterator: The iterator-class holds internally a iterator over the FEB map and a iterator over the channels inside this FEB as well as an interator pointing to the last feb (NOT the end()!). begin() points to the first channel of the first FEB, end() to the 129th channel of the last FEB. The operator++ jumps form a last channel of FEB n to the first channel of FEB n+1 except we are already at the last FEB. The operator-- jumps from the first channel of FEB n to the last one of FEB n-1. It will try to do this even if FEB n is the first one and thus cause a segfault.
Definition at line 47 of file LArConditionsContainerDB.h.
typedef ChannelVector::iterator LArConditionsContainerDB< T >::ChannelIt |
Definition at line 59 of file LArConditionsContainerDB.h.
typedef Traits::ChannelVector LArConditionsContainerDB< T >::ChannelVector |
Definition at line 53 of file LArConditionsContainerDB.h.
typedef Traits::ChannelVectorPointer LArConditionsContainerDB< T >::ChannelVectorPointer |
Definition at line 55 of file LArConditionsContainerDB.h.
typedef std::unordered_map<FebId, ChannelVectorPointer > LArConditionsContainerDB< T >::ConditionsHashMap |
Definition at line 57 of file LArConditionsContainerDB.h.
typedef std::map<FebId, ChannelVectorPointer > LArConditionsContainerDB< T >::ConditionsMap |
Definition at line 56 of file LArConditionsContainerDB.h.
typedef ConditionsMap::iterator LArConditionsContainerDB< T >::ConditionsMapIterator |
Definition at line 61 of file LArConditionsContainerDB.h.
typedef iteratorT<ConstConditionsMapIterator, ConstChannelIt, ConstPointer, ConstReference> LArConditionsContainerDB< T >::const_iterator |
Definition at line 116 of file LArConditionsContainerDB.h.
typedef ChannelVector::const_iterator LArConditionsContainerDB< T >::ConstChannelIt |
Definition at line 58 of file LArConditionsContainerDB.h.
typedef Traits::ConstChannelVector LArConditionsContainerDB< T >::ConstChannelVector |
Definition at line 54 of file LArConditionsContainerDB.h.
typedef ConditionsMap::const_iterator LArConditionsContainerDB< T >::ConstConditionsMapIterator |
Definition at line 60 of file LArConditionsContainerDB.h.
typedef Traits::ConstPointer LArConditionsContainerDB< T >::ConstPointer |
Definition at line 67 of file LArConditionsContainerDB.h.
typedef Traits::ConstReference LArConditionsContainerDB< T >::ConstReference |
Definition at line 65 of file LArConditionsContainerDB.h.
typedef Traits::FebId LArConditionsContainerDB< T >::FebId |
Definition at line 52 of file LArConditionsContainerDB.h.
typedef std::vector<FebId> LArConditionsContainerDB< T >::FebIdVec |
Definition at line 63 of file LArConditionsContainerDB.h.
typedef iteratorT<ConditionsMapIterator, ChannelIt, Pointer, Reference> LArConditionsContainerDB< T >::iterator |
Definition at line 111 of file LArConditionsContainerDB.h.
typedef Traits::Pointer LArConditionsContainerDB< T >::Pointer |
Definition at line 66 of file LArConditionsContainerDB.h.
typedef Traits::Reference LArConditionsContainerDB< T >::Reference |
Definition at line 64 of file LArConditionsContainerDB.h.
typedef ConditionsMap::size_type LArConditionsContainerDB< T >::size_type |
Definition at line 62 of file LArConditionsContainerDB.h.
typedef LArConditionsSubsetTraits<T> LArConditionsContainerDB< T >::Traits |
Definition at line 51 of file LArConditionsContainerDB.h.
|
inline |
Constructor with gain.
Definition at line 186 of file LArConditionsContainerDB.h.
|
inline |
const ConditionsMap& getConditionsMap()const { return m_febMap ;} ;
Definition at line 657 of file LArConditionsContainerDB.h.
|
inline |
add pointer to vector of (febid/channel vector)
Definition at line 671 of file LArConditionsContainerDB.h.
|
inline |
Definition at line 210 of file LArConditionsContainerDB.h.
|
inline |
|
inline |
Definition at line 253 of file LArConditionsContainerDB.h.
|
inline |
Iterator over all channels of selected FEBs.
Definition at line 225 of file LArConditionsContainerDB.h.
|
inline |
Definition at line 302 of file LArConditionsContainerDB.h.
|
inline |
Definition at line 282 of file LArConditionsContainerDB.h.
|
inline |
erase element for this FebId
Definition at line 680 of file LArConditionsContainerDB.h.
|
inline |
Do conditions for FebId? Used by writers to check whether add is needed.
Definition at line 626 of file LArConditionsContainerDB.h.
|
inline |
|
inline |
access to gain
Definition at line 649 of file LArConditionsContainerDB.h.
|
inline |
non-const get function (might extend FEB map)
Definition at line 611 of file LArConditionsContainerDB.h.
|
inline |
|
inline |
set gain
Definition at line 633 of file LArConditionsContainerDB.h.
|
inline |
Size of map.
Definition at line 642 of file LArConditionsContainerDB.h.
|
private |
Definition at line 179 of file LArConditionsContainerDB.h.
|
private |
Definition at line 178 of file LArConditionsContainerDB.h.
|
protected |
Definition at line 172 of file LArConditionsContainerDB.h.
|
protected |
Definition at line 171 of file LArConditionsContainerDB.h.
|
protected |
Definition at line 174 of file LArConditionsContainerDB.h.