|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef LUMIBLOCKCOMPS_TRIGLIVEFRACTIONCONDALG_H
14 #define LUMIBLOCKCOMPS_TRIGLIVEFRACTIONCONDALG_H
23 #include "CoralBase/Blob.h"
55 unsigned int& turnCounter,
56 std::vector<float>& liveFractionLo,
57 std::vector<float>& liveFractionHi)
const;
68 unsigned int turnCounter,
69 std::vector<float>& livevec)
const;
81 const std::vector<float>& liveFractionLo,
82 const std::vector<float>& liveFractionHi,
83 float& lumiLiveFractionLo,
84 float& lumiLiveFractionHi) ;
89 {
this,
"DeadtimeFolderInputKey",
"/TRIGGER/LUMI/PerBcidDeadtime",
90 "Input deadtime COOL folder." };
94 {
this,
"LuminosityInputKey",
"LuminosityCondData",
95 "Input luminosity data." };
99 {
this,
"TrigLiveFractionOutputKey",
"TrigLiveFractionCondData",
100 "Output live fraction data." };
104 #endif // not LUMIBLOCKCOMPS_TRIGLIVEFRACTIONCONDALG_H
SG::ReadCondHandleKey< LuminosityCondData > m_luminosityInputKey
Input luminosity data.
StatusCode unpackDeadtime(const AthenaAttributeList &deadtimeFolder, unsigned int &turnCounter, std::vector< float > &liveFractionLo, std::vector< float > &liveFractionHi) const
Unpack information from the deadtime COOL folder.
SG::WriteCondHandleKey< TrigLiveFractionCondData > m_trigLiveFractionOutputKey
Output conditions object.
SG::ReadCondHandleKey< AthenaAttributeList > m_deadtimeFolderInputKey
Input deadtime folder.
virtual StatusCode initialize() override
Gaudi initialize method.
An algorithm that can be simultaneously executed in multiple threads.
Hold live fraction data produced by TrigLiveFractionCondAlg.
AthReentrantAlgorithm()
Default constructor:
::StatusCode StatusCode
StatusCode definition for legacy code.
static StatusCode lumiWeight(const LuminosityCondData &lumi, const std::vector< float > &liveFractionLo, const std::vector< float > &liveFractionHi, float &lumiLiveFractionLo, float &lumiLiveFractionHi)
Calculate weighted average live fractions.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Hold luminosity data produced by LuminosityCondAlg.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm execute method.
StatusCode unpackVector(const coral::Blob &blob, unsigned int turnCounter, std::vector< float > &livevec) const
Unpack a single deadtime vector.
Conditions algorithm for trigger live fraction data.