  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   15 #include "CoralBase/Blob.h" 
   16 #include "CoolKernel/IObject.h" 
   21 static_assert (__BYTE_ORDER == __LITTLE_ENDIAN,
 
   22                "FillParamsCondAlg assumes little-endian byte ordering.");
 
   34   return StatusCode::SUCCESS;
 
   50   if ((**fillParamsFolder)[
"BCIDmasks"].isNull()) {
 
   52     return StatusCode::FAILURE;
 
   56   cool::UInt32 nb1 = (**fillParamsFolder)[
"Beam1Bunches"].data<cool::UInt32>();
 
   57   cool::UInt32 nb2 = (**fillParamsFolder)[
"Beam2Bunches"].data<cool::UInt32>();
 
   58   cool::UInt32 ncol = (**fillParamsFolder)[
"LuminousBunches"].data<cool::UInt32>();
 
   67   if ( 
static_cast<cool::UInt32
>( 
blob.size() ) != 2 * (nb1 + nb2 + ncol)) {
 
   69     return StatusCode::SUCCESS;
 
   74   auto fp = std::make_unique<FillParamsCondData>();
 
   77   fp->setBeam1Bunches (
p, 
p+nb1);
 
   81   fp->setBeam2Bunches (
p, 
p+nb2);
 
   85   fp->setLuminousBunches (
p, 
p+ncol);
 
   91   return StatusCode::SUCCESS;
 
  
virtual StatusCode initialize() override final
Gaudi initialize method.
 
bool range(EventIDRange &r)
 
Conditions algorithm to unpack fill parameters from COOL.
 
const std::string & key() const
Return the StoreGate ID for the referenced object.
 
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
 
::StatusCode StatusCode
StatusCode definition for legacy code.
 
virtual StatusCode execute(const EventContext &ctx) const override final
Algorithm execute method.
 
StatusCode initialize(bool used=true)
 
#define ATH_MSG_WARNING(x)
 
SG::ReadCondHandleKey< AthenaAttributeList > m_fillParamsFolderInputKey
Input conditions object.
 
SG::WriteCondHandleKey< FillParamsCondData > m_fillParamsOutputKey
Output conditions object.