ATLAS Offline Software
Loading...
Searching...
No Matches
LArRinjComplete Class Reference

This class implements the ILArRinj interface. More...

#include <LArRinjComplete.h>

Inheritance diagram for LArRinjComplete:
Collaboration diagram for LArRinjComplete:

Public Types

typedef LArConditionsContainer< LArRinjPCONTAINER
enum  { ERRORCODE = LArElecCalib::ERRORCODE }
typedef LArRinjP LArCondObj
typedef unsigned int FebId
 Typedefs for subset.
typedef LArConditionsSubset< LArRinjPSubset
typedef LArConditionsSubset< LArRinjP >::Traits Traits
typedef Subset::ChannelVector ChannelVector
typedef Subset::FebPairReference FebPairReference
typedef ChannelVector::const_iterator ChannelVectorIterator
typedef Subset::size_type size_type
typedef Subset::ConstCorrectionVecIt ConstCorrectionIt
typedef Subset::Reference Reference
typedef Subset::ConstReference ConstReference
typedef Subset::Pointer Pointer
typedef Subset::ConstPointer ConstPointer
typedef LArConditionsContainerDB< LArRinjPConditionsMap
 Typedefs for DB.
typedef ConditionsMap::const_iterator ConstConditionsMapIterator
typedef ConditionsMap::iterator ConditionsMapIterator
typedef std::map< unsigned int, ConditionsMapGainMap
typedef std::pair< unsigned int, ConditionsMapGainPair
typedef GainMap::const_iterator ConstGainMapIterator
typedef GainMap::iterator GainMapIterator
typedef CondMultChanCollection< SubsetMultChanCollection
 Typedefs for MultChan access.
typedef MultChanCollection::chan_const_iterator chan_const_iterator
typedef MultChanCollection::iov_const_iterator iov_const_iterator
typedef MultChanCollection::chan_size_type chan_size_type
typedef MultChanCollection::iov_size_type iov_size_type
enum  GroupingType
 Grouping type. More...
typedef LArCondFEBIdChanMap::FEBIdVector FEBIdVector
typedef unsigned int ChanNum
typedef std::vector< ChanNumChanVec
typedef std::vector< IOVRangeIOVVec
typedef ChanVec::iterator chan_iterator
typedef IOVVec::iterator iov_iterator
typedef BASE DataVector_BASE
typedef BASE DVL_BASE
typedef BASE::PtrVector PtrVector
 This is the type of the underlying std::vector (what stdcont returns).
typedef BASE::PtrVector BaseContainer
typedef LArRinjP *& reference
typedef LArRinjP *const & const_reference
typedef BASE::difference_type difference_type
typedef LArRinjPvalue_type
typedef BASE::allocator_type allocator_type
typedef LArRinjP ** pointer
typedef LArRinjP *const * const_pointer
typedef const LArRinjPconst_value_type
typedef LArRinjP base_value_type
 The T value used as the template parameter.
typedef std::unique_ptr< base_value_typeunique_type
 Type of a unique_ptr that can be used to insert elements into this container.
typedef DataModel_detail::ElementProxy< DataVectorElementProxy
 This type is used to proxy lvalue accesses to DataVector elements, in order to handle ownership.
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 Standard const_reverse_iterator.
typedef std::reverse_iterator< iteratorreverse_iterator
 Standard reverse_iterator.
typedef DataVector base_data_vector
using Deleter

Public Member Functions

 LArRinjComplete ()
virtual ~LArRinjComplete ()
virtual const float & Rinj (const HWIdentifier &CellID) const
void set (const HWIdentifier &CellID, float vRinj)
void setPdata (const HWIdentifier id, const LArRinjP &payload, unsigned int gain=0)
 put payload in persistent data
ConstReference get (const HWIdentifier id, unsigned int gain=0) const
 get data with online identifier
Reference get (const HWIdentifier id, unsigned int gain=0)
 non-const get data with online identifier
unsigned int coolChannel (const HWIdentifier id, unsigned int gain=0) const
 Return the COOL channel number for a given online id and gain.
unsigned int groupingType () const
 Type of grouping - defined in LArConditionContainerBase.h.
std::string groupingTypeToString () const
 Type of grouping - defined in LArConditionContainerBase.h.
unsigned int groupNumber (unsigned int coolChannel) const
 Return the group number of a COOL channel (0 - correction group, 1-N for FEB ID groups)
unsigned int nGroups () const
 Number of groups - minimum is 2 (1 correction group, 1 FEB ID group)
unsigned int minGain () const
 Mininum gain value.
unsigned int nGains () const
 Number of gain values.
chan_const_iterator chan_begin () const
 Access to Channel numbers via iterators - from MultChanCollection.
chan_const_iterator chan_end () const
chan_size_type chan_size () const
 number of channels - from MultChanCollection
iov_const_iterator iov_begin () const
 Access to IOVs via iterators - from MultChanCollection.
iov_const_iterator iov_end () const
iov_size_type iov_size () const
 number of IOVs - from MultChanCollection
unsigned int conditionsPerChannel (unsigned int coolChannel) const
 Statistics: number of conditions per COOL channel.
unsigned int conditionsPerGroup (unsigned int group) const
 Statistics: number of conditions per group.
unsigned int conditionsPerGain (unsigned int gain) const
 Statistics: number of conditions per gain.
unsigned int totalNumberOfConditions () const
 Statistics: total number of conditions.
unsigned int totalNumberOfCorrections () const
 Statistics: total number of corrections.
bool correctionsApplied () const
 Have corrections been applied?
StatusCode applyCorrections ()
 apply correction set
StatusCode undoCorrections ()
 undo corrections that have been already applied
StatusCode insertCorrection (HWIdentifier id, const LArRinjP &cond, unsigned int gain, bool corrChannel=true)
 access to corrections -
ConstCorrectionIt undoCorrBegin (unsigned int gain) const
 get iterator over the Undo-Vector for a certain gain
ConstCorrectionIt undoCorrEnd (unsigned int gain) const
ConstConditionsMapIterator begin (unsigned int gain) const
 get iterator for all channels for a gain
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
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
ConditionsMapIterator begin (unsigned int gain, const HWIdentifier &febId)
ConstConditionsMapIterator end (unsigned int gain) const
 end of all channels for this gain
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.
void removeConditionsChannel (unsigned int coolChannel)
 Remove the conditions for a specific cool channel - e.g.
std::vector< unsigned > completeCorrectionChannels ()
 Fill all non-existing Correction Channels with emtpy subsets This is necessary to terminate the IOV of the previous correction.
virtual StatusCode initialize ()
 Initialization done after creation or read back - derived classes may augment the functionality.
bool merge (const LArConditionsContainer< LArRinjP > &other)
StatusCode initializeBase ()
 initialize
void setGroupingType (GroupingType type)
 allow group type to be set externally - need to (re)initialize after setting grouping type
StatusCode setGroupingType (const std::string &groupingStr, MsgStream &logStr)
 allow group type to be set externally based on a string returns an FAILURE and a message to logStr if unknown string is supplied
const LArOnlineID_BaseonlineHelper () const
 provide access to online id helper
const CaloCell_Base_IDofflineHelper () const
 provide access to offline id helper
const FEBIdVectorfebIdVector (unsigned int gain, unsigned int coolChannel) const
 Access to a FEB ID vector for a given gain and COOL channel.
IOVRange minRange () const
 Current minimal IOVRange.
bool hasUniqueIOV () const
 Check whether there is a unique IOV for all channels.
void add (ChanNum chanNum)
 Adding in channel numbers.
void add (const IOVRange &range)
 Adding in iov ranges.
void addNewStop (const IOVTime &stop)
 Add new stop time to minRange - make sure that stop is <= to new stop.
void resetChannelNumbers ()
 Reset channel numbers - needed to allow sorting.
CondMultChanCollImplimplementation ()
 Get implementation.
Element access.

Change the vector capacity to match the current size.

Note: this does not affect auxiliary data.

const LArRinjPget (size_type n) const
 Access an element, as an rvalue.
const LArRinjPoperator[] (size_type n) const
 Access an element, as an rvalue.
ElementProxy operator[] (size_type n)
 Access an element, as an lvalue.
const LArRinjPat (size_type n) const
 Access an element, as an rvalue.
ElementProxy at (size_type n)
 Access an element, as an lvalue.
const LArRinjPfront () const
 Access the first element in the collection as an rvalue.
ElementProxy front ()
 Access the first element in the collection as an lvalue.
const LArRinjPback () const
 Access the last element in the collection as an rvalue.
ElementProxy back ()
 Access the last element in the collection as an lvalue.
Iterator creation.
const_iterator begin () const noexcept
 Return a const_iterator pointing at the beginning of the collection.
iterator begin () noexcept
 Return an iterator pointing at the beginning of the collection.
const_iterator end () const noexcept
 Return a const_iterator pointing past the end of the collection.
iterator end () noexcept
 Return an iterator pointing past the end of the collection.
const_reverse_iterator rbegin () const noexcept
 Return a const_reverse_iterator pointing past the end of the collection.
reverse_iterator rbegin () noexcept
 Return a reverse_iterator pointing past the end of the collection.
const_reverse_iterator rend () const noexcept
 Return a const_reverse_iterator pointing at the beginning of the collection.
reverse_iterator rend () noexcept
 Return a reverse_iterator pointing at the beginning of the collection.
const_iterator cbegin () const noexcept
 Return a const_iterator pointing at the beginning of the collection.
const_iterator cend () const noexcept
 Return a const_iterator pointing past the end of the collection.
const_reverse_iterator crbegin () const noexcept
 Return a const_reverse_iterator pointing past the end of the collection.
const_reverse_iterator crend () const noexcept
 Return a const_reverse_iterator pointing at the beginning of the collection.
Constructors, destructors, assignment.
void assign (InputIterator first, InputIterator last)
 Assign from iterators.
void assign (std::initializer_list< value_type > l)
Size and capacity.
size_type size () const noexcept
 Returns the number of elements in the collection.
void resize (size_type sz)
 Resizes the collection to the specified number of elements.
void reserve (size_type n)
 Attempt to preallocate enough memory for a specified number of elements.
Insertion operations.
value_type push_back (value_type pElem)
 Add an element to the end of the collection.
value_type push_back (std::unique_ptr< base_value_type > pElem)
 Add an element to the end of the collection.
size_type push_new (size_type n, F alloc)
 Create and add a number of new elements to the end of the container.
value_type emplace_back (value_type pElem)
 Add an element to the end of the collection.
iterator insert (iterator position, value_type pElem)
 Add a new element to the collection.
iterator insert (iterator position, std::unique_ptr< base_value_type > pElem)
 Add a new element to the collection.
void insert (iterator position, InputIterator first, InputIterator last)
 Add a group of new elements to the collection.
void insert (iterator position, InputIterator first, InputIterator last)
 Add a group of new elements to the collection.
void insert (iterator position, std::initializer_list< value_type > l)
 Add a group of new elements to the collection.
iterator emplace (iterator position, value_type pElem)
 Add a new element to the collection.
void insertMove (iterator position, DataVector &other)
 Insert the contents of another DataVector, with auxiliary data copied via move semantics.
Erasure operations.
iterator erase (iterator position)
 Remove element at a given position.
iterator erase (iterator first, iterator last)
 Remove a range of elements.
void pop_back ()
 Remove the last element from the collection.
void clear ()
 Erase all the elements in the collection.

Static Public Member Functions

static bool applyCorrectionsAtInit (bool setFlag=false, bool flag=true)
 provide access to flag which determines corrections are applied at initialize, i.e.

Static Public Attributes

static const bool has_virtual
 This is true for any DataVector class if we need to use virtual derivation to get to the base DataVector class.
static constexpr bool must_own
 If true, then this type must own its contents.

Protected Member Functions

ConstReference empty () const
 Access to standard empty value.
StatusCode initGrouping ()
void correctionIndexAndCoolChannel (HWIdentifier id, unsigned int gain, unsigned int &index, unsigned int &coolChannel)

Protected Attributes

GainMap m_cached
 Map indexed by gain providing pointers into the data in the CondMultChanCollection.
GroupingType m_groupType
LArCondFEBIdChanMap m_febIdChanMap
const LArOnlineID_Basem_onlineHelper
const CaloCell_Base_IDm_offlineHelper
std::vector< unsigned int > m_channelToMultChanCollIndex
bool m_isInitialized

Private Types

typedef std::vector< ConstPointerTVector
typedef TVector::const_iterator TVectorIterator
typedef std::map< unsigned int, TVectorTVectorMap
typedef TVectorMap::const_iterator TVectorMapIterator
typedef Subset::CorrectionPair CorrectionPair
typedef Subset::CorrectionVec CorrectionVector
typedef Subset::ConstCorrectionVecIt ConstCorrectionVecIt
typedef std::vector< CorrectionVectorCorrectionVectors
typedef DataVector< SubsetSubsetDV
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.
void sortSubsets ()
 Sort subsets by channel number.

Private Attributes

ConstCorrectionIt m_dummyCorrIt
 Dummy iterator (returned if requested for invalid gain)
CorrectionVectors m_correctionsUndo
bool m_correctionsApplied
CorrectionVector m_emptyCorrectionVec
CondMultChanCollImpl m_impl

Non-standard operations.

void resize (size_type sz)
void pop_back ()
void clear (SG::OwnershipPolicy ownPolicy)
 Erase all the elements in the collection, and reset the ownership mode.
void clear (SG::OwnershipPolicy ownPolicy, SG::IndexTrackingPolicy trackIndices)
void clear (std::unique_ptr< Deleter > deleter)
 Erase all the elements in the collection, and change how elements are to be deleted.
void clear ()
void clear (SG::OwnershipPolicy ownPolicy, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
void swapElement (size_type index, value_type newElem, reference oldElem)
 Swap one element out of the container.
void swapElement (iterator pos, value_type newElem, reference oldElem)
 Swap one element out of the container.
void swapElement (size_type index, std::unique_ptr< base_value_type > newElem, std::unique_ptr< base_value_type > &oldElem)
 Swap one element out of the container.
void swapElement (iterator pos, std::unique_ptr< base_value_type > newElem, std::unique_ptr< base_value_type > &oldElem)
 Swap one element out of the container.
virtual const DataModel_detail::DVLInfoBasedvlinfo_v () const override
 Return the DV/DL info struct for this class.
const SG::AuxVectorBaseauxbase () const
 Convert to AuxVectorBase.
size_type max_size () const noexcept
 Returns the size() of the largest possible collection.
size_type capacity () const noexcept
 Returns the total number of elements that the collection can hold before needing to allocate more memory.
void shrink_to_fit ()
const PtrVectorstdcont () const
 Return the underlying std::vector of the container.
SG::OwnershipPolicy ownPolicy () const
 Return the ownership policy setting for this container.
static const DataModel_detail::DVLInfoBasedvlinfo ()
 Return the DV/DL info struct for this class.
static int baseOffset (const std::type_info &ti)
 Return the offset of a base DataVector class.

Swap and sort.

void swap (DataVector &rhs)
 Swap this collection with another.
void sort ()
 Sort the container.
void sort (COMPARE comp)
 Sort the container with a user-specified comparison operator.
static void iter_swap (iterator a, iterator b)
 Swap the referents of two DataVector iterators.

Internal operations.

void resortAux (iterator beg, iterator end)
 Reset indices / reorder aux data after elements have been permuted.
void testInsert (const char *op)
 Test if we can insert; raise an exception if not.
void testInsertOol (const char *op)
 Test if we can insert; raise an exception if not.
SG::IsMostDerivedFlag m_isMostDerived
 This flag is true if this DV instance is the most-derived one.
void clearMostDerived ()
 Clear m_isMostDerived for this instance and for all bases.
virtual void setMostDerived () override
 Set m_isMostDerived for this instance and clear it for all bases.
void assignElement (typename BaseContainer::iterator pos, value_type newElem)
 Handle element assignment.
void assignElement (typename BaseContainer::iterator pos, std::unique_ptr< base_value_type > newElem)
 Handle element assignment.
void assignBaseElement (typename BaseContainer::iterator pos, typename BaseContainer::value_type newElem)
 Handle element assignment from a base pointer.
void shift (size_t pos, ptrdiff_t offs)
 Shift the auxiliary elements of the container.
virtual const std::type_info & dv_typeid () const override
 Find the most-derived DataVector class in the hierarchy.
typedef ROOT::Meta::Selection::DataVector< LArRinjP, DataVector_BASE >::self self
static int baseOffset1 (const char *p, const DataVector &dv, const std::type_info &ti)
 Helper for baseOffset.
static const LArRinjPdo_cast (const typename PtrVector::value_type p)
 Helper to shorten calls to DataModel_detail::DVLCast.
static LArRinjPdo_cast_nc (typename PtrVector::value_type p)
 Helper to shorten calls to DataModel_detail::DVLCast.

Detailed Description

This class implements the ILArRinj interface.

Author
M. Fanti
Version
0-0-1 , 22/12/05 use LArConditionsContainer. Hong Ma , Aug 5, 2005

Definition at line 25 of file LArRinjComplete.h.

Member Typedef Documentation

◆ allocator_type

typedef BASE::allocator_type DataVector< LArRinjP, BASE >::allocator_type
inherited

Definition at line 817 of file DataVector.h.

◆ base_data_vector

typedef DataVector DataVector< LArRinjP, BASE >::base_data_vector
inherited

Definition at line 854 of file DataVector.h.

◆ base_value_type

typedef LArRinjP DataVector< LArRinjP, BASE >::base_value_type
inherited

The T value used as the template parameter.

Note that this is different from value_type (that's T*).

Definition at line 825 of file DataVector.h.

◆ BaseContainer

typedef BASE::PtrVector DataVector< LArRinjP, BASE >::BaseContainer
inherited

Definition at line 807 of file DataVector.h.

◆ chan_const_iterator

typedef MultChanCollection::chan_const_iterator LArConditionsContainer< LArRinjP >::chan_const_iterator
inherited

Definition at line 95 of file LArConditionsContainer.h.

◆ chan_iterator

typedef ChanVec::iterator CondMultChanCollection< LArRinjP >::chan_iterator
inherited

Definition at line 59 of file CondMultChanCollection.h.

◆ chan_size_type

Definition at line 97 of file LArConditionsContainer.h.

◆ ChannelVector

typedef Subset::ChannelVector LArConditionsContainer< LArRinjP >::ChannelVector
inherited

Definition at line 74 of file LArConditionsContainer.h.

◆ ChannelVectorIterator

typedef ChannelVector::const_iterator LArConditionsContainer< LArRinjP >::ChannelVectorIterator
inherited

Definition at line 76 of file LArConditionsContainer.h.

◆ ChanNum

typedef unsigned int CondMultChanCollection< LArRinjP >::ChanNum
inherited

Definition at line 55 of file CondMultChanCollection.h.

◆ ChanVec

typedef std::vector<ChanNum> CondMultChanCollection< LArRinjP >::ChanVec
inherited

Definition at line 56 of file CondMultChanCollection.h.

◆ ConditionsMap

typedef LArConditionsContainerDB<LArRinjP> LArConditionsContainer< LArRinjP >::ConditionsMap
inherited

Typedefs for DB.

Definition at line 85 of file LArConditionsContainer.h.

◆ ConditionsMapIterator

typedef ConditionsMap::iterator LArConditionsContainer< LArRinjP >::ConditionsMapIterator
inherited

Definition at line 87 of file LArConditionsContainer.h.

◆ const_iterator

◆ const_pointer

typedef LArRinjP* const* DataVector< LArRinjP, BASE >::const_pointer
inherited

Definition at line 819 of file DataVector.h.

◆ const_reference

typedef LArRinjP* const& DataVector< LArRinjP, BASE >::const_reference
inherited

Definition at line 813 of file DataVector.h.

◆ const_reverse_iterator

typedef std::reverse_iterator<const_iterator> DataVector< LArRinjP, BASE >::const_reverse_iterator
inherited

Standard const_reverse_iterator.

Definition at line 847 of file DataVector.h.

◆ const_value_type

typedef const LArRinjP* DataVector< LArRinjP, BASE >::const_value_type
inherited

Definition at line 821 of file DataVector.h.

◆ ConstConditionsMapIterator

typedef ConditionsMap::const_iterator LArConditionsContainer< LArRinjP >::ConstConditionsMapIterator
inherited

Definition at line 86 of file LArConditionsContainer.h.

◆ ConstCorrectionIt

typedef Subset::ConstCorrectionVecIt LArConditionsContainer< LArRinjP >::ConstCorrectionIt
inherited

Definition at line 78 of file LArConditionsContainer.h.

◆ ConstCorrectionVecIt

typedef Subset::ConstCorrectionVecIt LArConditionsContainer< LArRinjP >::ConstCorrectionVecIt
privateinherited

Definition at line 319 of file LArConditionsContainer.h.

◆ ConstGainMapIterator

typedef GainMap::const_iterator LArConditionsContainer< LArRinjP >::ConstGainMapIterator
inherited

Definition at line 90 of file LArConditionsContainer.h.

◆ ConstPointer

typedef Subset::ConstPointer LArConditionsContainer< LArRinjP >::ConstPointer
inherited

Definition at line 82 of file LArConditionsContainer.h.

◆ ConstReference

typedef Subset::ConstReference LArConditionsContainer< LArRinjP >::ConstReference
inherited

Definition at line 80 of file LArConditionsContainer.h.

◆ CONTAINER

◆ CorrectionPair

typedef Subset::CorrectionPair LArConditionsContainer< LArRinjP >::CorrectionPair
privateinherited

Definition at line 317 of file LArConditionsContainer.h.

◆ CorrectionVector

typedef Subset::CorrectionVec LArConditionsContainer< LArRinjP >::CorrectionVector
privateinherited

Definition at line 318 of file LArConditionsContainer.h.

◆ CorrectionVectors

typedef std::vector<CorrectionVector> LArConditionsContainer< LArRinjP >::CorrectionVectors
privateinherited

Definition at line 320 of file LArConditionsContainer.h.

◆ DataVector_BASE

typedef BASE DataVector< LArRinjP, BASE >::DataVector_BASE
inherited

Definition at line 797 of file DataVector.h.

◆ Deleter

using DataVector< LArRinjP, BASE >::Deleter
inherited

Definition at line 857 of file DataVector.h.

◆ difference_type

typedef BASE::difference_type DataVector< LArRinjP, BASE >::difference_type
inherited

Definition at line 815 of file DataVector.h.

◆ DVL_BASE

typedef BASE DataVector< LArRinjP, BASE >::DVL_BASE
inherited

Definition at line 798 of file DataVector.h.

◆ ElementProxy

typedef DataModel_detail::ElementProxy<DataVector> DataVector< LArRinjP, BASE >::ElementProxy
inherited

This type is used to proxy lvalue accesses to DataVector elements, in order to handle ownership.

Definition at line 833 of file DataVector.h.

◆ FebId

typedef unsigned int LArConditionsContainer< LArRinjP >::FebId
inherited

Typedefs for subset.

Definition at line 71 of file LArConditionsContainer.h.

◆ FEBIdVector

◆ FebPairReference

typedef Subset::FebPairReference LArConditionsContainer< LArRinjP >::FebPairReference
inherited

Definition at line 75 of file LArConditionsContainer.h.

◆ GainMap

typedef std::map<unsigned int, ConditionsMap > LArConditionsContainer< LArRinjP >::GainMap
inherited

Definition at line 88 of file LArConditionsContainer.h.

◆ GainMapIterator

typedef GainMap::iterator LArConditionsContainer< LArRinjP >::GainMapIterator
inherited

Definition at line 91 of file LArConditionsContainer.h.

◆ GainPair

typedef std::pair<unsigned int, ConditionsMap > LArConditionsContainer< LArRinjP >::GainPair
inherited

Definition at line 89 of file LArConditionsContainer.h.

◆ iov_const_iterator

Definition at line 96 of file LArConditionsContainer.h.

◆ iov_iterator

typedef IOVVec::iterator CondMultChanCollection< LArRinjP >::iov_iterator
inherited

Definition at line 62 of file CondMultChanCollection.h.

◆ iov_size_type

Definition at line 98 of file LArConditionsContainer.h.

◆ IOVVec

typedef std::vector<IOVRange> CondMultChanCollection< LArRinjP >::IOVVec
inherited

Definition at line 57 of file CondMultChanCollection.h.

◆ iterator

Definition at line 323 of file LArConditionsContainer.h.

◆ LArCondObj

typedef LArRinjP LArConditionsContainer< LArRinjP >::LArCondObj
inherited

Definition at line 69 of file LArConditionsContainer.h.

◆ MultChanCollection

typedef CondMultChanCollection<Subset> LArConditionsContainer< LArRinjP >::MultChanCollection
inherited

Typedefs for MultChan access.

Definition at line 94 of file LArConditionsContainer.h.

◆ Pointer

typedef Subset::Pointer LArConditionsContainer< LArRinjP >::Pointer
inherited

Definition at line 81 of file LArConditionsContainer.h.

◆ pointer

typedef LArRinjP** DataVector< LArRinjP, BASE >::pointer
inherited

Definition at line 818 of file DataVector.h.

◆ PtrVector

typedef BASE::PtrVector DataVector< LArRinjP, BASE >::PtrVector
inherited

This is the type of the underlying std::vector (what stdcont returns).

Definition at line 806 of file DataVector.h.

◆ Reference

typedef Subset::Reference LArConditionsContainer< LArRinjP >::Reference
inherited

Definition at line 79 of file LArConditionsContainer.h.

◆ reference

typedef LArRinjP*& DataVector< LArRinjP, BASE >::reference
inherited

Definition at line 812 of file DataVector.h.

◆ reverse_iterator

typedef std::reverse_iterator<iterator> DataVector< LArRinjP, BASE >::reverse_iterator
inherited

Standard reverse_iterator.

Note that lvalue references here will yield an ElementProxy, not a reference.

Definition at line 852 of file DataVector.h.

◆ self

typedef ROOT::Meta::Selection::DataVector<LArRinjP,DataVector_BASE>::self DataVector< LArRinjP, BASE >::self
privateinherited

Definition at line 2063 of file DataVector.h.

◆ size_type

typedef Subset::size_type LArConditionsContainer< LArRinjP >::size_type
inherited

Definition at line 77 of file LArConditionsContainer.h.

◆ Subset

Definition at line 72 of file LArConditionsContainer.h.

◆ SubsetDV

typedef DataVector<Subset> LArConditionsContainer< LArRinjP >::SubsetDV
privateinherited

Definition at line 321 of file LArConditionsContainer.h.

◆ Traits

◆ TVector

typedef std::vector<ConstPointer> LArConditionsContainer< LArRinjP >::TVector
privateinherited

Definition at line 313 of file LArConditionsContainer.h.

◆ TVectorIterator

typedef TVector::const_iterator LArConditionsContainer< LArRinjP >::TVectorIterator
privateinherited

Definition at line 314 of file LArConditionsContainer.h.

◆ TVectorMap

typedef std::map<unsigned int, TVector> LArConditionsContainer< LArRinjP >::TVectorMap
privateinherited

Definition at line 315 of file LArConditionsContainer.h.

◆ TVectorMapIterator

typedef TVectorMap::const_iterator LArConditionsContainer< LArRinjP >::TVectorMapIterator
privateinherited

Definition at line 316 of file LArConditionsContainer.h.

◆ unique_type

typedef std::unique_ptr<base_value_type> DataVector< LArRinjP, BASE >::unique_type
inherited

Type of a unique_ptr that can be used to insert elements into this container.

Definition at line 829 of file DataVector.h.

◆ value_type

typedef LArRinjP* DataVector< LArRinjP, BASE >::value_type
inherited

Definition at line 816 of file DataVector.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
ERRORCODE 

Definition at line 28 of file ILArRinj.h.

◆ GroupingType

Constructor & Destructor Documentation

◆ LArRinjComplete()

LArRinjComplete::LArRinjComplete ( )

Definition at line 8 of file LArRinjComplete.cxx.

8{}

◆ ~LArRinjComplete()

LArRinjComplete::~LArRinjComplete ( )
virtual

Definition at line 10 of file LArRinjComplete.cxx.

10{}

Member Function Documentation

◆ add() [1/2]

template<typename T>
void CondMultChanCollection< T >::add ( const IOVRange & range)
inlineinherited

Adding in iov ranges.

Definition at line 208 of file CondMultChanCollection.h.

209{
210 m_impl.add(range);
211}
A CondMultChanCollection is a template class which can hold a collection of T* objects which are inte...

◆ add() [2/2]

void CondMultChanCollection< LArRinjP >::add ( ChanNum chanNum)
inlineinherited

Adding in channel numbers.

Definition at line 89 of file CondMultChanCollection.h.

◆ addNewStop()

void CondMultChanCollection< LArRinjP >::addNewStop ( const IOVTime & stop)
inlineinherited

Add new stop time to minRange - make sure that stop is <= to new stop.

Definition at line 96 of file CondMultChanCollection.h.

219{
220 m_impl.addNewStop(stop);
221}

◆ applyCorrections()

StatusCode LArConditionsContainer< LArRinjP >::applyCorrections ( )
inherited

apply correction set

◆ applyCorrectionsAtInit()

bool LArConditionsContainerBase::applyCorrectionsAtInit ( bool setFlag = false,
bool flag = true )
staticinherited

provide access to flag which determines corrections are applied at initialize, i.e.

when conditions are read in. Default is true. This is a class (static) variable which applied to ALL conditions in a job! If one wants to change the value of the flag, pass in arguments:

Definition at line 92 of file LArConditionsContainerBase.cxx.

565{
566 // If setFlag is true, change the value of static flag, otherwise
567 // return current value
568
569 // Default value is true
570 static std::atomic<bool> applyCorrs = true;
571
572 if (setFlag) applyCorrs = flag;
573
574 return (applyCorrs);
575}

◆ assign() [1/2]

void DataVector< LArRinjP, BASE >::assign ( InputIterator first,
InputIterator last )
inherited

Assign from iterators.

Parameters
firstThe start of the range to put in the container.
lastThe end of the range to put in the container.

Any existing owned elements will be released. The DataVector's ownership policy determines whether it will take ownership of the new elements.

◆ assign() [2/2]

void DataVector< LArRinjP, BASE >::assign ( std::initializer_list< value_type > l)
inherited
Parameters
lAn initializer list.

Any existing owned elements will be released. The DataVector's ownership policy determines whether it will take ownership of the new elements.

◆ assignBaseElement()

void DataVector< LArRinjP, BASE >::assignBaseElement ( typename BaseContainer::iterator pos,
typename BaseContainer::value_type newElem )
privateinherited

Handle element assignment from a base pointer.

Parameters
posPosition in the container to assign.
newElemThe new element to assign.

The old element is freed if this container owns elements. Auxiliary data are copied if appropriate.

◆ assignElement() [1/2]

void DataVector< LArRinjP, BASE >::assignElement ( typename BaseContainer::iterator pos,
std::unique_ptr< base_value_type > newElem )
privateinherited

Handle element assignment.

Parameters
posPosition in the container to assign.
newElemThe new element to assign.

The container must own its elements. Auxiliary data are copied if appropriate.

◆ assignElement() [2/2]

void DataVector< LArRinjP, BASE >::assignElement ( typename BaseContainer::iterator pos,
value_type newElem )
privateinherited

Handle element assignment.

Parameters
posPosition in the container to assign.
newElemThe new element to assign.

The old element is freed if this container owns elements. Auxiliary data are copied if appropriate.

◆ at() [1/2]

ElementProxy DataVector< LArRinjP, BASE >::at ( size_type n)
inherited

Access an element, as an lvalue.

Parameters
nArray index to access.
Returns
Proxy to the element at n.

Will raise std::out_of_range if the index is out-of-bounds. Note that we return a proxy object rather than a reference; the proxy will handle deleting an owned element if it's assigned to.

◆ at() [2/2]

const LArRinjP * DataVector< LArRinjP, BASE >::at ( size_type n) const
inherited

Access an element, as an rvalue.

Parameters
nArray index to access.
Returns
The element at n.

Will raise std::out_of_range if the index is out-of-bounds. Note that we return a const T* rather than a reference.

◆ auxbase()

const SG::AuxVectorBase & DataVector< LArRinjP, BASE >::auxbase ( ) const
inherited

Convert to AuxVectorBase.

Needed to get AuxVectorBase from a ConstDataVector. Present in DataVector as well for consistency. We only really need it in the base class; however, root6 fails constructing a TMethodCall for this if there is virtual derivation. A workaround is to redeclare this in the derived classes too.

◆ back() [1/2]

ElementProxy DataVector< LArRinjP, BASE >::back ( )
inherited

Access the last element in the collection as an lvalue.

Returns
Proxy to the last element in the collection.

No checking is done to ensure that the container is not empty. Note that we return a proxy object rather than a reference; the proxy will handle deleting an owned element if it's assigned to.

◆ back() [2/2]

const LArRinjP * DataVector< LArRinjP, BASE >::back ( ) const
inherited

Access the last element in the collection as an rvalue.

Returns
The last element in the collection.

No checking is done to ensure that the container is not empty. Note that we return a const T* rather than a reference.

◆ baseOffset()

int DataVector< LArRinjP, BASE >::baseOffset ( const std::type_info & ti)
staticinherited

Return the offset of a base DataVector class.

Parameters
tistd::type_info of the desired class.

If ti represents a DataVector base class of this one, then return the offset of that base class. Otherwise, return -1.

This function is here due to limitations of root 6, which can't calculate these offsets correctly from the dictionary if virtual derivation is used.

◆ baseOffset1()

int DataVector< LArRinjP, BASE >::baseOffset1 ( const char * p,
const DataVector & dv,
const std::type_info & ti )
staticinherited

Helper for baseOffset.

Parameters
pPointer to the start of the top-level object.
dvReference to the DataVector object.
tistd::type_info of the desired class.

If ti represents a DataVector base class of this one, then return the offset of that base class. Otherwise, return -1.

◆ begin() [1/8]

const_iterator DataVector< LArRinjP, BASE >::begin ( ) const
noexceptinherited

Return a const_iterator pointing at the beginning of the collection.

Returns
A const_iterator.

Note that dereferencing the iterator will yield a const T* rather than a reference.

◆ begin() [2/8]

iterator DataVector< LArRinjP, BASE >::begin ( )
noexceptinherited

Return an iterator pointing at the beginning of the collection.

Returns
An iterator.

Note that dereferencing the iterator will yield a proxy rather than a reference; the proxy will handle deleting an owned element if it's assigned to.

◆ begin() [3/8]

ConditionsMapIterator LArConditionsContainer< LArRinjP >::begin ( unsigned int gain)
inherited

◆ begin() [4/8]

ConstConditionsMapIterator LArConditionsContainer< LArRinjP >::begin ( unsigned int gain) const
inherited

get iterator for all channels for a gain

◆ begin() [5/8]

ConditionsMapIterator LArConditionsContainer< LArRinjP >::begin ( unsigned int gain,
const HWIdentifier & febId )
inherited

◆ begin() [6/8]

ConstConditionsMapIterator LArConditionsContainer< LArRinjP >::begin ( unsigned int gain,
const HWIdentifier & febId ) const
inherited

get iterator for all channels for a gain, restricted to one Feb

◆ begin() [7/8]

ConditionsMapIterator LArConditionsContainer< LArRinjP >::begin ( unsigned int gain,
const std::vector< FebId > & febIds )
inherited

◆ begin() [8/8]

ConstConditionsMapIterator LArConditionsContainer< LArRinjP >::begin ( unsigned int gain,
const std::vector< FebId > & febIds ) const
inherited

get iterator for all channels for a gain, restricted to a list of FebIds

◆ capacity()

size_type DataVector< LArRinjP, BASE >::capacity ( ) const
noexceptinherited

Returns the total number of elements that the collection can hold before needing to allocate more memory.

◆ cbegin()

const_iterator DataVector< LArRinjP, BASE >::cbegin ( ) const
noexceptinherited

Return a const_iterator pointing at the beginning of the collection.

Returns
A const_iterator.

Note that dereferencing the iterator will yield a const T* rather than a reference.

◆ cend()

const_iterator DataVector< LArRinjP, BASE >::cend ( ) const
noexceptinherited

Return a const_iterator pointing past the end of the collection.

Returns
A const_iterator.

Note that dereferencing the iterator will yield a const T* rather than a reference.

◆ chan_begin()

chan_const_iterator LArConditionsContainer< LArRinjP >::chan_begin ( ) const
inherited

Access to Channel numbers via iterators - from MultChanCollection.

◆ chan_end()

chan_const_iterator LArConditionsContainer< LArRinjP >::chan_end ( ) const
inherited

◆ chan_size()

chan_size_type LArConditionsContainer< LArRinjP >::chan_size ( ) const
inherited

number of channels - from MultChanCollection

◆ clear() [1/6]

void DataVector< LArRinjP, BASE >::clear ( )
inherited

Erase all the elements in the collection.

Erase all the elements in the collection, and reset the ownership mode.

If the container owns its elements, then the removed elements will be deleted. Any duplicates will be removed in this process, but don't rely on this.

Parameters
ownPolicyThe new ownership policy of the container.
trackIndicesThe index tracking policy.

If the container owns its elements, then the removed elements will be deleted. Any duplicates will be removed in this process, but don't rely on this.

◆ clear() [2/6]

void DataVector< LArRinjP, BASE >::clear ( )
inherited

◆ clear() [3/6]

void DataVector< LArRinjP, BASE >::clear ( SG::OwnershipPolicy ownPolicy)
inherited

Erase all the elements in the collection, and reset the ownership mode.

Parameters
ownPolicyThe new ownership policy of the container.

If the container owns its elements, then the removed elements will be deleted. Any duplicates will be removed in this process, but don't rely on this.

◆ clear() [4/6]

void DataVector< LArRinjP, BASE >::clear ( SG::OwnershipPolicy ownPolicy,
SG::IndexTrackingPolicy trackIndices )
inherited

◆ clear() [5/6]

void DataVector< LArRinjP, BASE >::clear ( SG::OwnershipPolicy ownPolicy,
SG::IndexTrackingPolicy trackIndices = SG::DEFAULT_TRACK_INDICES )
inherited

◆ clear() [6/6]

void DataVector< LArRinjP, BASE >::clear ( std::unique_ptr< Deleter > deleter)
inherited

Erase all the elements in the collection, and change how elements are to be deleted.

Parameters
deleterObject to be used to delete object. Passing nullptr will change back to the default.

If the container owns its elements, then the removed elements will be deleted. Any duplicates will be removed in this process, but don't rely on this. After the current elements are deleted, the Deleter object is changed.

◆ clearMostDerived()

void DataVector< LArRinjP, BASE >::clearMostDerived ( )
protectedinherited

Clear m_isMostDerived for this instance and for all bases.

Called from the constructor after setting m_isMostDerived.

◆ completeCorrectionChannels()

std::vector< unsigned > LArConditionsContainer< LArRinjP >::completeCorrectionChannels ( )
inherited

Fill all non-existing Correction Channels with emtpy subsets This is necessary to terminate the IOV of the previous correction.

◆ conditionsPerChannel()

unsigned int LArConditionsContainer< LArRinjP >::conditionsPerChannel ( unsigned int coolChannel) const
inherited

Statistics: number of conditions per COOL channel.

◆ conditionsPerGain()

unsigned int LArConditionsContainer< LArRinjP >::conditionsPerGain ( unsigned int gain) const
inherited

Statistics: number of conditions per gain.

◆ conditionsPerGroup()

unsigned int LArConditionsContainer< LArRinjP >::conditionsPerGroup ( unsigned int group) const
inherited

Statistics: number of conditions per group.

◆ coolChannel()

unsigned int LArConditionsContainer< LArRinjP >::coolChannel ( const HWIdentifier id,
unsigned int gain = 0 ) const
inherited

Return the COOL channel number for a given online id and gain.

◆ correctionIndexAndCoolChannel()

void LArConditionsContainerBase::correctionIndexAndCoolChannel ( HWIdentifier id,
unsigned int gain,
unsigned int & index,
unsigned int & coolChannel )
protectedinherited

Definition at line 102 of file LArConditionsContainerBase.cxx.

504{
505 MsgStream log(Athena::getMessageSvc(), "LArConditionsContainerBase");
506
507 index = 9999;
508 coolChannel = 0;
509 // First get cool channel number
510 if (!m_onlineHelper) {
511 log << MSG::ERROR << "correctionIndex> Could not get online id helper!" << endmsg;
512 return;
513 }
514
515 int p_n = m_onlineHelper->pos_neg(id);
516 if (m_onlineHelper->isEMBPS(id)) {
517 if (p_n) coolChannel = LArCondFEBIdChanMap::PSBA; // PS Barrel
518 else coolChannel = LArCondFEBIdChanMap::PSBC; // PS Barrel
519 }
520 else if (m_onlineHelper->isEMECPS(id)) {
521 if (p_n) coolChannel = LArCondFEBIdChanMap::PSECA; // PS Endcap
522 else coolChannel = LArCondFEBIdChanMap::PSECC; // PS Endcap
523 }
524 else if (m_onlineHelper->isEMBchannel(id)) {
525 if (p_n) coolChannel = LArCondFEBIdChanMap::EMBA; // EM Barrel
526 else coolChannel = LArCondFEBIdChanMap::EMBC; // EM Barrel
527 }
528 else if (m_onlineHelper->isEMECchannel(id)) {
529 if (p_n) coolChannel = LArCondFEBIdChanMap::EMECA; // EM Endcap
530 else coolChannel = LArCondFEBIdChanMap::EMECC; // EM Endcap
531 }
532 else if (m_onlineHelper->isHECchannel(id)) {
535 }
536 else if (m_onlineHelper->isFCALchannel(id)) {
539 }
540
541 if (!coolChannel) {
542 log << MSG::ERROR << "correctionIndex> coolChannel not found! Online ids: "
543 << " " << m_onlineHelper->show_to_string(id)
544 << endmsg;
545 return;
546 }
547
548 // add on offset for gain
551
552 // look up the index in the table
554 log << MSG::ERROR << "correctionIndex> coolChannel larger than lookup table: chan, size "
555 << coolChannel << " " << m_channelToMultChanCollIndex.size()
556 << endmsg;
557 }
558 else {
560 }
561}
std::vector< unsigned int > m_channelToMultChanCollIndex
unsigned int coolChannel(const HWIdentifier id, unsigned int gain=0) const

◆ correctionsApplied()

bool LArConditionsContainer< LArRinjP >::correctionsApplied ( ) const
inherited

Have corrections been applied?

◆ crbegin()

const_reverse_iterator DataVector< LArRinjP, BASE >::crbegin ( ) const
noexceptinherited

Return a const_reverse_iterator pointing past the end of the collection.

Returns
A const_reverse_iterator.

Note that dereferencing the iterator will yield a const T* rather than a reference.

◆ crend()

const_reverse_iterator DataVector< LArRinjP, BASE >::crend ( ) const
noexceptinherited

Return a const_reverse_iterator pointing at the beginning of the collection.

Returns
A const_reverse_iterator.

Note that dereferencing the iterator will yield a const T* rather than a reference.

◆ do_cast()

const LArRinjP * DataVector< LArRinjP, BASE >::do_cast ( const typename PtrVector::value_type p)
staticinherited

Helper to shorten calls to DataModel_detail::DVLCast.

Parameters
pThe value to convert.
Returns
The value as a const T*.

The conversion will be done with static_cast if possible, with dynamic_cast otherwise.

◆ do_cast_nc()

LArRinjP * DataVector< LArRinjP, BASE >::do_cast_nc ( typename PtrVector::value_type p)
staticinherited

Helper to shorten calls to DataModel_detail::DVLCast.

Parameters
pThe value to convert.
Returns
The value as a T*.

The conversion will be done with static_cast if possible, with dynamic_cast otherwise.

◆ dv_typeid()

virtual const std::type_info & DataVector< LArRinjP, BASE >::dv_typeid ( ) const
overrideprivatevirtualinherited

Find the most-derived DataVector class in the hierarchy.

Returns
The type_info for the class for which this method gets run.

This is used to generate a nice error message when the most-derived check for insertions fails. Every DataVector defines this virtual method, so when it's called, the one corresponding to the most-derived DataVector gets run.

◆ dvlinfo()

const DataModel_detail::DVLInfoBase & DataVector< LArRinjP, BASE >::dvlinfo ( )
staticinherited

Return the DV/DL info struct for this class.

This can be used to make sure that it's instantiated.

◆ dvlinfo_v()

virtual const DataModel_detail::DVLInfoBase & DataVector< LArRinjP, BASE >::dvlinfo_v ( ) const
overridevirtualinherited

Return the DV/DL info struct for this class.

This can be used to make sure that it's instantiated.

◆ emplace()

iterator DataVector< LArRinjP, BASE >::emplace ( iterator position,
value_type pElem )
inherited

Add a new element to the collection.

Parameters
positionIterator before which the element will be added.
pElemThe element to add to the collection.
Returns
An iterator that points to the inserted data.

The container's ownership policy will determine if it takes ownership of the new element.

Note: this method may only be called using the most derived DataVector in the hierarchy.

For DataVector, this is just the same as insert. It's included just for interface compatibility with std::vector.

◆ emplace_back()

value_type DataVector< LArRinjP, BASE >::emplace_back ( value_type pElem)
inherited

Add an element to the end of the collection.

Parameters
pElemThe element to add to the collection.

The container's ownership policy will determine if it takes ownership of the new element.

Note: this method may only be called using the most derived DataVector in the hierarchy.

For DataVector, this is like the same as push_back, and it returns the pushed element. It's included just for interface compatibility with std::vector.

◆ empty()

ConstReference LArConditionsContainer< LArRinjP >::empty ( ) const
protectedinherited

Access to standard empty value.

◆ end() [1/4]

const_iterator DataVector< LArRinjP, BASE >::end ( ) const
noexceptinherited

Return a const_iterator pointing past the end of the collection.

Returns
A const_iterator.

Note that dereferencing the iterator will yield a const T* rather than a reference.

◆ end() [2/4]

iterator DataVector< LArRinjP, BASE >::end ( )
noexceptinherited

Return an iterator pointing past the end of the collection.

Returns
An iterator.

Note that dereferencing the iterator will yield a proxy rather than a reference; the proxy will handle deleting an owned element if it's assigned to.

◆ end() [3/4]

ConditionsMapIterator LArConditionsContainer< LArRinjP >::end ( unsigned int gain)
inherited

◆ end() [4/4]

ConstConditionsMapIterator LArConditionsContainer< LArRinjP >::end ( unsigned int gain) const
inherited

end of all channels for this gain

◆ erase() [1/2]

iterator DataVector< LArRinjP, BASE >::erase ( iterator first,
iterator last )
inherited

Remove a range of elements.

Parameters
firstIterator pointing to the first element to be removed.
lastIterator pointing one past the last element to be removed.
Returns
An iterator pointing to the element pointed to by last prior to erasing (or end()).

If the container owns its elements, then the removed elements will be deleted. Any duplicates will be removed in this process, but don't rely on this.

◆ erase() [2/2]

iterator DataVector< LArRinjP, BASE >::erase ( iterator position)
inherited

Remove element at a given position.

Parameters
positionIterator pointing to the element to be removed.
Returns
An iterator pointing to the next element (or end()).

If the container owns its elements, then the pointed-to element will be deleted.

◆ febIdVector()

const LArConditionsContainerBase::FEBIdVector & LArConditionsContainerBase::febIdVector ( unsigned int gain,
unsigned int coolChannel ) const
inherited

Access to a FEB ID vector for a given gain and COOL channel.

Definition at line 83 of file LArConditionsContainerBase.cxx.

495{
496 return (m_febIdChanMap.febIdVector(gain, coolChannel));
497}

◆ front() [1/2]

ElementProxy DataVector< LArRinjP, BASE >::front ( )
inherited

Access the first element in the collection as an lvalue.

Returns
Proxy to the first element in the collection.

No checking is done to ensure that the container is not empty. Note that we return a proxy object rather than a reference; the proxy will handle deleting an owned element if it's assigned to.

◆ front() [2/2]

const LArRinjP * DataVector< LArRinjP, BASE >::front ( ) const
inherited

Access the first element in the collection as an rvalue.

Returns
The first element in the collection.

No checking is done to ensure that the container is not empty. Note that we return a const T* rather than a reference.

◆ get() [1/3]

Reference LArConditionsContainer< LArRinjP >::get ( const HWIdentifier id,
unsigned int gain = 0 )
inherited

non-const get data with online identifier

◆ get() [2/3]

ConstReference LArConditionsContainer< LArRinjP >::get ( const HWIdentifier id,
unsigned int gain = 0 ) const
inherited

get data with online identifier

◆ get() [3/3]

const LArRinjP * DataVector< LArRinjP, BASE >::get ( size_type n) const
inherited

Access an element, as an rvalue.

Parameters
nArray index to access.
Returns
The element at n.

This is a synonym for operator[] const, to be used when calling from root (where we can't readily call just the const version of a method).

◆ groupingType()

unsigned int LArConditionsContainer< LArRinjP >::groupingType ( ) const
inherited

Type of grouping - defined in LArConditionContainerBase.h.

◆ groupingTypeToString()

std::string LArConditionsContainer< LArRinjP >::groupingTypeToString ( ) const
inherited

Type of grouping - defined in LArConditionContainerBase.h.

◆ groupNumber()

unsigned int LArConditionsContainer< LArRinjP >::groupNumber ( unsigned int coolChannel) const
inherited

Return the group number of a COOL channel (0 - correction group, 1-N for FEB ID groups)

◆ hasUniqueIOV()

bool CondMultChanCollection< LArRinjP >::hasUniqueIOV ( ) const
inlineinherited

Check whether there is a unique IOV for all channels.

Definition at line 86 of file CondMultChanCollection.h.

191{
192 return (m_impl.hasUniqueIOV());
193}

◆ implementation()

CondMultChanCollImpl * CondMultChanCollection< LArRinjP >::implementation ( )
inlineinherited

Get implementation.

Definition at line 106 of file CondMultChanCollection.h.

247{
248 return &m_impl;
249}

◆ initGrouping()

StatusCode LArConditionsContainerBase::initGrouping ( )
protectedinherited

Definition at line 96 of file LArConditionsContainerBase.cxx.

131{
132 MsgStream log(Athena::getMessageSvc(), "LArConditionsContainerBase");
133 log << MSG::DEBUG << "initGrouping "<< endmsg;
134
135 // We allow for different groupings
136
137 if (Unknown == m_groupType) {
138 log << MSG::ERROR << "Unknown grouping "<< endmsg;
139
140 // Not yet known
141 }
143
144 log << MSG::DEBUG << "Single group "<< endmsg;
145
146 // Only one group - add all feb ids to channel 0
150 for (; febIt != febEnd; ++febIt) {
151 febIds.push_back((*febIt).get_identifier32().get_compact());
152 }
153 // add for LArCondFEBIdChanMap
154 unsigned int nChanPerGain = 1;
155 unsigned int minGain = 0;
156 unsigned int nGains = 3;
158 m_febIdChanMap.addFEBIdVector(0, febIds);
159 }
160 else if (SubDetectorGrouping == m_groupType) {
161
162 log << MSG::DEBUG << "Subdetector grouping "<< endmsg;
163
164 // Set up LArCondFEBIdChanMap for four groups: EM barrel, EMEM, HEC, FCal
167
172
173 for (; febIt != febEnd; ++febIt) {
174 unsigned int febId = (*febIt).get_identifier32().get_compact();
175 if (m_onlineHelper->isEMBchannel(*febIt)) {
177 }
178 else if (m_onlineHelper->isEMECchannel(*febIt)) {
180 }
181 else if (m_onlineHelper->isHECchannel(*febIt)) {
183 }
184 else if (m_onlineHelper->isFCALchannel(*febIt)) {
186 }
187 else {
188 log << MSG::DEBUG << "Uassociated FEB id: "
189 << MSG::hex << (febId) << MSG::dec
190 << " isCalib " << m_onlineHelper->isCalibration(*febIt)
191 << " " << m_onlineHelper->show_to_string(*febIt)
192 << endmsg;
193 }
194 }
195 // add for LArCondFEBIdChanMap
196 unsigned int nChanPerGain = 4;
197 unsigned int minGain = 0;
198 unsigned int nGains = 3;
200 m_febIdChanMap.addFEBIdVector(0, emBarrel);
201 m_febIdChanMap.addFEBIdVector(1, emEndcap);
202 m_febIdChanMap.addFEBIdVector(2, hec);
203 m_febIdChanMap.addFEBIdVector(3, fcal);
204
205// unsigned int coolChannel;
206// for (unsigned int gain = 0; gain < nGains; ++gain) {
207// for (unsigned int i = 0; i < emBarrel.size(); ++i) {
208// if (!m_febIdChanMap.getChannel(emBarrel[i], gain, coolChannel)) {
209// log << MSG::DEBUG << "Unable to get cool channel for em barrel - i = "
210// << i << endmsg;
211// return (StatusCode::FAILURE);
212// }
213// }
214// for (unsigned int i = 0; i < emEndcap.size(); ++i) {
215// if (!m_febIdChanMap.getChannel(emEndcap[i], gain, coolChannel)) {
216// log << MSG::DEBUG << "Unable to get cool channel for em endcap - i = "
217// << i << endmsg;
218// return (StatusCode::FAILURE);
219// }
220// }
221// for (unsigned int i = 0; i < hec.size(); ++i) {
222// if (!m_febIdChanMap.getChannel(hec[i], gain, coolChannel)) {
223// log << MSG::DEBUG << "Unable to get cool channel for hec - i = "
224// << i << endmsg;
225// return (StatusCode::FAILURE);
226// }
227// }
228// for (unsigned int i = 0; i < fcal.size(); ++i) {
229// if (!m_febIdChanMap.getChannel(fcal[i], gain, coolChannel)) {
230// log << MSG::DEBUG << "Unable to get cool channel for fcal - i = "
231// << i << endmsg;
232// return (StatusCode::FAILURE);
233// }
234// }
235// }
236 }
238 log << MSG::DEBUG << "Extended Subdetector grouping "<< endmsg;
239
240 // Set up LArCondFEBIdChanMap for four groups: EM barrel, EM barrel PS ,EMEC EMEC PS, HEC, FCal
243
250
251 for (; febIt != febEnd; ++febIt) {
252 int iside = m_onlineHelper->pos_neg(*febIt);
253 // Sanity check
254 if(iside <0 || iside > 1) {
255 log << MSG::ERROR << "Wrong side id: "<< iside <<" from: "
256 << MSG::hex << *febIt << MSG::dec << endmsg;
257 return (StatusCode::FAILURE);
258 }
259 unsigned int febId = (*febIt).get_identifier32().get_compact();
260 if (m_onlineHelper->isEMBPS(*febIt)) {
262 }
263 else if (m_onlineHelper->isEMECPS(*febIt)) {
265 }
266 else if (m_onlineHelper->isEMBchannel(*febIt)) {
268 }
269 else if (m_onlineHelper->isEMECchannel(*febIt)) {
271 }
272 else if (m_onlineHelper->isHECchannel(*febIt)) {
274 }
275 else if (m_onlineHelper->isFCALchannel(*febIt)) {
277 }
278 else {
279 log << MSG::DEBUG << "Uassociated FEB id: "
280 << MSG::hex << (febId) << MSG::dec
281 << " isCalib " << m_onlineHelper->isCalibration(*febIt)
282 << " " << m_onlineHelper->show_to_string(*febIt)
283 << endmsg;
284 }
285 }
286 // add for LArCondFEBIdChanMap
287 unsigned int nChanPerGain = 12;
288 unsigned int minGain = 0;
289 unsigned int nGains = 3;
291 for (int iside=0; iside<2; ++iside) {
292 m_febIdChanMap.addFEBIdVector(0+iside*6, emBarrel[iside]);
293 m_febIdChanMap.addFEBIdVector(1+iside*6, emBarrelPS[iside]);
294 m_febIdChanMap.addFEBIdVector(2+iside*6, emEndcap[iside]);
295 m_febIdChanMap.addFEBIdVector(3+iside*6, emEndcapPS[iside]);
296 m_febIdChanMap.addFEBIdVector(4+iside*6, hec[iside]);
297 m_febIdChanMap.addFEBIdVector(5+iside*6, fcal[iside]);
298 }
299
300 }
301 else if (FeedThroughGrouping == m_groupType) {
302 log << MSG::DEBUG << "FeedThrough grouping "<< endmsg;
303
304 // Set up LArCondFEBIdChanMap for four groups: EM barrel, EMEM, HEC, FCal
307
309
310
311 for (; febIt != febEnd; ++febIt) {
312 // Find the feedthru hash and add to vector
313 HWIdentifier febId = (*febIt);
314 int b_ec = m_onlineHelper->barrel_ec(febId);
315 int p_n = m_onlineHelper->pos_neg(febId);
316 int f_t = m_onlineHelper->feedthrough(febId);
317 HWIdentifier ftid = m_onlineHelper->feedthrough_Id(b_ec, p_n, f_t);
318 IdentifierHash fthash = m_onlineHelper->feedthrough_Hash(ftid);
319 if (fthash < ft.size()) {
320 ft[fthash].push_back(febId.get_identifier32().get_compact());
321 }
322 else {
323 log << MSG::ERROR << "Feedthru hash > channel map size: id, hash, size "
324 << MSG::hex << febId << MSG::dec << " "
325 << ftid << " " << ft.size()
326 << endmsg;
327 return (StatusCode::FAILURE);
328 }
329 }
330 // add for LArCondFEBIdChanMap
331 unsigned int nChanPerGain = ft.size();
332 unsigned int minGain = 0;
333 unsigned int nGains = 3;
335 for (unsigned int i = 0; i < ft.size(); ++i) {
336 m_febIdChanMap.addFEBIdVector(i, ft[i]);
337 }
338 }
339 else if (ExtendedFTGrouping == m_groupType) {
340
341 log << MSG::DEBUG << "Extended FeedThrough grouping (PS goes seperatly, EMEC in HEC as well)"<< endmsg;
342
343 // Set up LArCondFEBIdChanMap for four groups: EM barrel, EMEM, HEC, FCal
346
347 //Vectors of groups
348 //Standard Febs (one group per FT)
350 //Presampler FEBs (one group per FT)
352 //EMEC channel in special crate:
354
355 for (; febIt != febEnd; ++febIt) {
356 // Find the feedthru hash and add to vector
357 HWIdentifier febId = (*febIt);
358 int b_ec = m_onlineHelper->barrel_ec(febId);
359 int p_n = m_onlineHelper->pos_neg(febId);
360 int f_t = m_onlineHelper->feedthrough(febId);
361 HWIdentifier ftid = m_onlineHelper->feedthrough_Id(b_ec, p_n, f_t);
362 IdentifierHash fthash = m_onlineHelper->feedthrough_Hash(ftid);
363
364 //sanity check
365 if (fthash >= ft.size()) {
366 log << MSG::ERROR << "Feedthru hash > channel map size: id, hash, size "
367 << MSG::hex << febId << MSG::dec << " "
368 << ftid << " " << ft.size()
369 << endmsg;
370 return (StatusCode::FAILURE);
371 }
372
373 //Subdivide into specific cases:
374 if (!m_onlineHelper->isEMECinHECchannel(febId)) { //this is taken care of further down
375 if (m_onlineHelper->isPS(febId))
376 ftPS[fthash].push_back(febId.get_identifier32().get_compact()); //PS goes in separate channels
377 else
378 ft[fthash].push_back(febId.get_identifier32().get_compact());
379 }
380 }
381 //EMEC in HEC crate: Do 'by hand'
382 //FTs: 3,10,16,22 Slots: 1,2
383 //parameters: ec,pn,ft,slot
384 ftSpecial[0].push_back(m_onlineHelper->feb_Id(1,0,3,1).get_identifier32().get_compact());
385 ftSpecial[0].push_back(m_onlineHelper->feb_Id(1,0,3,2).get_identifier32().get_compact());
386
387 ftSpecial[1].push_back(m_onlineHelper->feb_Id(1,1,3,1).get_identifier32().get_compact());
388 ftSpecial[1].push_back(m_onlineHelper->feb_Id(1,1,3,2).get_identifier32().get_compact());
389
390 ftSpecial[2].push_back(m_onlineHelper->feb_Id(1,0,10,1).get_identifier32().get_compact());
391 ftSpecial[2].push_back(m_onlineHelper->feb_Id(1,0,10,2).get_identifier32().get_compact());
392
393 ftSpecial[3].push_back(m_onlineHelper->feb_Id(1,1,10,1).get_identifier32().get_compact());
394 ftSpecial[3].push_back(m_onlineHelper->feb_Id(1,1,10,2).get_identifier32().get_compact());
395
396 ftSpecial[4].push_back(m_onlineHelper->feb_Id(1,0,16,1).get_identifier32().get_compact());
397 ftSpecial[4].push_back(m_onlineHelper->feb_Id(1,0,16,2).get_identifier32().get_compact());
398
399 ftSpecial[5].push_back(m_onlineHelper->feb_Id(1,1,16,1).get_identifier32().get_compact());
400 ftSpecial[5].push_back(m_onlineHelper->feb_Id(1,1,16,2).get_identifier32().get_compact());
401
402 ftSpecial[6].push_back(m_onlineHelper->feb_Id(1,0,22,1).get_identifier32().get_compact());
403 ftSpecial[6].push_back(m_onlineHelper->feb_Id(1,0,22,2).get_identifier32().get_compact());
404
405 ftSpecial[7].push_back(m_onlineHelper->feb_Id(1,1,22,1).get_identifier32().get_compact());
406 ftSpecial[7].push_back(m_onlineHelper->feb_Id(1,1,22,2).get_identifier32().get_compact());
407
408
409 // add for LArCondFEBIdChanMap
410 unsigned int nChanPerGain = ft.size()+ftPS.size()+ftSpecial.size();
411 unsigned int minGain = 0;
412 unsigned int nGains = 3;
413 unsigned int iCoolChannel=0;
415 for (unsigned int i = 0; i < ft.size(); ++i) {
416 m_febIdChanMap.addFEBIdVector(iCoolChannel++, ft[i]);
417 }
418 for (unsigned int i = 0; i < ftPS.size(); ++i) {
419 m_febIdChanMap.addFEBIdVector(iCoolChannel++, ftPS[i]);
420 }
421 for (unsigned int i = 0; i < ftSpecial.size(); ++i) {
422 m_febIdChanMap.addFEBIdVector(iCoolChannel++, ftSpecial[i]);
423 }
424 } else {
425 log << MSG::ERROR << "Unknown COOL Channel grouping " << m_groupType << endmsg;
426 return StatusCode::FAILURE;
427 }
428 // Resize the vector mapping the COOL channel to the
429 // DataVector.
431
432 log << MSG::DEBUG << "Number of channels per gain "
433 << m_febIdChanMap.channelsPerGain()
434 << endmsg;
435
436 log << MSG::DEBUG << "Mininum gain value "
437 << m_febIdChanMap.minGain()
438 << endmsg;
439
440 log << MSG::DEBUG << "Number of gain values "
441 << m_febIdChanMap.nGains()
442 << endmsg;
443
444 log << MSG::DEBUG << "Number of offset channels "
445 << m_febIdChanMap.nOffsetChannels()
446 << endmsg;
447
448 log << MSG::DEBUG << "Total number of channels "
449 << m_febIdChanMap.totalChannels()
450 << endmsg;
451
452 return (StatusCode::SUCCESS);
453
454}
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.

◆ initialize()

virtual StatusCode LArConditionsContainer< LArRinjP >::initialize ( )
virtualinherited

Initialization done after creation or read back - derived classes may augment the functionality.

Reimplemented from CondMultChanCollection< T >.

◆ initializeBase()

StatusCode LArConditionsContainerBase::initializeBase ( )
inherited

initialize

Definition at line 66 of file LArConditionsContainerBase.cxx.

52{
53 //Get LArOnlineID....
54 ServiceHandle<StoreGateSvc> detStore("DetectorStore", "LArConditionsContainerBase");
55 CHECK( detStore.isValid() );
56
58 //Dealing with supercells, need supercell identifier helper
59 const LArOnline_SuperCellID* onlID = nullptr;
60 CHECK( detStore->retrieve(onlID,"LArOnline_SuperCellID") );
61 m_onlineHelper=onlID;//cast to base-class
62
63 const CaloCell_SuperCell_ID* oflID = nullptr;
64 CHECK( detStore->retrieve(oflID,"CaloCell_SuperCell_ID") );
65 m_offlineHelper=oflID; //cast to base-class
66 }
67 else {
68 //Regular readout
69 const LArOnlineID* onlID = nullptr;
70 CHECK( detStore->retrieve(onlID,"LArOnlineID") );
71 m_onlineHelper=onlID;//cast to base-class
72
73 const CaloCell_ID* oflID = nullptr;
74 CHECK( detStore->retrieve(oflID,"CaloCell_ID") );
75 m_offlineHelper=oflID; //cast to base-class
76 }
77
78 // initialize the grouping
80
81 // Set initialized to true
82 m_isInitialized = true;
83
84 return (StatusCode::SUCCESS);
85}
#define CHECK(...)
Evaluate an expression and check for errors.

◆ insert() [1/5]

void DataVector< LArRinjP, BASE >::insert ( iterator position,
InputIterator first,
InputIterator last )
inherited

Add a group of new elements to the collection.

Parameters
positionIterator before which the element will be added.
firstThe start of the range to put in the container.
lastThe end of the range to put in the container.

The container's ownership policy will determine if it takes ownership of the new element.

Note: this method may only be called using the most derived DataVector in the hierarchy.

This overload is for the case where the iterator value type is convertible to T*.

◆ insert() [2/5]

void DataVector< LArRinjP, BASE >::insert ( iterator position,
InputIterator first,
InputIterator last )
inherited

Add a group of new elements to the collection.

Parameters
positionIterator before which the element will be added.
firstThe start of the range to put in the container.
lastThe end of the range to put in the container.

The container's ownership policy will determine if it takes ownership of the new element.

Note: this method may only be called using the most derived DataVector in the hierarchy.

This overload is for the case where the iterator value type is convertible to unique_ptr<T>.

◆ insert() [3/5]

void DataVector< LArRinjP, BASE >::insert ( iterator position,
std::initializer_list< value_type > l )
inherited

Add a group of new elements to the collection.

Parameters
positionIterator before which the element will be added.
lAn initializer list.

The container's ownership policy will determine if it takes ownership of the new element.

Note: this method may only be called using the most derived DataVector in the hierarchy.

◆ insert() [4/5]

iterator DataVector< LArRinjP, BASE >::insert ( iterator position,
std::unique_ptr< base_value_type > pElem )
inherited

Add a new element to the collection.

Parameters
positionIterator before which the element will be added.
pElemThe element to add to the collection.
Returns
An iterator that points to the inserted data.

The container must be an owning container.

Note: this method may only be called using the most derived DataVector in the hierarchy.

◆ insert() [5/5]

iterator DataVector< LArRinjP, BASE >::insert ( iterator position,
value_type pElem )
inherited

Add a new element to the collection.

Parameters
positionIterator before which the element will be added.
pElemThe element to add to the collection.
Returns
An iterator that points to the inserted data.

The container's ownership policy will determine if it takes ownership of the new element.

Note: this method may only be called using the most derived DataVector in the hierarchy.

◆ insertCorrection()

StatusCode LArConditionsContainer< LArRinjP >::insertCorrection ( HWIdentifier id,
const LArRinjP & cond,
unsigned int gain,
bool corrChannel = true )
inherited

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

◆ insertMove()

void DataVector< LArRinjP, BASE >::insertMove ( iterator position,
DataVector & other )
inherited

Insert the contents of another DataVector, with auxiliary data copied via move semantics.

Parameters
positionIterator before which the new elements will be added.
otherThe vector to add.

The ownership mode of this vector must be the same as other; otherwise, an exception will be thrown.

If both vectors are view vectors, then this is the same as insert (position, other.begin(), other.end()) .

Otherwise, the elements from other will be inserted into this vector. This vector will take ownership of the elements, and the ownership mode of other will be changed to VIEW_ELEMENTS. Auxiliary data for these elements will be transferred, using move semantics if possible. (Thus, the auxiliary store for other may be modified and must not be locked.) Finally, the auxiliary store pointer for other will be cleared (but the store itself will not be deleted since it's not owned by the vector).

Note: this method may only be called using the most derived DataVector in the hierarchy.

◆ iov_begin()

iov_const_iterator LArConditionsContainer< LArRinjP >::iov_begin ( ) const
inherited

Access to IOVs via iterators - from MultChanCollection.

◆ iov_end()

iov_const_iterator LArConditionsContainer< LArRinjP >::iov_end ( ) const
inherited

◆ iov_size()

iov_size_type LArConditionsContainer< LArRinjP >::iov_size ( ) const
inherited

number of IOVs - from MultChanCollection

◆ iter_swap()

void DataVector< LArRinjP, BASE >::iter_swap ( iterator a,
iterator b )
staticinherited

Swap the referents of two DataVector iterators.

Parameters
aThe first iterator for the swap.
bThe second iterator for the swap.

◆ max_size()

size_type DataVector< LArRinjP, BASE >::max_size ( ) const
noexceptinherited

Returns the size() of the largest possible collection.

◆ merge()

bool LArConditionsContainer< LArRinjP >::merge ( const LArConditionsContainer< LArRinjP > & other)
inherited

◆ minGain()

unsigned int LArConditionsContainer< LArRinjP >::minGain ( ) const
inherited

Mininum gain value.

◆ minRange()

IOVRange CondMultChanCollection< LArRinjP >::minRange ( ) const
inlineinherited

Current minimal IOVRange.

Definition at line 83 of file CondMultChanCollection.h.

182{
183 return (m_impl.minRange());
184}

◆ nGains()

unsigned int LArConditionsContainer< LArRinjP >::nGains ( ) const
inherited

Number of gain values.

◆ nGroups()

unsigned int LArConditionsContainer< LArRinjP >::nGroups ( ) const
inherited

Number of groups - minimum is 2 (1 correction group, 1 FEB ID group)

◆ offlineHelper()

const CaloCell_Base_ID * LArConditionsContainerBase::offlineHelper ( ) const
inherited

provide access to offline id helper

Definition at line 80 of file LArConditionsContainerBase.cxx.

487{
488 return (m_offlineHelper);
489}

◆ onlineHelper()

const LArOnlineID_Base * LArConditionsContainerBase::onlineHelper ( ) const
inherited

provide access to online id helper

Definition at line 77 of file LArConditionsContainerBase.cxx.

481{
482 return (m_onlineHelper);
483}

◆ operator[]() [1/2]

ElementProxy DataVector< LArRinjP, BASE >::operator[] ( size_type n)
inherited

Access an element, as an lvalue.

Parameters
nArray index to access.
Returns
Proxy to the element at n.

No bounds checking is done. Note that we return a proxy object rather than a reference; the proxy will handle deleting an owned element if it's assigned to.

◆ operator[]() [2/2]

const LArRinjP * DataVector< LArRinjP, BASE >::operator[] ( size_type n) const
inherited

Access an element, as an rvalue.

Parameters
nArray index to access.
Returns
The element at n.

No bounds checking is done. Note that we return a const T* rather than a reference.

◆ ownPolicy()

SG::OwnershipPolicy DataVector< LArRinjP, BASE >::ownPolicy ( ) const
inherited

Return the ownership policy setting for this container.

◆ pop_back() [1/2]

void DataVector< LArRinjP, BASE >::pop_back ( )
inherited

Remove the last element from the collection.

If the container owns its elements, then the removed element will be deleted.

◆ pop_back() [2/2]

void DataVector< LArRinjP, BASE >::pop_back ( )
inherited

◆ push_back() [1/2]

value_type DataVector< LArRinjP, BASE >::push_back ( std::unique_ptr< base_value_type > pElem)
inherited

Add an element to the end of the collection.

Parameters
pElemThe element to add to the collection.

The container must be an owning container.

Note: this method may only be called using the most derived DataVector in the hierarchy.

Returns the pushed pointer.

◆ push_back() [2/2]

value_type DataVector< LArRinjP, BASE >::push_back ( value_type pElem)
inherited

Add an element to the end of the collection.

Parameters
pElemThe element to add to the collection.

The container's ownership policy will determine if it takes ownership of the new element.

Note: this method may only be called using the most derived DataVector in the hierarchy.

Returns the pushed pointer.

◆ push_new()

size_type DataVector< LArRinjP, BASE >::push_new ( size_type n,
F alloc )
inherited

Create and add a number of new elements to the end of the container.

Parameters
nThe number of new elements to add.
allocFunctional to call to allocate a new element to push. Should be callable like T* = alloc(); For example:
dv.push_new (n, [](){ return new Foo; });
Definition FooBar.h:9
It may also be useful to allocate from a DataPool.

Note: this method may only be called using the most derived DataVector in the hierarchy.

Returns the original size of the vector.

◆ rbegin() [1/2]

const_reverse_iterator DataVector< LArRinjP, BASE >::rbegin ( ) const
noexceptinherited

Return a const_reverse_iterator pointing past the end of the collection.

Returns
A const_reverse_iterator.

Note that dereferencing the iterator will yield a const T* rather than a reference.

◆ rbegin() [2/2]

reverse_iterator DataVector< LArRinjP, BASE >::rbegin ( )
noexceptinherited

Return a reverse_iterator pointing past the end of the collection.

Returns
A reverse_iterator.

Note that dereferencing the iterator will yield a proxy rather than a reference; the proxy will handle deleting an owned element if it's assigned to.

◆ removeConditions()

void LArConditionsContainer< LArRinjP >::removeConditions ( )
inherited

Remove conditions leaving the corrections - may be needed to only write out the corrections when both are present.

◆ removeConditionsChannel()

void LArConditionsContainer< LArRinjP >::removeConditionsChannel ( unsigned int coolChannel)
inherited

Remove the conditions for a specific cool channel - e.g.

in order not to write it out

◆ rend() [1/2]

const_reverse_iterator DataVector< LArRinjP, BASE >::rend ( ) const
noexceptinherited

Return a const_reverse_iterator pointing at the beginning of the collection.

Returns
A const_reverse_iterator.

Note that dereferencing the iterator will yield a const T* rather than a reference.

◆ rend() [2/2]

reverse_iterator DataVector< LArRinjP, BASE >::rend ( )
noexceptinherited

Return a reverse_iterator pointing at the beginning of the collection.

Returns
A reverse_iterator.

Note that dereferencing the iterator will yield a proxy rather than a reference; the proxy will handle deleting an owned element if it's assigned to.

◆ reserve()

void DataVector< LArRinjP, BASE >::reserve ( size_type n)
inherited

Attempt to preallocate enough memory for a specified number of elements.

Parameters
nNumber of elements required.

◆ resetChannelNumbers()

void CondMultChanCollection< LArRinjP >::resetChannelNumbers ( )
inlineinherited

Reset channel numbers - needed to allow sorting.

Definition at line 103 of file CondMultChanCollection.h.

238{
239 m_impl.resetChannelNumbers();
240}

◆ resize() [1/2]

void DataVector< LArRinjP, BASE >::resize ( size_type sz)
inherited

Resizes the collection to the specified number of elements.

Parameters
szThe new size of the collection.

Note that this function differs from the standard in that it does not allow specifying the value of any inserted elements. They will always be 0.

If the container is shrunk, elements will be deleted as with erase().

◆ resize() [2/2]

void DataVector< LArRinjP, BASE >::resize ( size_type sz)
inherited

◆ resortAux()

void DataVector< LArRinjP, BASE >::resortAux ( iterator beg,
iterator end )
inherited

Reset indices / reorder aux data after elements have been permuted.

Parameters
begStart of the range of elements to process.
endEnd of the range of elements to process.

Call this after some operation that has permuted the elements in the container (such as sort). The index information in the elements will be used to permute all auxiliary data in the same way. Finally, all the indices will be reset in the correct order.

◆ Rinj()

const float & LArRinjComplete::Rinj ( const HWIdentifier & CellID) const
virtual

Implements ILArRinj.

Definition at line 24 of file LArRinjComplete.cxx.

24 {
25 const LArRinjP& t = get( CellID);
26 return (t.m_Rinj);
27}
ConstReference get(const HWIdentifier id, unsigned int gain=0) const

◆ set()

void LArRinjComplete::set ( const HWIdentifier & CellID,
float vRinj )

Definition at line 14 of file LArRinjComplete.cxx.

14 {
15 LArRinjP t;
16 t.m_Rinj = Rinj ;
17
18 setPdata(CellID, t);
19}
void setPdata(const HWIdentifier id, const LArRinjP &payload, unsigned int gain=0)
virtual const float & Rinj(const HWIdentifier &CellID) const

◆ setGroupingType() [1/2]

StatusCode LArConditionsContainerBase::setGroupingType ( const std::string & groupingStr,
MsgStream & logStr )
inherited

allow group type to be set externally based on a string returns an FAILURE and a message to logStr if unknown string is supplied

Definition at line 74 of file LArConditionsContainerBase.cxx.

96{
97 // Set grouping type - default is SubDet
98 if (groupingStr == "Single")
100 return StatusCode::SUCCESS;
101 }
102 else if (groupingStr == "SubDetector")
104 return StatusCode::SUCCESS;
105 }
106 else if (groupingStr == "ExtendedSubDetector")
108 return StatusCode::SUCCESS;
109 }
110 else if (groupingStr == "FeedThrough")
112 return StatusCode::SUCCESS;
113 }
114 else if (groupingStr == "ExtendedFeedThrough") {
116 return StatusCode::SUCCESS;
117 }
118 else if (groupingStr == "SuperCells") {
120 return StatusCode::SUCCESS;
121 }
122
123 logStr << MSG::ERROR << "Unknown COOL Channel Grouping '"<< groupingStr <<"'. Allowed values are:" << endmsg;
124 logStr << MSG::ERROR << "'Single','SubDetector', 'ExtendedSubDetector','FeedThrough','ExtendedFeedThrough'" << endmsg;
125 return StatusCode::FAILURE;
126}

◆ setGroupingType() [2/2]

void LArConditionsContainerBase::setGroupingType ( GroupingType type)
inherited

allow group type to be set externally - need to (re)initialize after setting grouping type

Definition at line 70 of file LArConditionsContainerBase.cxx.

89{
91}

◆ setMostDerived()

virtual void DataVector< LArRinjP, BASE >::setMostDerived ( )
overrideprotectedvirtualinherited

Set m_isMostDerived for this instance and clear it for all bases.

Called from testInsert if the test fails. The flag may not have been set if this container was made via copy construction, so set it appropriately now so we can test again.

◆ setPdata()

void LArConditionsContainer< LArRinjP >::setPdata ( const HWIdentifier id,
const LArRinjP & payload,
unsigned int gain = 0 )
inherited

put payload in persistent data

◆ shift()

void DataVector< LArRinjP, BASE >::shift ( size_t pos,
ptrdiff_t offs )
privateinherited

Shift the auxiliary elements of the container.

Parameters
posThe starting index for the shift.
offsThe (signed) amount of the shift.

The elements in the container should have already been shifted; this operation will then adjust the element indices and also shift the elements in the vectors for all aux data items. offs may be either positive or negative.

If offs is positive, then the container is growing. The container size should be increased by offs, the element at pos moved to pos + offs, and similarly for following elements. The elements between pos and pos + offs should be default-initialized.

If offs is negative, then the container is shrinking. The element at pos should be moved to pos + offs, and similarly for following elements. The container should then be shrunk by -offs elements (running destructors as appropriate).

◆ shrink_to_fit()

void DataVector< LArRinjP, BASE >::shrink_to_fit ( )
inherited

◆ size()

size_type DataVector< LArRinjP, BASE >::size ( ) const
noexceptinherited

Returns the number of elements in the collection.

Could in principle be inherited from the base class, but redeclared in the derived class to avoid root6 bugs.

◆ sort() [1/2]

void DataVector< LArRinjP, BASE >::sort ( )
inherited

Sort the container.

This just sorts by pointer value, so it's probably not very useful.

◆ sort() [2/2]

void DataVector< LArRinjP, BASE >::sort ( COMPARE comp)
inherited

Sort the container with a user-specified comparison operator.

Parameters
compFunctional to compare two values.

◆ sortSubsets()

void LArConditionsContainer< LArRinjP >::sortSubsets ( )
privateinherited

Sort subsets by channel number.

◆ stdcont()

const PtrVector & DataVector< LArRinjP, BASE >::stdcont ( ) const
inherited

Return the underlying std::vector of the container.

Returns
Reference to the std::vector actually holding the collection.

Note that DataVector<T>::stdcont does not necessarily return a std::vector<T*> if DataVector inheritance is being used.

◆ swap()

void DataVector< LArRinjP, BASE >::swap ( DataVector & rhs)
inherited

Swap this collection with another.

Parameters
rhsThe collection with which to swap.

Ownership is swapped along with the collection content.

Note: this method may only be called using the most-derived DataVector in the hierarchy. The rhs must also be referenced using the most-derived DataVector.

◆ swapElement() [1/4]

void DataVector< LArRinjP, BASE >::swapElement ( iterator pos,
std::unique_ptr< base_value_type > newElem,
std::unique_ptr< base_value_type > & oldElem )
inherited

Swap one element out of the container.

Parameters
posThe element in the container to swap.
newElemNew element to put in the container. May be 0.
oldElemReference to receive the element removed from the container.

Reference oldElem is initialized with element pos of the collection (no bounds checking). Then element index is set to newElem.

The collection must own its elements to use its interface. The collection will take ownership of newElem and will return ownership of oldElem.

Note: this method may only be called using the most derived DataList in the hierarchy.

◆ swapElement() [2/4]

void DataVector< LArRinjP, BASE >::swapElement ( iterator pos,
value_type newElem,
reference oldElem )
inherited

Swap one element out of the container.

Parameters
posThe element in the container to swap.
newElemNew element to put in the container. May be 0.
oldElemReference to receive the element removed from the container.

Reference oldElem is initialized with element pos of the collection (no bounds checking). Then element index is set to newElem. If the collection owns its elements, then it will take ownership of newElem and release (without deleting) the element returned through oldElem.

Note: this method may only be called using the most derived DataList in the hierarchy.

◆ swapElement() [3/4]

void DataVector< LArRinjP, BASE >::swapElement ( size_type index,
std::unique_ptr< base_value_type > newElem,
std::unique_ptr< base_value_type > & oldElem )
inherited

Swap one element out of the container.

Parameters
indexIndex of the element in the container to swap.
newElemNew element to put in the container. May be 0.
oldElemReference to receive the element removed from the container.

Reference oldElem is initialized with element index of the collection (no bounds checking). Then element index is set to newElem.

The collection must own its elements to use its interface. The collection will take ownership of newElem and will return ownership of oldElem.

Note: this method may only be called using the most derived DataVector in the hierarchy.

◆ swapElement() [4/4]

void DataVector< LArRinjP, BASE >::swapElement ( size_type index,
value_type newElem,
reference oldElem )
inherited

Swap one element out of the container.

Parameters
indexIndex of the element in the container to swap.
newElemNew element to put in the container. May be 0.
oldElemReference to receive the element removed from the container.

Reference oldElem is initialized with element index of the collection (no bounds checking). Then element index is set to newElem. If the collection owns its elements, then it will take ownership of newElem and release (without deleting) the element returned through oldElem.

Note: this method may only be called using the most derived DataVector in the hierarchy.

◆ testInsert()

void DataVector< LArRinjP, BASE >::testInsert ( const char * op)
inherited

Test if we can insert; raise an exception if not.

Parameters
opDescription of the attempted operation.

In order to maintain type-safety, we can only allow insertions using the most-derived instance of DataVector. This checks this by testing the m_isMostDerived, which is set by the constructors to true only for the most-derived instance. If the test fails, we call to potentially out-of-line code to continue.

◆ testInsertOol()

void DataVector< LArRinjP, BASE >::testInsertOol ( const char * op)
inherited

Test if we can insert; raise an exception if not.

Parameters
opDescription of the attempted operation.

This continues the test of testInsert. There is one case where m_isMostDerived may not be set correctly. If this container was made via copy construction, then all the m_isMostDerived flags will be false. So we call setMostDerived to set the flags correctly and test again. If the test fails again, then we raise an exception.

◆ totalNumberOfConditions()

unsigned int LArConditionsContainer< LArRinjP >::totalNumberOfConditions ( ) const
inherited

Statistics: total number of conditions.

◆ totalNumberOfCorrections()

unsigned int LArConditionsContainer< LArRinjP >::totalNumberOfCorrections ( ) const
inherited

Statistics: total number of corrections.

◆ undoCorrBegin()

ConstCorrectionIt LArConditionsContainer< LArRinjP >::undoCorrBegin ( unsigned int gain) const
inherited

get iterator over the Undo-Vector for a certain gain

◆ undoCorrections()

StatusCode LArConditionsContainer< LArRinjP >::undoCorrections ( )
inherited

undo corrections that have been already applied

◆ undoCorrEnd()

ConstCorrectionIt LArConditionsContainer< LArRinjP >::undoCorrEnd ( unsigned int gain) const
inherited

◆ updateConditionsMap()

StatusCode LArConditionsContainer< LArRinjP >::updateConditionsMap ( FebId id,
unsigned int gain,
ConditionsMap & conditionsMap )
privateinherited

Update the ConditionsMap for a new FEB ID.

Member Data Documentation

◆ has_virtual

const bool DataVector< LArRinjP, BASE >::has_virtual
staticinherited

This is true for any DataVector class if we need to use virtual derivation to get to the base DataVector class.

Definition at line 802 of file DataVector.h.

◆ m_cached

GainMap LArConditionsContainer< LArRinjP >::m_cached
protectedinherited

Map indexed by gain providing pointers into the data in the CondMultChanCollection.

Definition at line 286 of file LArConditionsContainer.h.

◆ m_channelToMultChanCollIndex

std::vector<unsigned int> LArConditionsContainerBase::m_channelToMultChanCollIndex
protectedinherited

Definition at line 114 of file LArConditionsContainerBase.h.

◆ m_correctionsApplied

bool LArConditionsContainer< LArRinjP >::m_correctionsApplied
privateinherited

Definition at line 327 of file LArConditionsContainer.h.

◆ m_correctionsUndo

CorrectionVectors LArConditionsContainer< LArRinjP >::m_correctionsUndo
privateinherited

Definition at line 326 of file LArConditionsContainer.h.

◆ m_dummyCorrIt

ConstCorrectionIt LArConditionsContainer< LArRinjP >::m_dummyCorrIt
privateinherited

Dummy iterator (returned if requested for invalid gain)

Definition at line 291 of file LArConditionsContainer.h.

◆ m_emptyCorrectionVec

CorrectionVector LArConditionsContainer< LArRinjP >::m_emptyCorrectionVec
privateinherited

Definition at line 328 of file LArConditionsContainer.h.

◆ m_febIdChanMap

LArCondFEBIdChanMap LArConditionsContainerBase::m_febIdChanMap
protectedinherited

Definition at line 108 of file LArConditionsContainerBase.h.

◆ m_groupType

GroupingType LArConditionsContainerBase::m_groupType
protectedinherited

Definition at line 107 of file LArConditionsContainerBase.h.

◆ m_impl

Definition at line 110 of file CondMultChanCollection.h.

◆ m_isInitialized

bool LArConditionsContainerBase::m_isInitialized
protectedinherited

Definition at line 115 of file LArConditionsContainerBase.h.

◆ m_isMostDerived

SG::IsMostDerivedFlag DataVector< LArRinjP, BASE >::m_isMostDerived
privateinherited

This flag is true if this DV instance is the most-derived one.

We set this to true in the top-level constructor; the constructor then calls clearMostDerived on the base classes.

Definition at line 2059 of file DataVector.h.

◆ m_offlineHelper

const CaloCell_Base_ID* LArConditionsContainerBase::m_offlineHelper
protectedinherited

Definition at line 110 of file LArConditionsContainerBase.h.

◆ m_onlineHelper

const LArOnlineID_Base* LArConditionsContainerBase::m_onlineHelper
protectedinherited

Definition at line 109 of file LArConditionsContainerBase.h.

◆ must_own

bool DataVector< LArRinjP, BASE >::must_own
staticconstexprinherited

If true, then this type must own its contents.

Definition at line 860 of file DataVector.h.


The documentation for this class was generated from the following files: