ATLAS Offline Software
Macros | Functions
testElectronPhotonVariableCorrectionTool_DictionaryToolHandle.cxx File Reference
#include <TError.h>
#include "AsgTools/StandaloneToolHandle.h"
#include "EgammaAnalysisInterfaces/IElectronPhotonShowerShapeFudgeTool.h"
Include dependency graph for testElectronPhotonVariableCorrectionTool_DictionaryToolHandle.cxx:

Go to the source code of this file.

Macros

#define MSGSOURCE   "testElectronPhotonVariableCorrectionTool_DictionaryToolHandle"
 Test code to test ElectronPhotonVariableCorrectionTool Dictionaries. More...
 

Functions

int main ()
 

Macro Definition Documentation

◆ MSGSOURCE

#define MSGSOURCE   "testElectronPhotonVariableCorrectionTool_DictionaryToolHandle"

Function Documentation

◆ main()

int main ( )

Definition at line 21 of file testElectronPhotonVariableCorrectionTool_DictionaryToolHandle.cxx.

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
ZDCMsg::Info
@ Info
Definition: ZDCMsg.h:20
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