ATLAS Offline Software
getLabel.cxx
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration.
3  */
14 #include "getLabel.h"
16 
17 
18 namespace HLT {
19 namespace TrigNavTools {
20 
21 
22 std::string
25 {
26  CLID clid = fah.getCLID();
27  std::string label;
28  HLTNavDetails::IHolder *h = navigation.getHolder(clid, fah.getIndex().subTypeIndex());
29  if(h) label = h->label();
30 
31  return label;
32 }
33 
34 
35 }} // namespace HLT::TrigNavTools
HLT::TrigNavTools::SlimmingHelper::getLabel
static std::string getLabel(const HLT::NavigationCore &navigation, const HLT::TriggerElement::FeatureAccessHelper &fah)
Definition: getLabel.cxx:23
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
HLT::TriggerElement::FeatureAccessHelper::getCLID
class_id_type getCLID() const
Class ID of object.
Definition: TrigNavStructure/TrigNavStructure/TriggerElement.h:208
HLT::NavigationCore::getHolder
HLTNavDetails::Holder< T > * getHolder(uint16_t subTypeIndex) const
as above but does not create holder on demand (return 0 if not found)
HLT::NavigationCore
The NavigationCore class, adds on top of the TrigNavStructure the EDM read-only handling.
Definition: NavigationCore.h:96
HLT::TriggerElement::ObjectIndex::subTypeIndex
sub_index_type subTypeIndex() const
to get collection index
Definition: TrigNavStructure/Root/TriggerElement.cxx:247
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
Navigation.h
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
getLabel.h
Helper function to get a label for a feature.
HLT::TriggerElement::FeatureAccessHelper::getIndex
const ObjectIndex & getIndex() const
index in the external ojects array
Definition: TrigNavStructure/TrigNavStructure/TriggerElement.h:209
h
HLT::TriggerElement::FeatureAccessHelper
the FeatureAccessHelper is a class used to keep track of features attached to this TE.
Definition: TrigNavStructure/TrigNavStructure/TriggerElement.h:192
HLTNavDetails::IHolder
Definition: Holder.h:58