ATLAS Offline Software
Loading...
Searching...
No Matches
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
6valgrind --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
8In order to identify memory leaks in out methods
9Look here:
10http://valgrind.org/docs/manual/faq.html#faq.deflost
11
12*/
13
20
21int main(){
22 using namespace asg::msgUserCode;
24 asg::StandaloneToolHandle<IAsgElectronLikelihoodTool> MediumLH("AsgElectronLikelihoodTool/MediumLH");
25 ANA_CHECK(MediumLH.setProperty("WorkingPoint", "MediumLHElectron"));
26 ANA_CHECK(MediumLH.initialize());
27
28 return 0;
29}
macros for messaging and checking status codes
#define ANA_CHECK(EXP)
check whether the given expression was successful
#define ANA_CHECK_SET_TYPE(TYPE)
set the type for ANA_CHECK to report failures
an "initializing" ToolHandle for stand-alone applications
StatusCode setProperty(const std::string &name, T2 &&value)
StatusCode initialize()
initialize the tool, will fail if the tool was already initialized