ATLAS Offline Software
Loading...
Searching...
No Matches
SysReadSelectionHandle.icc
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 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
18namespace CP
19{
20 template<typename T2> SysReadSelectionHandle ::
21 SysReadSelectionHandle (T2 *owner, const std::string& propertyName,
22 const std::string& propertyValue,
23 const std::string& propertyDescription)
24 : AsgMessagingForward (owner), m_selection (propertyValue)
25 {
26 owner->declareProperty (propertyName, m_selection, propertyDescription);
27 }
28
29 template<typename T2> SysReadSelectionHandle ::
30 SysReadSelectionHandle (const std::string& selection, T2 *owner)
31 : AsgMessagingForward (owner), m_selection(selection)
32 {}
33
34
35 inline bool SysReadSelectionHandle ::
36 getBool (const SG::AuxElement& element,
37 const CP::SystematicSet& sys) const
38 {
39 assert (m_accessor);
40 return m_accessor->getBool (element, &sys);
41 }
42}