ATLAS Offline Software
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
LArShape32MC Class Reference

This class implements the ILArShape interface. More...

#include <LArShape32MC.h>

Inheritance diagram for LArShape32MC:
Collaboration diagram for LArShape32MC:

Public Types

typedef ILArShape::ShapeRef_t ShapeRef_t
 
typedef LArConditionsContainer< LArShapeP1CONTAINER
 
typedef LArShapeP1 LArCondObj
 
typedef unsigned int FebId
 Typedefs for subset. More...
 
typedef LArConditionsSubset< LArShapeP1Subset
 
typedef LArConditionsSubset< LArShapeP1 >::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< LArShapeP1ConditionsMap
 Typedefs for DB. More...
 
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. More...
 
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
 

Public Member Functions

 LArShape32MC ()
 
virtual ~LArShape32MC ()
 
virtual StatusCode initialize ()
 Initialization done after creation or read back - derived classes may augment the functionality. More...
 
virtual ShapeRef_t Shape (const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
 
virtual ShapeRef_t ShapeDer (const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
 
void set (const HWIdentifier &CellID, int gain, const std::vector< float > &vShape, const std::vector< float > &vShapeDer)
 
void setPdata (const HWIdentifier id, const LArShapeP1 &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 LArShapeP1 &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...
 
bool merge (const LArConditionsContainer< LArShapeP1 > &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< 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. 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
 

Detailed Description

This class implements the ILArShape interface.

Author
S. Laplace
Version
0-0-1 , 29/01/04

History:

Definition at line 25 of file LArShape32MC.h.

Member Typedef Documentation

◆ chan_const_iterator

Definition at line 95 of file LArConditionsContainer.h.

◆ chan_size_type

Definition at line 97 of file LArConditionsContainer.h.

◆ ChannelVector

Definition at line 74 of file LArConditionsContainer.h.

◆ ChannelVectorIterator

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

Definition at line 76 of file LArConditionsContainer.h.

◆ ConditionsMap

Typedefs for DB.

Definition at line 85 of file LArConditionsContainer.h.

◆ ConditionsMapIterator

Definition at line 87 of file LArConditionsContainer.h.

◆ const_iterator

Definition at line 322 of file LArConditionsContainer.h.

◆ ConstConditionsMapIterator

Definition at line 86 of file LArConditionsContainer.h.

◆ ConstCorrectionIt

Definition at line 78 of file LArConditionsContainer.h.

◆ ConstCorrectionVecIt

Definition at line 319 of file LArConditionsContainer.h.

◆ ConstGainMapIterator

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

Definition at line 90 of file LArConditionsContainer.h.

◆ ConstPointer

Definition at line 82 of file LArConditionsContainer.h.

◆ ConstReference

Definition at line 80 of file LArConditionsContainer.h.

◆ CONTAINER

Definition at line 32 of file LArShape32MC.h.

◆ CorrectionPair

Definition at line 317 of file LArConditionsContainer.h.

◆ CorrectionVector

Definition at line 318 of file LArConditionsContainer.h.

◆ CorrectionVectors

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

Definition at line 320 of file LArConditionsContainer.h.

◆ FebId

typedef unsigned int LArConditionsContainer< LArShapeP1 >::FebId
inherited

Typedefs for subset.

Definition at line 71 of file LArConditionsContainer.h.

◆ FebPairReference

Definition at line 75 of file LArConditionsContainer.h.

◆ GainMap

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

Definition at line 88 of file LArConditionsContainer.h.

◆ GainMapIterator

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

Definition at line 91 of file LArConditionsContainer.h.

◆ GainPair

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

Definition at line 89 of file LArConditionsContainer.h.

◆ iov_const_iterator

Definition at line 96 of file LArConditionsContainer.h.

◆ iov_size_type

Definition at line 98 of file LArConditionsContainer.h.

◆ iterator

Definition at line 323 of file LArConditionsContainer.h.

◆ LArCondObj

Definition at line 69 of file LArConditionsContainer.h.

◆ MultChanCollection

Typedefs for MultChan access.

Definition at line 94 of file LArConditionsContainer.h.

◆ Pointer

Definition at line 81 of file LArConditionsContainer.h.

◆ Reference

Definition at line 79 of file LArConditionsContainer.h.

◆ ShapeRef_t

Definition at line 31 of file LArShape32MC.h.

◆ size_type

Definition at line 77 of file LArConditionsContainer.h.

◆ Subset

Definition at line 72 of file LArConditionsContainer.h.

◆ SubsetDV

Definition at line 321 of file LArConditionsContainer.h.

◆ Traits

Definition at line 73 of file LArConditionsContainer.h.

◆ TVector

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

Definition at line 313 of file LArConditionsContainer.h.

◆ TVectorIterator

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

Definition at line 314 of file LArConditionsContainer.h.

◆ TVectorMap

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

Definition at line 315 of file LArConditionsContainer.h.

◆ TVectorMapIterator

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

Definition at line 316 of file LArConditionsContainer.h.

Constructor & Destructor Documentation

◆ LArShape32MC()

LArShape32MC::LArShape32MC ( )

Definition at line 7 of file LArShape32MC.cxx.

7  :CONTAINER()
8 { }

◆ ~LArShape32MC()

LArShape32MC::~LArShape32MC ( )
virtual

Definition at line 15 of file LArShape32MC.cxx.

15 {}

Member Function Documentation

◆ applyCorrections()

StatusCode LArConditionsContainer< LArShapeP1 >::applyCorrections
inherited

apply correction set

◆ begin() [1/6]

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

◆ begin() [2/6]

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

get iterator for all channels for a gain

◆ begin() [3/6]

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

◆ begin() [4/6]

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

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

◆ begin() [5/6]

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

◆ begin() [6/6]

ConstConditionsMapIterator LArConditionsContainer< LArShapeP1 >::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

◆ chan_begin()

Access to Channel numbers via iterators - from MultChanCollection.

◆ chan_end()

◆ chan_size()

number of channels - from MultChanCollection

◆ completeCorrectionChannels()

std::vector<unsigned> LArConditionsContainer< LArShapeP1 >::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< LArShapeP1 >::conditionsPerChannel ( unsigned int  coolChannel) const
inherited

Statistics: number of conditions per COOL channel.

◆ conditionsPerGain()

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

Statistics: number of conditions per gain.

◆ conditionsPerGroup()

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

Statistics: number of conditions per group.

◆ coolChannel()

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

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

◆ correctionsApplied()

bool LArConditionsContainer< LArShapeP1 >::correctionsApplied
inherited

Have corrections been applied?

◆ empty()

ConstReference LArConditionsContainer< LArShapeP1 >::empty
protectedinherited

Access to standard empty value.

◆ end() [1/2]

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

◆ end() [2/2]

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

end of all channels for this gain

◆ get() [1/2]

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

non-const get data with online identifier

◆ get() [2/2]

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

get data with online identifier

◆ groupingType()

unsigned int LArConditionsContainer< LArShapeP1 >::groupingType
inherited

Type of grouping - defined in LArConditionContainerBase.h.

◆ groupingTypeToString()

std::string LArConditionsContainer< LArShapeP1 >::groupingTypeToString
inherited

Type of grouping - defined in LArConditionContainerBase.h.

◆ groupNumber()

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

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

◆ initialize()

StatusCode LArShape32MC::initialize ( )
virtual

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

Reimplemented from LArConditionsContainer< LArShapeP1 >.

Definition at line 11 of file LArShape32MC.cxx.

11  {
12  return (CONTAINER::initialize());
13 }

◆ insertCorrection()

StatusCode LArConditionsContainer< LArShapeP1 >::insertCorrection ( HWIdentifier  id,
const LArShapeP1 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

◆ iov_begin()

Access to IOVs via iterators - from MultChanCollection.

◆ iov_end()

◆ iov_size()

number of IOVs - from MultChanCollection

◆ merge()

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

◆ minGain()

unsigned int LArConditionsContainer< LArShapeP1 >::minGain
inherited

Mininum gain value.

◆ nGains()

unsigned int LArConditionsContainer< LArShapeP1 >::nGains
inherited

Number of gain values.

◆ nGroups()

unsigned int LArConditionsContainer< LArShapeP1 >::nGroups
inherited

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

◆ removeConditions()

void LArConditionsContainer< LArShapeP1 >::removeConditions
inherited

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

◆ removeConditionsChannel()

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

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

in order not to write it out

◆ set()

void LArShape32MC::set ( const HWIdentifier CellID,
int  gain,
const std::vector< float > &  vShape,
const std::vector< float > &  vShapeDer 
)

Definition at line 21 of file LArShape32MC.cxx.

23  {
24  LArShapeP1 t;
25  t.m_vShape = vShape;
26  t.m_vShapeDer = vShapeDer;
27  setPdata(CellID, t, gain);
28 }

◆ setPdata()

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

put payload in persistent data

◆ Shape()

LArShape32MC::ShapeRef_t LArShape32MC::Shape ( const HWIdentifier CellID,
int  gain,
int  tbin = 0,
int  mode = 0 
) const
virtual

Implements ILArShape.

Definition at line 33 of file LArShape32MC.cxx.

37 {
38  std::cout << "LArShape32MC is deprecated. Use LArShape32Sym" << std::endl;
39  std::abort();
40  return LArShape32MC::ShapeRef_t();
41 }

◆ ShapeDer()

LArShape32MC::ShapeRef_t LArShape32MC::ShapeDer ( const HWIdentifier CellID,
int  gain,
int  tbin = 0,
int  mode = 0 
) const
virtual

Implements ILArShape.

Definition at line 44 of file LArShape32MC.cxx.

48 {
49  std::cout << "LArShape32MC is deprecated. Use LArShape32Sym" << std::endl;
50  std::abort();
51  return LArShape32MC::ShapeRef_t();
52 }

◆ sortSubsets()

void LArConditionsContainer< LArShapeP1 >::sortSubsets
privateinherited

Sort subsets by channel number.

◆ totalNumberOfConditions()

unsigned int LArConditionsContainer< LArShapeP1 >::totalNumberOfConditions
inherited

Statistics: total number of conditions.

◆ totalNumberOfCorrections()

unsigned int LArConditionsContainer< LArShapeP1 >::totalNumberOfCorrections
inherited

Statistics: total number of corrections.

◆ undoCorrBegin()

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

get iterator over the Undo-Vector for a certain gain

◆ undoCorrections()

StatusCode LArConditionsContainer< LArShapeP1 >::undoCorrections
inherited

undo corrections that have been already applied

◆ undoCorrEnd()

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

◆ updateConditionsMap()

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

Update the ConditionsMap for a new FEB ID.

Member Data Documentation

◆ m_cached

GainMap LArConditionsContainer< LArShapeP1 >::m_cached
protectedinherited

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


Definition at line 286 of file LArConditionsContainer.h.

◆ m_correctionsApplied

bool LArConditionsContainer< LArShapeP1 >::m_correctionsApplied
privateinherited

Definition at line 327 of file LArConditionsContainer.h.

◆ m_correctionsUndo

CorrectionVectors LArConditionsContainer< LArShapeP1 >::m_correctionsUndo
privateinherited

Definition at line 326 of file LArConditionsContainer.h.

◆ m_dummyCorrIt

ConstCorrectionIt LArConditionsContainer< LArShapeP1 >::m_dummyCorrIt
privateinherited

Dummy iterator (returned if requested for invalid gain)

Definition at line 291 of file LArConditionsContainer.h.

◆ m_emptyCorrectionVec

CorrectionVector LArConditionsContainer< LArShapeP1 >::m_emptyCorrectionVec
privateinherited

Definition at line 328 of file LArConditionsContainer.h.


The documentation for this class was generated from the following files:
LArConditionsContainer< LArShapeP1 >::setPdata
void setPdata(const HWIdentifier id, const LArShapeP1 &payload, unsigned int gain=0)
put payload in persistent data
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
LArShape32MC::CONTAINER
LArConditionsContainer< LArShapeP1 > CONTAINER
Definition: LArShape32MC.h:32
LArShapeP1
c-struct reproducing the structure of the persistent data
Definition: LArShapeP1.h:16
LArConditionsContainer< LArShapeP1 >::initialize
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
LArShape32MC::ShapeRef_t
ILArShape::ShapeRef_t ShapeRef_t
Definition: LArShape32MC.h:31