Skip to content
Snippets Groups Projects
Commit 76f3c148 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay Committed by Graeme Stewart
Browse files

Fixed the standalone build of the package with CMake (GoodRunsLists-00-01-34)

	* Fixed the standalone build configuration of the package.
	  By making it use AsgAnalysisInterfaces correctly.
	* Tagging as GoodRunsLists-00-01-34

2016-09-06 Will Buttinger <will@cern.ch>
        * Moved interface class for AsgTool to AsgAnalysisInterfaces package
        * Tagging as GoodRunsLists-00-01-33
parent 7809dc13
No related branches found
No related tags found
No related merge requests found
# $Id: CMakeLists.txt 754313 2016-06-12 10:28:19Z will $ # $Id: CMakeLists.txt 777875 2016-10-11 17:17:13Z krasznaa $
################################################################################ ################################################################################
# Package: GoodRunsLists # Package: GoodRunsLists
################################################################################ ################################################################################
...@@ -12,6 +12,7 @@ if( XAOD_STANDALONE ) ...@@ -12,6 +12,7 @@ if( XAOD_STANDALONE )
PUBLIC PUBLIC
Control/AthToolSupport/AsgTools Control/AthToolSupport/AsgTools
Event/xAOD/xAODEventInfo Event/xAOD/xAODEventInfo
PhysicsAnalysis/Interfaces/AsgAnalysisInterfaces
PRIVATE PRIVATE
Tools/PathResolver ) Tools/PathResolver )
else() else()
...@@ -21,6 +22,7 @@ else() ...@@ -21,6 +22,7 @@ else()
Control/AthenaBaseComps Control/AthenaBaseComps
Control/AthenaKernel Control/AthenaKernel
Event/xAOD/xAODEventInfo Event/xAOD/xAODEventInfo
PhysicsAnalysis/Interfaces/AsgAnalysisInterfaces
GaudiKernel GaudiKernel
PRIVATE PRIVATE
Control/StoreGate Control/StoreGate
...@@ -47,7 +49,7 @@ atlas_add_library( GoodRunsListsLib ...@@ -47,7 +49,7 @@ atlas_add_library( GoodRunsListsLib
PUBLIC_HEADERS GoodRunsLists PUBLIC_HEADERS GoodRunsLists
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
PRIVATE_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIR} PRIVATE_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIR}
LINK_LIBRARIES ${ROOT_LIBRARIES} AsgTools xAODEventInfo LINK_LIBRARIES ${ROOT_LIBRARIES} AsgTools xAODEventInfo AsgAnalysisInterfaces
PRIVATE_LINK_LIBRARIES ${LIBXML2_LIBRARIES} PathResolver ) PRIVATE_LINK_LIBRARIES ${LIBXML2_LIBRARIES} PathResolver )
if( NOT XAOD_STANDALONE ) if( NOT XAOD_STANDALONE )
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "AsgTools/AsgTool.h" #include "AsgTools/AsgTool.h"
// Local include(s): // Local include(s):
#include "GoodRunsLists/IGoodRunsListSelectionTool.h" #include "AsgAnalysisInterfaces/IGoodRunsListSelectionTool.h"
#include "GoodRunsLists/TGRLCollection.h" #include "GoodRunsLists/TGRLCollection.h"
/// Tool implementing the GRL selection /// Tool implementing the GRL selection
......
...@@ -8,10 +8,13 @@ ...@@ -8,10 +8,13 @@
#include "GoodRunsLists/GoodRunsListSelectionTool.h" #include "GoodRunsLists/GoodRunsListSelectionTool.h"
/* removed for now ... maybe move to AsgAnalysisInterfaces if need a dictionary for specific ToolHandle
#include "AsgTools/ToolHandle.h" #include "AsgTools/ToolHandle.h"
struct dummyStruct { struct dummyStruct {
ToolHandle<IGoodRunsListSelectionTool> dummy1; ToolHandle<IGoodRunsListSelectionTool> dummy1;
}; };
*/
#endif #endif
// Dear emacs, this is -*- c++ -*-
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/ */
// $Id$
#ifndef GoodRunsLists_IGoodRunsListSelectionTool_H
#define GoodRunsLists_IGoodRunsListSelectionTool_H
// System include(s):
#include <vector>
#include <string>
// Framework include(s):
#include "AsgTools/IAsgTool.h"
// EDM include(s):
#include "xAODEventInfo/EventInfo.h"
// Forward declaration(s):
namespace Root {
class TGRLCollection;
}
/// Interface to the dual-use GRL tool
///
/// This interface should be used inside an analysis to make use of the
/// GRL tool.
///
/// $Revision$
/// $Date$
///
class IGoodRunsListSelectionTool : virtual public asg::IAsgTool {
ASG_TOOL_INTERFACE( IGoodRunsListSelectionTool )
public:
/// Check if the current event passes the selection
virtual bool passRunLB( const std::vector< std::string >& grlnameVec =
std::vector< std::string >(),
const std::vector< std::string >& brlnameVec =
std::vector< std::string >() ) const = 0;
/// Check if the event specified passes the selection
virtual bool passRunLB( const xAOD::EventInfo& event,
const std::vector< std::string >& grlnameVec =
std::vector< std::string >(),
const std::vector< std::string >& brlnameVec =
std::vector< std::string >() ) const = 0;
/// Check if the event specified passes the selection
virtual bool passRunLB( int runNumber, int lumiBlockNr,
const std::vector< std::string >& grlnameVec =
std::vector< std::string >(),
const std::vector< std::string >& brlnameVec =
std::vector< std::string >() ) const = 0;
/// Get the good runs list used by the tool
virtual const Root::TGRLCollection& getGRLCollection() const = 0;
/// Get the bad runs list used by the tool
virtual const Root::TGRLCollection& getBRLCollection() const = 0;
}; // class IGoodRunsListSelectionTool #warning Please use AsgAnalysisInterfaces/IGoodRunsListSelectionTool.h
#endif // GoodRunsLists_IGoodRunsListSelectionTool_H #include "AsgAnalysisInterfaces/IGoodRunsListSelectionTool.h"
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
<!-- GoodRunsListSelectionTool --> <!-- GoodRunsListSelectionTool -->
<class name="GoodRunsListSelectionTool" /> <class name="GoodRunsListSelectionTool" />
<class name="ToolHandle<IGoodRunsListSelectionTool>" />
<class name="IGoodRunsListSelectionTool" />
<exclusion> <exclusion>
......
# Author: Max Baak (mbaak@cern.ch) # Author: Max Baak (mbaak@cern.ch)
# GoodRunsLists root stand-alone makefile
PACKAGE = GoodRunsLists PACKAGE = GoodRunsLists
PACKAGE_PRELOAD = Tree TreePlayer XMLParser XMLIO PACKAGE_PRELOAD = Tree TreePlayer XMLParser XMLIO
PACKAGE_TRYDEP = AsgTools xAODEventInfo PathResolver PACKAGE_TRYDEP = AsgTools xAODEventInfo PathResolver AsgAnalysisInterfaces
PACKAGE_CXXFLAGS = -I/usr/include/libxml2 PACKAGE_CXXFLAGS = -I/usr/include/libxml2
PACKAGE_BINFLAGS = -lxml2 PACKAGE_BINFLAGS = -lxml2
PACKAGE_PEDANTIC = 1 PACKAGE_PEDANTIC = 1
......
...@@ -12,6 +12,8 @@ use GaudiInterface GaudiInterface-* External ...@@ -12,6 +12,8 @@ use GaudiInterface GaudiInterface-* External
use xAODEventInfo xAODEventInfo-* Event/xAOD use xAODEventInfo xAODEventInfo-* Event/xAOD
use AsgTools AsgTools-* Control/AthToolSupport use AsgTools AsgTools-* Control/AthToolSupport
use AsgAnalysisInterfaces AsgAnalysisInterfaces-* PhysicsAnalysis/Interfaces
private private
use DetectorStatus DetectorStatus-* DetectorDescription/DetDescrCond use DetectorStatus DetectorStatus-* DetectorDescription/DetDescrCond
use EventInfo EventInfo-* Event use EventInfo EventInfo-* Event
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "AthenaBaseComps/AthAlgorithm.h" #include "AthenaBaseComps/AthAlgorithm.h"
#include "GaudiKernel/ToolHandle.h" //included under assumption you'll want to use some tools! Remove if you don't! #include "GaudiKernel/ToolHandle.h" //included under assumption you'll want to use some tools! Remove if you don't!
#include "GoodRunsLists/IGoodRunsListSelectionTool.h" #include "AsgAnalysisInterfaces/IGoodRunsListSelectionTool.h"
///Author: will buttinger ///Author: will buttinger
///To use this alg in your joboptions: ///To use this alg in your joboptions:
......
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