ATLAS Offline Software
Loading...
Searching...
No Matches
GoodRunsListSelectorTool.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_GoodRunsListSelectorTool_H
6#define GoodRunsLists_GoodRunsListSelectorTool_H
7
12
17
18#include <vector>
19#include <string>
20#include <map>
21
22//typedef std::pair< std::vector<std::string>, std::vector<std::string> > vvPair;
23
27
28class TFormula;
29
30namespace Root {
31 class TGRLCollection;
33}
34
35class GoodRunsListSelectorTool : public extends<AthAlgTool, IGoodRunsListSelectorTool, IAthenaEvtLoopPreSelectTool>
36{
37 public:
38 GoodRunsListSelectorTool( const std::string&, const std::string&, const IInterface* );
40
42 StatusCode initialize();
44 bool passEvent(const EventIDBase& pEvent) ;
46 StatusCode finalize();
47
49 bool passRunLB( int runNumber, int lumiBlockNr,
50 const std::vector<std::string>& grlnameVec=std::vector<std::string>(),
51 const std::vector<std::string>& brlnameVec=std::vector<std::string>() ) ;
53 bool passThisRunLB( const std::vector<std::string>& grlnameVec=std::vector<std::string>(),
54 const std::vector<std::string>& brlnameVec=std::vector<std::string>() ) ;
56 bool registerGRLSelector(const std::string& name, const std::vector<std::string>& grlnameVec, const std::vector<std::string>& brlnameVec);
58 const std::map< std::string, vvPair >& getGRLSelectorRegistry() { return m_registry; }
59
63
64 protected:
65
66 bool fileExists(const char* fileName);
67
68 std::vector<std::string> m_goodrunslistVec;
69 std::vector<std::string> m_blackrunslistVec;
70
73
75
76 std::map< std::string,TFormula* > m_dqformula;
77
82
83 std::map< std::string, vvPair > m_registry;
84
85};
86
87#endif
88
This file contains the class definition for the IAthenaEvtLoopPreSelectTool class.
bool registerGRLSelector(const std::string &name, const std::vector< std::string > &grlnameVec, const std::vector< std::string > &brlnameVec)
register grl/brl combination
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 >())
called for each event by GoodRunsListSelectorAlg to decide if the event should be passed
Root::TGoodRunsListReader * m_reader
bool passEvent(const EventIDBase &pEvent)
called for each event by EventSelector to decide if the event should be passed
std::map< std::string, TFormula * > m_dqformula
Root::TGRLCollection * m_grlcollection
const Root::TGRLCollection * getGRLCollection() const
get grl/brl collection
std::vector< std::string > m_blackrunslistVec
bool fileExists(const char *fileName)
bool passThisRunLB(const std::vector< std::string > &grlnameVec=std::vector< std::string >(), const std::vector< std::string > &brlnameVec=std::vector< std::string >())
called for each event by GoodRunsListSelectorAlg to decide if the event should be passed
StatusCode finalize()
Finalize AlgTool.
GoodRunsListSelectorTool(const std::string &, const std::string &, const IInterface *)
const std::map< std::string, vvPair > & getGRLSelectorRegistry()
get GRL selector registry
Root::TGRLCollection * m_brlcollection
std::vector< std::string > m_goodrunslistVec
StatusCode initialize()
Initialize AlgTool.
const Root::TGRLCollection * getBRLCollection() const
std::map< std::string, vvPair > m_registry