ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
DerivationFramework::DistanceInTrainAugmentationTool Class Reference

#include <DistanceInTrainAugmentationTool.h>

Inheritance diagram for DerivationFramework::DistanceInTrainAugmentationTool:
Collaboration diagram for DerivationFramework::DistanceInTrainAugmentationTool:

Public Member Functions

 DistanceInTrainAugmentationTool (const std::string &t, const std::string &n, const IInterface *p)
 
 ~DistanceInTrainAugmentationTool ()
 
StatusCode initialize ()
 
StatusCode finalize ()
 
virtual StatusCode addBranches () const
 

Private Attributes

SG::ReadCondHandleKey< BunchCrossingCondDatam_bunchCrossingKey {this, "BunchCrossingKey", "BunchCrossingData", "Key BunchCrossing CDO" }
 
SG::ReadHandleKey< xAOD::EventInfom_eventInfo_key {this, "EventInfo", "EventInfo", "Input event information"}
 
SG::WriteDecorHandleKey< xAOD::EventInfom_BCIDDistanceFrontKey {this, "BCIDDistanceFrontKey", "EventInfo.DFCommonJets_BCIDDistanceFromFront", "Decoration for BCID distance from front"}
 
SG::WriteDecorHandleKey< xAOD::EventInfom_BCIDDistanceTailKey {this, "BCIDDistanceTailKey", "EventInfo.DFCommonJets_BCIDDistanceTail" , "Decoration for BCID distance from tail"}
 
SG::WriteDecorHandleKey< xAOD::EventInfom_BCIDGapBeforeTrainKey {this, "BCIDGapBeforeTrainKey", "EventInfo.DFCommonJets_BCIDGapBeforeTrain", "Decoration for BCID gap before train"}
 
SG::WriteDecorHandleKey< xAOD::EventInfom_BCIDGapAfterTrainKey {this, "BCIDGapAfterTrainKey", "EventInfo.DFCommonJets_BCIDGapAfterTrain", "Decoration for BCID gap after train"}
 
SG::WriteDecorHandleKey< xAOD::EventInfom_BCIDTypeKey {this, "BCIDTypeKey", "EventInfo.DFCommonJets_BCIDType", "Decoration for BCID type"}
 
SG::WriteDecorHandleKey< xAOD::EventInfom_BCIDGapBeforeTrainMinus12Key {this, "BCIDGapBeforeTrainMinus12Key", "EventInfo.DFCommonJets_BCIDGapBeforeTrainMinus12", "Decoration for BCID gap before train minus 12 BCIDs"}
 
SG::WriteDecorHandleKey< xAOD::EventInfom_BCIDGapAfterTrainMinus12Key {this, "BCIDGapAfterTrainMinus12Key", "EventInfo.DFCommonJets_BCIDGapAfterTrainMinus12", "Decoration for BCID gap after train minus 12 BCIDs"}
 
SG::WriteDecorHandleKey< xAOD::EventInfom_BCIDTypeMinus12Key {this, "BCIDTypeMinus12Key", "EventInfo.DFCommonJets_BCIDTypeMinus12", "Decoration for BCID type minus 12 BCIDs"}
 

Detailed Description

Definition at line 24 of file DistanceInTrainAugmentationTool.h.

Constructor & Destructor Documentation

◆ DistanceInTrainAugmentationTool()

DerivationFramework::DistanceInTrainAugmentationTool::DistanceInTrainAugmentationTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 21 of file DistanceInTrainAugmentationTool.cxx.

23  :
24  base_class(t, n, p)
25 {
26 
27 
28  declareProperty( "BCTool", m_bunchCrossingKey );
29 }

◆ ~DistanceInTrainAugmentationTool()

DerivationFramework::DistanceInTrainAugmentationTool::~DistanceInTrainAugmentationTool ( )

Definition at line 31 of file DistanceInTrainAugmentationTool.cxx.

31  {
32 }

Member Function Documentation

◆ addBranches()

StatusCode DerivationFramework::DistanceInTrainAugmentationTool::addBranches ( ) const
virtual

Definition at line 60 of file DistanceInTrainAugmentationTool.cxx.

60  {
61 
63  if (!eventInfo.isValid()){
64  ATH_MSG_WARNING("Invalid xAOD::EventInfo datahandle"
65  << m_eventInfo_key.key());
66  return StatusCode::FAILURE;
67  }
68  auto ei = eventInfo.cptr();
69 
70  const EventContext& context = Gaudi::Hive::currentContext();
72  ATH_CHECK( bunchCrossingTool.isValid() );
73 
82 
83  dec_BCIDDistanceFront(*ei) = bunchCrossingTool->distanceFromFront(ei->bcid(), BunchCrossingCondData::BunchDistanceType::BunchCrossings);
84  dec_BCIDDistanceTail(*ei) = bunchCrossingTool->distanceFromTail(ei->bcid(), BunchCrossingCondData::BunchDistanceType::BunchCrossings);
85  dec_BCIDGapBeforeTrain(*ei) = bunchCrossingTool->gapBeforeTrain(ei->bcid(), BunchCrossingCondData::BunchDistanceType::BunchCrossings);
86  dec_BCIDGapAfterTrain(*ei) = bunchCrossingTool->gapAfterTrain(ei->bcid(), BunchCrossingCondData::BunchDistanceType::BunchCrossings);
87  dec_BCIDType(*ei) = bunchCrossingTool->bcType(ei->bcid());
88  if (ei->bcid()>=12){
89  dec_BCIDTypeMinus12(*ei) = bunchCrossingTool->bcType(ei->bcid()-12);
90  dec_BCIDGapBeforeTrainMinus12(*ei) = bunchCrossingTool->gapBeforeTrain(ei->bcid()-12, BunchCrossingCondData::BunchDistanceType::BunchCrossings);
91  dec_BCIDGapAfterTrainMinus12(*ei) = bunchCrossingTool->gapAfterTrain(ei->bcid()-12, BunchCrossingCondData::BunchDistanceType::BunchCrossings);
92  }else{
93  dec_BCIDTypeMinus12(*ei) = -1;
94  dec_BCIDGapBeforeTrainMinus12(*ei) = 0;
95  dec_BCIDGapAfterTrainMinus12(*ei) = 0;
96  }
97 
98  return StatusCode::SUCCESS;
99 }

◆ finalize()

StatusCode DerivationFramework::DistanceInTrainAugmentationTool::finalize ( )

Definition at line 54 of file DistanceInTrainAugmentationTool.cxx.

55 {
56  ATH_MSG_VERBOSE("finalize() ...");
57  return StatusCode::SUCCESS;
58 }

◆ initialize()

StatusCode DerivationFramework::DistanceInTrainAugmentationTool::initialize ( )

Member Data Documentation

◆ m_BCIDDistanceFrontKey

SG::WriteDecorHandleKey<xAOD::EventInfo> DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDDistanceFrontKey {this, "BCIDDistanceFrontKey", "EventInfo.DFCommonJets_BCIDDistanceFromFront", "Decoration for BCID distance from front"}
private

Definition at line 42 of file DistanceInTrainAugmentationTool.h.

◆ m_BCIDDistanceTailKey

SG::WriteDecorHandleKey<xAOD::EventInfo> DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDDistanceTailKey {this, "BCIDDistanceTailKey", "EventInfo.DFCommonJets_BCIDDistanceTail" , "Decoration for BCID distance from tail"}
private

Definition at line 43 of file DistanceInTrainAugmentationTool.h.

◆ m_BCIDGapAfterTrainKey

SG::WriteDecorHandleKey<xAOD::EventInfo> DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDGapAfterTrainKey {this, "BCIDGapAfterTrainKey", "EventInfo.DFCommonJets_BCIDGapAfterTrain", "Decoration for BCID gap after train"}
private

Definition at line 45 of file DistanceInTrainAugmentationTool.h.

◆ m_BCIDGapAfterTrainMinus12Key

SG::WriteDecorHandleKey<xAOD::EventInfo> DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDGapAfterTrainMinus12Key {this, "BCIDGapAfterTrainMinus12Key", "EventInfo.DFCommonJets_BCIDGapAfterTrainMinus12", "Decoration for BCID gap after train minus 12 BCIDs"}
private

Definition at line 48 of file DistanceInTrainAugmentationTool.h.

◆ m_BCIDGapBeforeTrainKey

SG::WriteDecorHandleKey<xAOD::EventInfo> DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDGapBeforeTrainKey {this, "BCIDGapBeforeTrainKey", "EventInfo.DFCommonJets_BCIDGapBeforeTrain", "Decoration for BCID gap before train"}
private

Definition at line 44 of file DistanceInTrainAugmentationTool.h.

◆ m_BCIDGapBeforeTrainMinus12Key

SG::WriteDecorHandleKey<xAOD::EventInfo> DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDGapBeforeTrainMinus12Key {this, "BCIDGapBeforeTrainMinus12Key", "EventInfo.DFCommonJets_BCIDGapBeforeTrainMinus12", "Decoration for BCID gap before train minus 12 BCIDs"}
private

Definition at line 47 of file DistanceInTrainAugmentationTool.h.

◆ m_BCIDTypeKey

SG::WriteDecorHandleKey<xAOD::EventInfo> DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDTypeKey {this, "BCIDTypeKey", "EventInfo.DFCommonJets_BCIDType", "Decoration for BCID type"}
private

Definition at line 46 of file DistanceInTrainAugmentationTool.h.

◆ m_BCIDTypeMinus12Key

SG::WriteDecorHandleKey<xAOD::EventInfo> DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDTypeMinus12Key {this, "BCIDTypeMinus12Key", "EventInfo.DFCommonJets_BCIDTypeMinus12", "Decoration for BCID type minus 12 BCIDs"}
private

Definition at line 49 of file DistanceInTrainAugmentationTool.h.

◆ m_bunchCrossingKey

SG::ReadCondHandleKey<BunchCrossingCondData> DerivationFramework::DistanceInTrainAugmentationTool::m_bunchCrossingKey {this, "BunchCrossingKey", "BunchCrossingData", "Key BunchCrossing CDO" }
private

Definition at line 38 of file DistanceInTrainAugmentationTool.h.

◆ m_eventInfo_key

SG::ReadHandleKey<xAOD::EventInfo> DerivationFramework::DistanceInTrainAugmentationTool::m_eventInfo_key {this, "EventInfo", "EventInfo", "Input event information"}
private

Definition at line 40 of file DistanceInTrainAugmentationTool.h.


The documentation for this class was generated from the following files:
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDGapBeforeTrainKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_BCIDGapBeforeTrainKey
Definition: DistanceInTrainAugmentationTool.h:44
DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDGapAfterTrainKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_BCIDGapAfterTrainKey
Definition: DistanceInTrainAugmentationTool.h:45
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:274
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:100
DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDGapAfterTrainMinus12Key
SG::WriteDecorHandleKey< xAOD::EventInfo > m_BCIDGapAfterTrainMinus12Key
Definition: DistanceInTrainAugmentationTool.h:48
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDDistanceTailKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_BCIDDistanceTailKey
Definition: DistanceInTrainAugmentationTool.h:43
DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDTypeMinus12Key
SG::WriteDecorHandleKey< xAOD::EventInfo > m_BCIDTypeMinus12Key
Definition: DistanceInTrainAugmentationTool.h:49
DerivationFramework::DistanceInTrainAugmentationTool::m_eventInfo_key
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo_key
Definition: DistanceInTrainAugmentationTool.h:40
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
columnar::ContainerId::eventInfo
@ eventInfo
SG::WriteDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDDistanceFrontKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_BCIDDistanceFrontKey
Definition: DistanceInTrainAugmentationTool.h:42
DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDTypeKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_BCIDTypeKey
Definition: DistanceInTrainAugmentationTool.h:46
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
DerivationFramework::DistanceInTrainAugmentationTool::m_BCIDGapBeforeTrainMinus12Key
SG::WriteDecorHandleKey< xAOD::EventInfo > m_BCIDGapBeforeTrainMinus12Key
Definition: DistanceInTrainAugmentationTool.h:47
DerivationFramework::DistanceInTrainAugmentationTool::m_bunchCrossingKey
SG::ReadCondHandleKey< BunchCrossingCondData > m_bunchCrossingKey
Definition: DistanceInTrainAugmentationTool.h:38