ATLAS Offline Software
IGoodRunsListSelectorTool.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_IGoodRunsListSelectorTool_H
6 #define GoodRunsLists_IGoodRunsListSelectorTool_H
7 
8 #include "GaudiKernel/IAlgTool.h"
9 #include <vector>
10 #include <string>
11 #include <map>
12 
13 typedef std::pair< std::vector<std::string>, std::vector<std::string> > vvPair;
14 
15 namespace Root {
16  class TGRLCollection;
17 }
18 
19 class IGoodRunsListSelectorTool : virtual public IAlgTool {
20 public:
21 
22  static const InterfaceID& interfaceID() {
23  static const InterfaceID IGoodRunsListSelectorToolID( "IGoodRunsListSelectorTool", 1, 0 );
24  return IGoodRunsListSelectorToolID;
25  }
26 
28  virtual bool passRunLB( int runNumber, int lumiBlockNr,
29  const std::vector<std::string>& grlnameVec=std::vector<std::string>(),
30  const std::vector<std::string>& brlnameVec=std::vector<std::string>() ) = 0 ;
32  virtual bool passThisRunLB( const std::vector<std::string>& grlnameVec=std::vector<std::string>(),
33  const std::vector<std::string>& brlnameVec=std::vector<std::string>() ) = 0 ;
35  virtual bool registerGRLSelector(const std::string& name,
36  const std::vector<std::string>& grlnameVec, const std::vector<std::string>& brlnameVec) = 0 ;
38  virtual const std::map< std::string, vvPair >& getGRLSelectorRegistry() = 0 ;
39 
41  virtual const Root::TGRLCollection* getGRLCollection() const = 0 ;
42  virtual const Root::TGRLCollection* getBRLCollection() const = 0 ;
43 };
44 
45 #endif // GoodRunsLists_IGoodRunsListSelectorTool_H
46 
IGoodRunsListSelectorTool::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 >())=0
DQ Test of run,LBs combination.
Root
Definition: GoodRunsListSelectorTool.h:30
IGoodRunsListSelectorTool::getGRLCollection
virtual const Root::TGRLCollection * getGRLCollection() const =0
get grl/brl collection
IGoodRunsListSelectorTool::getBRLCollection
virtual const Root::TGRLCollection * getBRLCollection() const =0
IGoodRunsListSelectorTool::getGRLSelectorRegistry
virtual const std::map< std::string, vvPair > & getGRLSelectorRegistry()=0
get GRL selector registry
IGoodRunsListSelectorTool::passThisRunLB
virtual bool passThisRunLB(const std::vector< std::string > &grlnameVec=std::vector< std::string >(), const std::vector< std::string > &brlnameVec=std::vector< std::string >())=0
DQ Test of run,LBs combination.
IGoodRunsListSelectorTool
Definition: IGoodRunsListSelectorTool.h:19
vvPair
std::pair< std::vector< std::string >, std::vector< std::string > > vvPair
Definition: IGoodRunsListSelectorTool.h:13
Root::TGRLCollection
Definition: TGRLCollection.h:29
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
IGoodRunsListSelectorTool::interfaceID
static const InterfaceID & interfaceID()
Definition: IGoodRunsListSelectorTool.h:22
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
IGoodRunsListSelectorTool::registerGRLSelector
virtual bool registerGRLSelector(const std::string &name, const std::vector< std::string > &grlnameVec, const std::vector< std::string > &brlnameVec)=0
register grl/brl combination