Skip to content
Snippets Groups Projects
Commit f903ac1e authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

JetReclustering: cmake cleanup and fix unchecked StatusCode

parent 44b2dfc9
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!37207Reconstruction/Jet: cmake cleanup
# $Id: CMakeLists.txt 779569 2016-10-21 11:02:57Z krasznaa $
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# The name of the package:
atlas_subdir( JetReclustering )
# Dependency helper variable:
set( extra_deps )
if( XAOD_STANDALONE )
set( extra_deps Control/xAODRootAccess
PhysicsAnalysis/D3PDTools/EventLoop PRIVATE Event/xAOD/xAODEventInfo
Reconstruction/Jet/JetSubStructureMomentTools )
else()
set( extra_deps PRIVATE Control/xAODRootAccess Control/AthenaBaseComps
PhysicsAnalysis/POOLRootAccess GaudiKernel )
endif()
# The dependencies of the package:
atlas_depends_on_subdirs(
PUBLIC
Control/AthToolSupport/AsgTools
Reconstruction/Jet/JetInterface
Reconstruction/Jet/JetRec
${extra_deps}
Event/xAODJet )
# Libraries in the package:
if( XAOD_STANDALONE )
atlas_add_root_dictionary( JetReclusteringLib JetReclusteringCintDict
......@@ -58,7 +38,7 @@ if( NOT XAOD_STANDALONE )
atlas_add_test( ut_JetReclusteringTool_test
SOURCES test/ut_JetReclusteringTool_test.cxx
LINK_LIBRARIES xAODRootAccess AsgTools JetInterface xAODJet
POOLRootAccess )
POOLRootAccessLib )
endif()
# Install files from the package:
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include <xAODRootAccess/Init.h>
......@@ -26,7 +26,7 @@ int main() {
//start just by loading the first event of the test MC file
POOL::TEvent evt(POOL::TEvent::kAthenaAccess);
evt.readFrom("$ASG_TEST_FILE_MC");
ANA_CHECK(evt.readFrom("$ASG_TEST_FILE_MC"));
evt.getEntry(0);
//example of configuring the tool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment