ATLAS Offline Software
EGIdentification_mem_check.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /* To run with something like
6 valgrind --tool=memcheck --leak-check=full --suppressions=$ROOTSYS/etc/valgrind-root.supp --error-limit=no --track-origins=yes --smc-check=all --trace-children=yes --track-fds=yes --num-callers=30 $ROOTCOREBIN/bin/x86_64-slc6-gcc49-opt/EGIdentification_mem_check>valgrind.log 2>&1 &
7 
8 In order to identify memory leaks in out methods
9 Look here:
10 http://valgrind.org/docs/manual/faq.html#faq.deflost
11 
12 */
13 
20 
21 int main(){
22  using namespace asg::msgUserCode;
23  ANA_CHECK_SET_TYPE (int);
24  asg::StandaloneToolHandle<IAsgElectronLikelihoodTool> MediumLH("AsgElectronLikelihoodTool/MediumLH");
25  ANA_CHECK(MediumLH.setProperty("WorkingPoint", "MediumLHElectron"));
26  ANA_CHECK(MediumLH.initialize());
27 
28  return 0;
29 }
IAsgForwardElectronIsEMSelector.h
IAsgPhotonIsEMSelector.h
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
IAsgElectronLikelihoodTool.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
MessageCheck.h
macros for messaging and checking status codes
main
int main()
Definition: EGIdentification_mem_check.cxx:21
IAsgElectronIsEMSelector.h
ANA_CHECK_SET_TYPE
#define ANA_CHECK_SET_TYPE(TYPE)
set the type for ANA_CHECK to report failures
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:314
StandaloneToolHandle.h