ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
AnaAlgorithm
AnaAlgorithm
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
#include <stdexcept>
14
#include <typeinfo>
15
16
//
17
// method implementations
18
//
19
20
namespace EL
21
{
22
#ifdef XAOD_STANDALONE
23
template<typename T> T *AnaAlgorithm ::
24
hist (const std::string& name) const
25
{
26
T *result = dynamic_cast<T*>(hist<TObject>(name));
27
if (result == nullptr)
28
throw std::runtime_error ("histogram not of the right type: " + name + " " + typeid(T).name());
29
return result;
30
}
31
32
33
34
inline TEfficiency *AnaAlgorithm ::
35
efficiency (const std::string& name) const
36
{
37
return histeff (name);
38
}
39
40
41
42
template<> TObject *AnaAlgorithm ::
43
hist<TObject> (const std::string& name) const;
44
#endif
45
}
Generated on
for ATLAS Offline Software by
1.17.0