ATLAS Offline Software
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  */
13 #ifndef COOLLUMIUTILITIES_BUNCHLUMISCONDALG_H
14 #define COOLLUMIUTILITIES_BUNCHLUMISCONDALG_H
15 
16 
23 
24 
25 namespace coral {
26  class Blob;
27 }
28 
29 
34  : public AthReentrantAlgorithm
35 {
36 public:
39 
40 
42  virtual StatusCode initialize() override;
43 
44 
46  virtual StatusCode execute (const EventContext& ctx) const override;
47  virtual bool isReEntrant() const override final { return false; }
48 
49 private:
59  const std::vector<unsigned int>& luminousBunches,
60  float avgRawLumi,
61  std::vector<float>& rawLumiOut) const;
62 
65  { this, "BunchLumisFolderInputKey", "", "" };
66 
69  { this, "FillParamsInputKey", "", "" };
70 
73  {this, "BunchLumisOutputKey", "BunchLumisCondData", "" };
74 };
75 
76 
77 #endif // not COOLLUMIUTILITIES_BUNCHLUMISCONDALG_H
BunchLumisCondAlg::m_fillParamsInputKey
SG::ReadCondHandleKey< FillParamsCondData > m_fillParamsInputKey
Fill parameters needed for storage mode 0.
Definition: BunchLumisCondAlg.h:69
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
WriteCondHandleKey.h
BunchLumisCondAlg::unpackLumis
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.
Definition: BunchLumisCondAlg.cxx:59
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
coral
Definition: ISecondaryEventSelector.h:19
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
BunchLumisCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm execute method.
Definition: BunchLumisCondAlg.cxx:208
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
BunchLumisCondAlg::m_bunchLumisOutputKey
SG::WriteCondHandleKey< BunchLumisCondData > m_bunchLumisOutputKey
Output conditions object.
Definition: BunchLumisCondAlg.h:73
FillParamsCondData.h
Holds fill parameters data.
ReadCondHandleKey.h
AthReentrantAlgorithm.h
SG::ReadCondHandleKey< CondAttrListCollection >
COOLRates.luminousBunches
luminousBunches
Definition: COOLRates.py:1245
BunchLumisCondAlg::m_bunchLumisFolderInputKey
SG::ReadCondHandleKey< CondAttrListCollection > m_bunchLumisFolderInputKey
Input conditions object.
Definition: BunchLumisCondAlg.h:65
BunchLumisCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: BunchLumisCondAlg.h:47
BunchLumisCondData.h
Holds raw luminosity data, per channel.
BunchLumisCondAlg
Conditions algorithm to unpack raw luminosity data from COOL.
Definition: BunchLumisCondAlg.h:35
SG::WriteCondHandleKey< BunchLumisCondData >
BunchLumisCondAlg::initialize
virtual StatusCode initialize() override
Gaudi initialize method.
Definition: BunchLumisCondAlg.cxx:41
CaloCondBlobAlgs_fillNoiseFromASCII.blob
blob
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:96