ATLAS Offline Software
|
#include <LArAutoCorrSym.h>
Classes | |
class | SubsetSort |
Public Member Functions | |
LArConditionsContainer () | |
default constructor More... | |
LArConditionsContainer (GroupingType type) | |
constructor defining grouping type More... | |
virtual | ~LArConditionsContainer () |
destructor More... | |
void | setPdata (const HWIdentifier id, const T &payload, unsigned int gain=0) |
put payload in persistent data More... | |
ConstReference | get (const HWIdentifier id, unsigned int gain=0) const |
get data with online identifier More... | |
Reference | get (const HWIdentifier id, unsigned int gain=0) |
non-const get data with online identifier More... | |
unsigned int | coolChannel (const HWIdentifier id, unsigned int gain=0) const |
Return the COOL channel number for a given online id and gain. More... | |
unsigned int | groupingType () const |
Type of grouping - defined in LArConditionContainerBase.h. More... | |
std::string | groupingTypeToString () const |
Type of grouping - defined in LArConditionContainerBase.h. More... | |
unsigned int | groupNumber (unsigned int coolChannel) const |
Return the group number of a COOL channel (0 - correction group, 1-N for FEB ID groups) More... | |
unsigned int | nGroups () const |
Number of groups - minimum is 2 (1 correction group, 1 FEB ID group) More... | |
unsigned int | minGain () const |
Mininum gain value. More... | |
unsigned int | nGains () const |
Number of gain values. More... | |
chan_const_iterator | chan_begin () const |
Access to Channel numbers via iterators - from MultChanCollection. More... | |
chan_const_iterator | chan_end () const |
chan_size_type | chan_size () const |
number of channels - from MultChanCollection More... | |
iov_const_iterator | iov_begin () const |
Access to IOVs via iterators - from MultChanCollection. More... | |
iov_const_iterator | iov_end () const |
iov_size_type | iov_size () const |
number of IOVs - from MultChanCollection More... | |
unsigned int | conditionsPerChannel (unsigned int coolChannel) const |
Statistics: number of conditions per COOL channel. More... | |
unsigned int | conditionsPerGroup (unsigned int group) const |
Statistics: number of conditions per group. More... | |
unsigned int | conditionsPerGain (unsigned int gain) const |
Statistics: number of conditions per gain. More... | |
unsigned int | totalNumberOfConditions () const |
Statistics: total number of conditions. More... | |
unsigned int | totalNumberOfCorrections () const |
Statistics: total number of corrections. More... | |
bool | correctionsApplied () const |
Have corrections been applied? More... | |
StatusCode | applyCorrections () |
apply correction set More... | |
StatusCode | undoCorrections () |
undo corrections that have been already applied More... | |
StatusCode | insertCorrection (HWIdentifier id, const T &cond, unsigned int gain, bool corrChannel=true) |
access to corrections - More... | |
ConstCorrectionIt | undoCorrBegin (unsigned int gain) const |
get iterator over the Undo-Vector for a certain gain More... | |
ConstCorrectionIt | undoCorrEnd (unsigned int gain) const |
ConstConditionsMapIterator | begin (unsigned int gain) const |
get iterator for all channels for a gain More... | |
ConditionsMapIterator | begin (unsigned int gain) |
ConstConditionsMapIterator | begin (unsigned int gain, const std::vector< FebId > &febIds) const |
get iterator for all channels for a gain, restricted to a list of FebIds More... | |
ConditionsMapIterator | begin (unsigned int gain, const std::vector< FebId > &febIds) |
ConstConditionsMapIterator | begin (unsigned int gain, const HWIdentifier &febId) const |
get iterator for all channels for a gain, restricted to one Feb More... | |
ConditionsMapIterator | begin (unsigned int gain, const HWIdentifier &febId) |
ConstConditionsMapIterator | end (unsigned int gain) const |
end of all channels for this gain More... | |
ConditionsMapIterator | end (unsigned int gain) |
void | removeConditions () |
Remove conditions leaving the corrections - may be needed to only write out the corrections when both are present. More... | |
void | removeConditionsChannel (unsigned int coolChannel) |
Remove the conditions for a specific cool channel - e.g. More... | |
std::vector< unsigned > | completeCorrectionChannels () |
Fill all non-existing Correction Channels with emtpy subsets This is necessary to terminate the IOV of the previous correction. More... | |
virtual StatusCode | initialize () |
Initialization done after creation or read back - derived classes may augment the functionality. More... | |
bool | merge (const LArConditionsContainer< T > &other) |
Protected Member Functions | |
ConstReference | empty () const |
Access to standard empty value. More... | |
Protected Attributes | |
GainMap | m_cached |
Map indexed by gain providing pointers into the data in the CondMultChanCollection. More... | |
Private Types | |
typedef std::vector< ConstPointer > | TVector |
typedef TVector::const_iterator | TVectorIterator |
typedef std::map< unsigned int, TVector > | TVectorMap |
typedef TVectorMap::const_iterator | TVectorMapIterator |
typedef Subset::CorrectionPair | CorrectionPair |
typedef Subset::CorrectionVec | CorrectionVector |
typedef Subset::ConstCorrectionVecIt | ConstCorrectionVecIt |
typedef std::vector< CorrectionVector > | CorrectionVectors |
typedef DataVector< Subset > | SubsetDV |
typedef SubsetDV::const_iterator | const_iterator |
typedef SubsetDV::iterator | iterator |
Private Member Functions | |
StatusCode | updateConditionsMap (FebId id, unsigned int gain, ConditionsMap &conditionsMap) |
Update the ConditionsMap for a new FEB ID. More... | |
void | sortSubsets () |
Sort subsets by channel number. More... | |
Private Attributes | |
ConstCorrectionIt | m_dummyCorrIt |
Dummy iterator (returned if requested for invalid gain) More... | |
CorrectionVectors | m_correctionsUndo |
bool | m_correctionsApplied |
CorrectionVector | m_emptyCorrectionVec |
Definition at line 14 of file LArAutoCorrSym.h.
typedef MultChanCollection::chan_const_iterator LArConditionsContainer< T >::chan_const_iterator |
Definition at line 95 of file LArConditionsContainer.h.
typedef MultChanCollection::chan_size_type LArConditionsContainer< T >::chan_size_type |
Definition at line 97 of file LArConditionsContainer.h.
typedef Subset::ChannelVector LArConditionsContainer< T >::ChannelVector |
Definition at line 74 of file LArConditionsContainer.h.
typedef ChannelVector::const_iterator LArConditionsContainer< T >::ChannelVectorIterator |
Definition at line 76 of file LArConditionsContainer.h.
typedef LArConditionsContainerDB<T> LArConditionsContainer< T >::ConditionsMap |
Typedefs for DB.
Definition at line 85 of file LArConditionsContainer.h.
typedef ConditionsMap::iterator LArConditionsContainer< T >::ConditionsMapIterator |
Definition at line 87 of file LArConditionsContainer.h.
|
private |
Definition at line 322 of file LArConditionsContainer.h.
typedef ConditionsMap::const_iterator LArConditionsContainer< T >::ConstConditionsMapIterator |
Definition at line 86 of file LArConditionsContainer.h.
typedef Subset::ConstCorrectionVecIt LArConditionsContainer< T >::ConstCorrectionIt |
Definition at line 78 of file LArConditionsContainer.h.
|
private |
Definition at line 319 of file LArConditionsContainer.h.
typedef GainMap::const_iterator LArConditionsContainer< T >::ConstGainMapIterator |
Definition at line 90 of file LArConditionsContainer.h.
typedef Subset::ConstPointer LArConditionsContainer< T >::ConstPointer |
Definition at line 82 of file LArConditionsContainer.h.
typedef Subset::ConstReference LArConditionsContainer< T >::ConstReference |
Definition at line 80 of file LArConditionsContainer.h.
|
private |
Definition at line 317 of file LArConditionsContainer.h.
|
private |
Definition at line 318 of file LArConditionsContainer.h.
|
private |
Definition at line 320 of file LArConditionsContainer.h.
typedef unsigned int LArConditionsContainer< T >::FebId |
Typedefs for subset.
Definition at line 71 of file LArConditionsContainer.h.
typedef Subset::FebPairReference LArConditionsContainer< T >::FebPairReference |
Definition at line 75 of file LArConditionsContainer.h.
typedef std::map<unsigned int, ConditionsMap > LArConditionsContainer< T >::GainMap |
Definition at line 88 of file LArConditionsContainer.h.
typedef GainMap::iterator LArConditionsContainer< T >::GainMapIterator |
Definition at line 91 of file LArConditionsContainer.h.
typedef std::pair<unsigned int, ConditionsMap > LArConditionsContainer< T >::GainPair |
Definition at line 89 of file LArConditionsContainer.h.
typedef MultChanCollection::iov_const_iterator LArConditionsContainer< T >::iov_const_iterator |
Definition at line 96 of file LArConditionsContainer.h.
typedef MultChanCollection::iov_size_type LArConditionsContainer< T >::iov_size_type |
Definition at line 98 of file LArConditionsContainer.h.
|
private |
Definition at line 323 of file LArConditionsContainer.h.
typedef T LArConditionsContainer< T >::LArCondObj |
Definition at line 69 of file LArConditionsContainer.h.
typedef CondMultChanCollection<Subset> LArConditionsContainer< T >::MultChanCollection |
Typedefs for MultChan access.
Definition at line 94 of file LArConditionsContainer.h.
typedef Subset::Pointer LArConditionsContainer< T >::Pointer |
Definition at line 81 of file LArConditionsContainer.h.
typedef Subset::Reference LArConditionsContainer< T >::Reference |
Definition at line 79 of file LArConditionsContainer.h.
typedef Subset::size_type LArConditionsContainer< T >::size_type |
Definition at line 77 of file LArConditionsContainer.h.
typedef LArConditionsSubset<T> LArConditionsContainer< T >::Subset |
Definition at line 72 of file LArConditionsContainer.h.
|
private |
Definition at line 321 of file LArConditionsContainer.h.
typedef LArConditionsSubset<T>::Traits LArConditionsContainer< T >::Traits |
Definition at line 73 of file LArConditionsContainer.h.
|
private |
Definition at line 313 of file LArConditionsContainer.h.
|
private |
Definition at line 314 of file LArConditionsContainer.h.
|
private |
Definition at line 315 of file LArConditionsContainer.h.
|
private |
Definition at line 316 of file LArConditionsContainer.h.
LArConditionsContainer< T >::LArConditionsContainer | ( | ) |
default constructor
LArConditionsContainer< T >::LArConditionsContainer | ( | GroupingType | type | ) |
constructor defining grouping type
|
virtual |
destructor
StatusCode LArConditionsContainer< T >::applyCorrections | ( | ) |
apply correction set
ConditionsMapIterator LArConditionsContainer< T >::begin | ( | unsigned int | gain | ) |
ConstConditionsMapIterator LArConditionsContainer< T >::begin | ( | unsigned int | gain | ) | const |
get iterator for all channels for a gain
ConditionsMapIterator LArConditionsContainer< T >::begin | ( | unsigned int | gain, |
const HWIdentifier & | febId | ||
) |
ConstConditionsMapIterator LArConditionsContainer< T >::begin | ( | unsigned int | gain, |
const HWIdentifier & | febId | ||
) | const |
get iterator for all channels for a gain, restricted to one Feb
ConditionsMapIterator LArConditionsContainer< T >::begin | ( | unsigned int | gain, |
const std::vector< FebId > & | febIds | ||
) |
ConstConditionsMapIterator LArConditionsContainer< T >::begin | ( | unsigned int | gain, |
const std::vector< FebId > & | febIds | ||
) | const |
get iterator for all channels for a gain, restricted to a list of FebIds
chan_const_iterator LArConditionsContainer< T >::chan_begin | ( | ) | const |
Access to Channel numbers via iterators - from MultChanCollection.
chan_const_iterator LArConditionsContainer< T >::chan_end | ( | ) | const |
chan_size_type LArConditionsContainer< T >::chan_size | ( | ) | const |
number of channels - from MultChanCollection
std::vector<unsigned> LArConditionsContainer< T >::completeCorrectionChannels | ( | ) |
Fill all non-existing Correction Channels with emtpy subsets This is necessary to terminate the IOV of the previous correction.
unsigned int LArConditionsContainer< T >::conditionsPerChannel | ( | unsigned int | coolChannel | ) | const |
Statistics: number of conditions per COOL channel.
unsigned int LArConditionsContainer< T >::conditionsPerGain | ( | unsigned int | gain | ) | const |
Statistics: number of conditions per gain.
unsigned int LArConditionsContainer< T >::conditionsPerGroup | ( | unsigned int | group | ) | const |
Statistics: number of conditions per group.
unsigned int LArConditionsContainer< T >::coolChannel | ( | const HWIdentifier | id, |
unsigned int | gain = 0 |
||
) | const |
Return the COOL channel number for a given online id and gain.
bool LArConditionsContainer< T >::correctionsApplied | ( | ) | const |
Have corrections been applied?
|
protected |
Access to standard empty value.
ConditionsMapIterator LArConditionsContainer< T >::end | ( | unsigned int | gain | ) |
ConstConditionsMapIterator LArConditionsContainer< T >::end | ( | unsigned int | gain | ) | const |
end of all channels for this gain
Reference LArConditionsContainer< T >::get | ( | const HWIdentifier | id, |
unsigned int | gain = 0 |
||
) |
non-const get data with online identifier
ConstReference LArConditionsContainer< T >::get | ( | const HWIdentifier | id, |
unsigned int | gain = 0 |
||
) | const |
get data with online identifier
unsigned int LArConditionsContainer< T >::groupingType | ( | ) | const |
Type of grouping - defined in LArConditionContainerBase.h.
std::string LArConditionsContainer< T >::groupingTypeToString | ( | ) | const |
Type of grouping - defined in LArConditionContainerBase.h.
unsigned int LArConditionsContainer< T >::groupNumber | ( | unsigned int | coolChannel | ) | const |
Return the group number of a COOL channel (0 - correction group, 1-N for FEB ID groups)
|
virtual |
Initialization done after creation or read back - derived classes may augment the functionality.
Reimplemented in LArShape32MC, LArRampMC, LArAutoCorrMC, LArfSamplMC, LAruA2MeVMC, LArDAC2uAMC, LArNoiseMC, LArMphysOverMcalMC, LArMinBiasAverageMC, and LArMinBiasMC.
StatusCode LArConditionsContainer< T >::insertCorrection | ( | HWIdentifier | id, |
const T & | cond, | ||
unsigned int | gain, | ||
bool | corrChannel = true |
||
) |
access to corrections -
Insert a new channel id / T pair. If new channel id is the same as an existing one, the new T replaces the old T
iov_const_iterator LArConditionsContainer< T >::iov_begin | ( | ) | const |
Access to IOVs via iterators - from MultChanCollection.
iov_const_iterator LArConditionsContainer< T >::iov_end | ( | ) | const |
iov_size_type LArConditionsContainer< T >::iov_size | ( | ) | const |
number of IOVs - from MultChanCollection
bool LArConditionsContainer< T >::merge | ( | const LArConditionsContainer< T > & | other | ) |
unsigned int LArConditionsContainer< T >::minGain | ( | ) | const |
Mininum gain value.
unsigned int LArConditionsContainer< T >::nGains | ( | ) | const |
Number of gain values.
unsigned int LArConditionsContainer< T >::nGroups | ( | ) | const |
Number of groups - minimum is 2 (1 correction group, 1 FEB ID group)
void LArConditionsContainer< T >::removeConditions | ( | ) |
Remove conditions leaving the corrections - may be needed to only write out the corrections when both are present.
void LArConditionsContainer< T >::removeConditionsChannel | ( | unsigned int | coolChannel | ) |
Remove the conditions for a specific cool channel - e.g.
in order not to write it out
void LArConditionsContainer< T >::setPdata | ( | const HWIdentifier | id, |
const T & | payload, | ||
unsigned int | gain = 0 |
||
) |
put payload in persistent data
|
private |
Sort subsets by channel number.
unsigned int LArConditionsContainer< T >::totalNumberOfConditions | ( | ) | const |
Statistics: total number of conditions.
unsigned int LArConditionsContainer< T >::totalNumberOfCorrections | ( | ) | const |
Statistics: total number of corrections.
ConstCorrectionIt LArConditionsContainer< T >::undoCorrBegin | ( | unsigned int | gain | ) | const |
get iterator over the Undo-Vector for a certain gain
StatusCode LArConditionsContainer< T >::undoCorrections | ( | ) |
undo corrections that have been already applied
ConstCorrectionIt LArConditionsContainer< T >::undoCorrEnd | ( | unsigned int | gain | ) | const |
|
private |
Update the ConditionsMap for a new FEB ID.
|
protected |
Map indexed by gain providing pointers into the data in the CondMultChanCollection.
Definition at line 286 of file LArConditionsContainer.h.
|
private |
Definition at line 327 of file LArConditionsContainer.h.
|
private |
Definition at line 326 of file LArConditionsContainer.h.
|
private |
Dummy iterator (returned if requested for invalid gain)
Definition at line 291 of file LArConditionsContainer.h.
|
private |
Definition at line 328 of file LArConditionsContainer.h.