ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
ElectronPhotonID
EGammaVariableCorrection
util
testElectronPhotonVariableCorrectionTool_DictionaryToolHandle.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
10
11
// ROOT include(s):
12
#include <TError.h>
13
14
// EDM include(s):
15
#include "
AsgTools/StandaloneToolHandle.h
"
16
17
#include "
EgammaAnalysisInterfaces/IElectronPhotonShowerShapeFudgeTool.h
"
18
19
#define MSGSOURCE "testElectronPhotonVariableCorrectionTool_DictionaryToolHandle"
20
21
int
main
(
/*int argc, char* argv[]*/
)
//unused variable warnings!!
22
{
23
Info(
MSGSOURCE
,
"Configuring the ElectronPhotonVariableCorrectionTool"
);
24
try
{
25
asg::StandaloneToolHandle<IElectronPhotonShowerShapeFudgeTool>
myTool(
"ElectronPhotonVariableCorrectionTool/myTool"
);
26
myTool.
setProperty
(
"ConfigFile"
,
"EGammaVariableCorrection/EGammaVariableCorrectionTool_ExampleConf.conf"
).ignore();
27
if
(myTool.
initialize
() != StatusCode::SUCCESS)
28
{
29
Error(
MSGSOURCE
,
"Unable to initialize the ElectronPhotonVariableCorrectionTool!"
);
30
return
1;
31
}
32
else
33
{
34
Info(
MSGSOURCE
,
"Initialized the ElectronPhotonVariableCorrectionTool!"
);
35
}
36
}
catch
(
const
std::exception& e) {
37
std::cerr <<
"exception: "
<< e.what() <<
"\n"
;
38
return
1;
39
}
40
41
42
return
0;
43
}
//end main
IElectronPhotonShowerShapeFudgeTool.h
StandaloneToolHandle.h
asg::StandaloneToolHandle
an "initializing" ToolHandle for stand-alone applications
Definition
StandaloneToolHandle.h:44
asg::StandaloneToolHandle::setProperty
StatusCode setProperty(const std::string &name, T2 &&value)
Definition
StandaloneToolHandle.h:105
asg::StandaloneToolHandle::initialize
StatusCode initialize()
initialize the tool, will fail if the tool was already initialized
Definition
StandaloneToolHandle.h:158
MSGSOURCE
#define MSGSOURCE
Test code to test ElectronPhotonVariableCorrectionTool Dictionaries.
Definition
testElectronPhotonVariableCorrectionTool_DictionaryToolHandle.cxx:19
main
int main()
Definition
testElectronPhotonVariableCorrectionTool_DictionaryToolHandle.cxx:21
Generated on
for ATLAS Offline Software by
1.17.0