13#ifndef LUMIBLOCKCOMPS_BUNCHCROSSINGCONDALG_H
14#define LUMIBLOCKCOMPS_BUNCHCROSSINGCONDALG_H
36 using AthCondAlgorithm::AthCondAlgorithm;
45 virtual StatusCode
execute (
const EventContext& ctx)
const override;
57 {
this,
"ByteStreamMetadataKey",
"",
58 "ByteStream metadata (for reading IOV metadata from BS files in MC mode)" };
66 std::vector<bunchTrain_t>
findTrains(
const std::bitset< BunchCrossingCondData::m_MAX_BCID>& pairsToConsume,
const int maxSpacingInTrain,
const unsigned minBunchesPerTrain)
const;
67 std::vector<float>
tokenize(
const std::string& pattern)
const;
70 Gaudi::Property<unsigned>
m_maxBunchSpacing{
this,
"MaxBunchSpacing",5,
"Maximal bunch-spacing to be considered a 'bunch train'"};
71 Gaudi::Property<unsigned>
m_minBunchesPerTrain{
this,
"MinBunchesPerTrain",32,
"Minimal number of bunches to be considerd a 'bunch train'"};
72 Gaudi::Property<bool>
m_isRun1{
this,
"Run1",
false,
"Assume run-1 database"};
73 Gaudi::Property<int>
m_mode{
this,
"Mode", 1,
"Alg mode (COOL FILLPARAMS = 0, MC = 1, TrigConf = 2, Luminosity = 3)"};
Base class for conditions algorithms.
Replaces the BunchCrossing AlgTool used in run1/2.
Holds fill parameters data.
Hold luminosity data produced by LuminosityCondAlg.
An AttributeList represents a logical row of attributes in a metadata table.
Property holding a SG store/key/clid from which a ReadHandle is made.
Base class for conditions algorithms.
Conditions algorithm to unpack fill parameters from COOL.
SG::ReadHandleKey< ByteStreamMetadataContainer > m_byteStreamMetadataKey
ByteStream metadata (for reading IOV metadata from BS files in MC mode)
std::vector< float > tokenize(const std::string &pattern) const
This helper function is used to convert a string of type "[0.0, 0.0, 1.0, 1.0, 1.0]" into a vector of...
Gaudi::Property< bool > m_isRun1
Gaudi::Property< int > m_mode
SG::WriteCondHandleKey< BunchCrossingCondData > m_outputKey
Output conditions object.
virtual StatusCode initialize() override
Gaudi initialize method.
Gaudi::Property< unsigned > m_maxBunchSpacing
Gaudi::Property< unsigned > m_minBunchesPerTrain
std::vector< bunchTrain_t > findTrains(const std::bitset< BunchCrossingCondData::m_MAX_BCID > &pairsToConsume, const int maxSpacingInTrain, const unsigned minBunchesPerTrain) const
internal methods:
SG::ReadCondHandleKey< TrigConf::L1BunchGroupSet > m_bunchGroupCondDataKey
SG::ReadCondHandleKey< LuminosityCondData > m_lumiCondDataKey
const ServiceHandle< TrigConf::ILVL1ConfigSvc > m_trigConfigSvc
SG::ReadCondHandleKey< AthenaAttributeList > m_fillParamsFolderKey
Input conditions object.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm execute method.
BunchCrossingCondData::bunchTrain_t bunchTrain_t
Property holding a SG store/key/clid from which a ReadHandle is made.