ATLAS Offline Software
AnaAlgorithm.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 //
10 // includes
11 //
12 
13 //
14 // method implementations
15 //
16 
17 namespace EL
18 {
19 #ifdef XAOD_STANDALONE
20  template<typename T> T *AnaAlgorithm ::
21  hist (const std::string& name) const
22  {
23  T *result = dynamic_cast<T*>(hist<TObject>(name));
24  if (result == nullptr)
25  throw std::runtime_error ("histogram not of the right type: " + name + " " + typeid(T).name());
26  return result;
27  }
28 
29 
30 
31  inline TEfficiency *AnaAlgorithm ::
32  efficiency (const std::string& name) const
33  {
34  return histeff (name);
35  }
36 
37 
38 
39  template<> TObject *AnaAlgorithm ::
40  hist<TObject> (const std::string& name) const;
41 #endif
42 }