ATLAS Offline Software
SelectionReadHandle.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /// @author Nils Krumnack
6 
7 
8 //
9 // includes
10 //
11 
12 #include <SelectionHelpers/ISelectionReadAccessor.h>
13 
14 //
15 // method implementations
16 //
17 
18 namespace CP
19 {
20  template<typename T2> SelectionReadHandle ::
21  SelectionReadHandle (T2 *owner, const std::string& propertyName,
22  const std::string& propertyValue,
23  const std::string& propertyDescription)
24  : m_selection (propertyValue)
25  {
26  owner->declareProperty (propertyName, m_selection, propertyDescription);
27  }
28 
29 
30 
31  inline bool SelectionReadHandle ::
32  getBool (const SG::AuxElement& element) const
33  {
34  assert (m_accessor);
35  return m_accessor->getBool (element);
36  }
37 }