ATLAS Offline Software
Loading...
Searching...
No Matches
BunchLumisCondAlg.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef COOLLUMIUTILITIES_BUNCHLUMISCONDALG_H
14#define COOLLUMIUTILITIES_BUNCHLUMISCONDALG_H
15
16
23
24
25namespace coral {
26 class Blob;
27}
28
29
34 : public AthCondAlgorithm
35{
36public:
38 using AthCondAlgorithm::AthCondAlgorithm;
39
40
42 virtual StatusCode initialize() override;
43
44
46 virtual StatusCode execute (const EventContext& ctx) const override;
47
48private:
57 StatusCode unpackLumis (const coral::Blob& blob,
58 const std::vector<unsigned int>& luminousBunches,
59 float avgRawLumi,
60 std::vector<float>& rawLumiOut) const;
61
64 { this, "BunchLumisFolderInputKey", "", "" };
65
68 { this, "FillParamsInputKey", "", "" };
69
72 {this, "BunchLumisOutputKey", "BunchLumisCondData", "" };
73};
74
75
76#endif // not COOLLUMIUTILITIES_BUNCHLUMISCONDALG_H
Base class for conditions algorithms.
Holds raw luminosity data, per channel.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Holds fill parameters data.
Base class for conditions algorithms.
Conditions algorithm to unpack raw luminosity data from COOL.
SG::ReadCondHandleKey< FillParamsCondData > m_fillParamsInputKey
Fill parameters needed for storage mode 0.
SG::WriteCondHandleKey< BunchLumisCondData > m_bunchLumisOutputKey
Output conditions object.
SG::ReadCondHandleKey< CondAttrListCollection > m_bunchLumisFolderInputKey
Input conditions object.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm execute method.
virtual StatusCode initialize() override
Gaudi initialize method.
StatusCode unpackLumis(const coral::Blob &blob, const std::vector< unsigned int > &luminousBunches, float avgRawLumi, std::vector< float > &rawLumiOut) const
Unpack raw luminosity data for one channel.