|
ATLAS Offline Software
|
Go to the documentation of this file.
26 std::ostringstream
os;
42 return StatusCode::SUCCESS;
57 std::array<std::string, 2> gainName{
"_LG",
"_HG"};
73 std::array<std::string, 2> moduleName{
module+gainName[0],
module+gainName[1]};
77 for (
const TileRawChannel* rawChannel : *rawChannelCollectionLegacy) {
86 std::string channelName = moduleName[
gain] +
"_channel";
89 std::string amplitudeName = moduleName[
gain] +
"_amplitude";
91 fill(
"TileRawChannelAmpLegacy", monitoredChannel, monitoredAmplitude);
96 for (
const TileRawChannel* rawChannel : *rawChannelCollectionFlx) {
103 amplitudeFlx[
channel][
gain] = rawChannel->amplitude();
105 std::string channelName = moduleName[
gain] +
"_channel";
108 std::string amplitudeName = moduleName[
gain] +
"_amplitude";
110 fill(
"TileRawChannelAmpFlx", monitoredChannel, monitoredAmplitude);
116 std::string channelName = moduleName[
gain] +
"_channel";
117 std::string amplitudeName = moduleName[
gain] +
"_amplitude";
118 std::string amplitudeDiffName = moduleName[
gain] +
"_amplitude_diff";
132 fill(
"TileRawChannelAmpDiff", monitoredChannel, monitoredAmplitudeDiff);
133 fill(
"TileRawChannelAmpDiffVsLegacy", monitoredAmplitude, monitoredAmplitudeDiff);
139 fill(
"TileRawChannelFlxMonExecuteTime",
timer);
141 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Gaudi::Property< unsigned int > m_felixScale
const TileHWID * m_tileHWID
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKeyFlx
Hash table for Tile fragments (==drawers ==collections in StoreGate)
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
def timer(name, disabled=False)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
int adc(const HWIdentifier &id) const
extract adc field from HW identifier
Gaudi::Property< std::vector< int > > m_fragIDsToCompare
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const TileFragHash & hashFunc() const
virtual StatusCode initialize() override
initialize
virtual StatusCode initialize() override
initialize
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKeyLegacy
static std::string getDrawerString(unsigned int ros, unsigned int drawer)
Return the drawer name, e.g.
Declare a monitored scalar variable.
Handle class for reading from StoreGate.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
static const unsigned int MAX_CHAN
Number of channels in drawer.
static const unsigned int MAX_GAIN
Number of gains per channel