ATLAS Offline Software
testElectronPhotonVariableCorrectionTool_DictionaryToolHandle.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 // ROOT include(s):
12 #include <TError.h>
13 
14 // EDM include(s):
16 
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  asg::StandaloneToolHandle<IElectronPhotonShowerShapeFudgeTool> myTool("ElectronPhotonVariableCorrectionTool/myTool");
25  myTool.setProperty("ConfigFile", "EGammaVariableCorrection/EGammaVariableCorrectionTool_ExampleConf.conf").ignore();
26  if(myTool.initialize() != StatusCode::SUCCESS)
27  {
28  Error(MSGSOURCE, "Unable to initialize the ElectronPhotonVariableCorrectionTool!");
29  return 1;
30  }
31  else
32  {
33  Info(MSGSOURCE, "Initialized the ElectronPhotonVariableCorrectionTool!");
34  }
35 
36 
37  return 0;
38 } //end main
main
int main()
Definition: testElectronPhotonVariableCorrectionTool_DictionaryToolHandle.cxx:21
IElectronPhotonShowerShapeFudgeTool.h
asg::StandaloneToolHandle::initialize
StatusCode initialize()
initialize the tool, will fail if the tool was already initialized
Definition: StandaloneToolHandle.h:158
asg::StandaloneToolHandle::setProperty
StatusCode setProperty(const std::string &name, T2 &&value)
Definition: StandaloneToolHandle.h:105
asg::StandaloneToolHandle
an "initializing" ToolHandle for stand-alone applications
Definition: StandaloneToolHandle.h:44
MSGSOURCE
#define MSGSOURCE
Test code to test ElectronPhotonVariableCorrectionTool Dictionaries.
Definition: testElectronPhotonVariableCorrectionTool_DictionaryToolHandle.cxx:19
L1Topo::Error
Error
The different types of error that can be flagged in the L1TopoRDO.
Definition: Error.h:16
StandaloneToolHandle.h