ATLAS Offline Software
Loading...
Searching...
No Matches
LArConditionsContainerBase.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
15
16#ifndef LARRAWCONDITIONS_LARCONDITIONSCONTAINERBASE_H
17#define LARRAWCONDITIONS_LARCONDITIONSCONTAINERBASE_H
28
30#include "GaudiKernel/StatusCode.h"
31#include <vector>
32#include <string>
33
34// Forward delcarations
37class MsgStream;
38
40{
41public:
42
53
55
58
61
64
66 StatusCode initializeBase();
67
71
74 StatusCode setGroupingType(const std::string& groupingStr, MsgStream& logStr);
75
77 const LArOnlineID_Base* onlineHelper() const;
78
80 const CaloCell_Base_ID* offlineHelper() const;
81
83 const FEBIdVector& febIdVector(unsigned int gain,
84 unsigned int coolChannel) const;
85
91 // setFlag = true and flag = <changed value>
92 static bool applyCorrectionsAtInit(bool setFlag = false, bool flag = true);
93
94protected:
95
96 StatusCode initGrouping();
97
98 std::string groupingTypeToString() const;
99
100
101 // Get correction index for online id and gain
103 unsigned int gain,
104 unsigned int& index,
105 unsigned int& coolChannel);
106
111
112 // Table to map from Cool channel number to index in
113 // CondMultChanCollection - when writing this can be all mixed up
114 std::vector<unsigned int> m_channelToMultChanCollIndex;
116
117};
118
119
120// INLINE FUNCTIONS
121
122
123#endif // LARRAWCONDITIONS_LARCONDITIONSCONTAINERBASE_H
This file defines a class to map FEB IDs and channel ids.
Helper base class for offline cell identifiers.
This class maps FEB IDs to/from COOL channel ids.
std::vector< FEBId > FEBIdVector
static bool applyCorrectionsAtInit(bool setFlag=false, bool flag=true)
provide access to flag which determines corrections are applied at initialize, i.e.
const LArOnlineID_Base * m_onlineHelper
std::vector< unsigned int > m_channelToMultChanCollIndex
LArCondFEBIdChanMap::FEBIdVector FEBIdVector
const FEBIdVector & febIdVector(unsigned int gain, unsigned int coolChannel) const
Access to a FEB ID vector for a given gain and COOL channel.
void setGroupingType(GroupingType type)
allow group type to be set externally - need to (re)initialize after setting grouping type
void correctionIndexAndCoolChannel(HWIdentifier id, unsigned int gain, unsigned int &index, unsigned int &coolChannel)
const CaloCell_Base_ID * offlineHelper() const
provide access to offline id helper
const LArOnlineID_Base * onlineHelper() const
provide access to online id helper
const CaloCell_Base_ID * m_offlineHelper
LArConditionsContainerBase()
Default constructor.
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition index.py:1