ATLAS Offline Software
PhysicsAnalysis/Interfaces/AsgAnalysisInterfaces/AsgAnalysisInterfaces/IGoodRunsListSelectionTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GoodRunsLists_IGoodRunsListSelectionTool_H
6 #define GoodRunsLists_IGoodRunsListSelectionTool_H
7 
8 // System include(s):
9 #include <vector>
10 #include <string>
11 
12 // Framework include(s):
13 #include "AsgTools/IAsgTool.h"
14 
15 // EDM include(s):
17 
18 // Forward declaration(s):
19 namespace Root {
20  class TGRLCollection;
21 }
22 
25 
26 class IGoodRunsListSelectionTool : virtual public asg::IAsgTool {
27 
29 
30 public:
32  virtual bool passRunLB( const std::vector< std::string >& grlnameVec =
33  std::vector< std::string >(),
34  const std::vector< std::string >& brlnameVec =
35  std::vector< std::string >() ) const = 0;
36 
38  virtual bool passRunLB( const xAOD::EventInfo& event,
39  const std::vector< std::string >& grlnameVec =
40  std::vector< std::string >(),
41  const std::vector< std::string >& brlnameVec =
42  std::vector< std::string >() ) const = 0;
43 
45  virtual bool passRunLB( int runNumber, int lumiBlockNr,
46  const std::vector< std::string >& grlnameVec =
47  std::vector< std::string >(),
48  const std::vector< std::string >& brlnameVec =
49  std::vector< std::string >() ) const = 0;
50 
52  virtual const Root::TGRLCollection& getGRLCollection() const = 0;
53 
55  virtual const Root::TGRLCollection& getBRLCollection() const = 0;
56 
57 }; // class IGoodRunsListSelectionTool
58 
59 #endif // GoodRunsLists_IGoodRunsListSelectionTool_H
Root
Definition: GoodRunsListSelectorTool.h:30
IGoodRunsListSelectionTool::getGRLCollection
virtual const Root::TGRLCollection & getGRLCollection() const =0
Get the good runs list used by the tool.
asg::IAsgTool
Base class for the dual-use tool interface classes.
Definition: IAsgTool.h:41
IGoodRunsListSelectionTool
Main tools implementing this interface: GoodRunsListSelectionTool (source code: DataQuality/GoodRunsL...
Definition: PhysicsAnalysis/Interfaces/AsgAnalysisInterfaces/AsgAnalysisInterfaces/IGoodRunsListSelectionTool.h:26
IGoodRunsListSelectionTool::passRunLB
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.
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
IGoodRunsListSelectionTool::passRunLB
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
Check if the event specified passes the selection.
ASG_TOOL_INTERFACE
#define ASG_TOOL_INTERFACE(CLASSNAME)
Definition: AsgToolMacros.h:40
IAsgTool.h
Root::TGRLCollection
Definition: TGRLCollection.h:29
EventInfo.h
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
IGoodRunsListSelectionTool::passRunLB
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 current event passes the selection.
IGoodRunsListSelectionTool::getBRLCollection
virtual const Root::TGRLCollection & getBRLCollection() const =0
Get the bad runs list used by the tool.