ATLAS Offline Software
IGoodRunsListSelectorTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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 extend_interfaces<IAlgTool> {
20 public:
21 
23 
25  virtual bool passRunLB( int runNumber, int lumiBlockNr,
26  const std::vector<std::string>& grlnameVec=std::vector<std::string>(),
27  const std::vector<std::string>& brlnameVec=std::vector<std::string>() ) = 0 ;
29  virtual bool passThisRunLB( 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 registerGRLSelector(const std::string& name,
33  const std::vector<std::string>& grlnameVec, const std::vector<std::string>& brlnameVec) = 0 ;
35  virtual const std::map< std::string, vvPair >& getGRLSelectorRegistry() = 0 ;
36 
38  virtual const Root::TGRLCollection* getGRLCollection() const = 0 ;
39  virtual const Root::TGRLCollection* getBRLCollection() const = 0 ;
40 };
41 
42 #endif // GoodRunsLists_IGoodRunsListSelectorTool_H
43 
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:221
IGoodRunsListSelectorTool::DeclareInterfaceID
DeclareInterfaceID(IGoodRunsListSelectorTool, 1, 0)
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