23 const IInterface*
p) :
27 declareInterface<DerivationFramework::IAugmentationTool>(
this);
39 ATH_CHECK(m_BCIDDistanceFrontKey.initialize());
40 ATH_CHECK(m_BCIDDistanceTailKey.initialize());
41 ATH_CHECK(m_BCIDGapBeforeTrainKey.initialize());
42 ATH_CHECK(m_BCIDGapAfterTrainKey.initialize());
44 ATH_CHECK(m_BCIDGapBeforeTrainMinus12Key.initialize());
45 ATH_CHECK(m_BCIDGapAfterTrainMinus12Key.initialize());
46 ATH_CHECK(m_BCIDTypeMinus12Key.initialize());
49 ATH_CHECK( m_bunchCrossingKey.initialize() );
50 ATH_MSG_INFO(
"The bunch crossing conditions key being used: " << m_bunchCrossingKey);
52 return StatusCode::SUCCESS;
58 return StatusCode::SUCCESS;
64 if (!eventInfo.isValid()){
66 << m_eventInfo_key.key());
67 return StatusCode::FAILURE;
69 auto ei = eventInfo.cptr();
71 const EventContext& context = Gaudi::Hive::currentContext();
84 dec_BCIDDistanceFront(*ei) = bunchCrossingTool->
distanceFromFront(ei->bcid(), BunchCrossingCondData::BunchDistanceType::BunchCrossings);
85 dec_BCIDDistanceTail(*ei) = bunchCrossingTool->
distanceFromTail(ei->bcid(), BunchCrossingCondData::BunchDistanceType::BunchCrossings);
86 dec_BCIDGapBeforeTrain(*ei) = bunchCrossingTool->
gapBeforeTrain(ei->bcid(), BunchCrossingCondData::BunchDistanceType::BunchCrossings);
87 dec_BCIDGapAfterTrain(*ei) = bunchCrossingTool->
gapAfterTrain(ei->bcid(), BunchCrossingCondData::BunchDistanceType::BunchCrossings);
88 dec_BCIDType(*ei) = bunchCrossingTool->
bcType(ei->bcid());
90 dec_BCIDTypeMinus12(*ei) = bunchCrossingTool->
bcType(ei->bcid()-12);
91 dec_BCIDGapBeforeTrainMinus12(*ei) = bunchCrossingTool->
gapBeforeTrain(ei->bcid()-12, BunchCrossingCondData::BunchDistanceType::BunchCrossings);
92 dec_BCIDGapAfterTrainMinus12(*ei) = bunchCrossingTool->
gapAfterTrain(ei->bcid()-12, BunchCrossingCondData::BunchDistanceType::BunchCrossings);
94 dec_BCIDTypeMinus12(*ei) = -1;
95 dec_BCIDGapBeforeTrainMinus12(*ei) = 0;
96 dec_BCIDGapAfterTrainMinus12(*ei) = 0;
99 return StatusCode::SUCCESS;