ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DataQuality
GoodRunsLists
GoodRunsLists
GoodRunsListSelectorTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef GoodRunsLists_GoodRunsListSelectorTool_H
6
#define GoodRunsLists_GoodRunsListSelectorTool_H
7
12
13
#include "
GoodRunsLists/IGoodRunsListSelectorTool.h
"
14
#include "
AthenaBaseComps/AthAlgTool.h
"
15
#include "
AthenaKernel/IAthenaEvtLoopPreSelectTool.h
"
16
#include "
GoodRunsLists/RegularFormula.h
"
17
#include "
GoodRunsLists/TGoodRunsListReader.h
"
18
#include "
GoodRunsLists/TGRLCollection.h
"
19
#include <vector>
20
#include <string>
21
#include <map>
22
#include <memory>
23
24
28
29
30
class
GoodRunsListSelectorTool
:
public
extends<AthAlgTool, IGoodRunsListSelectorTool, IAthenaEvtLoopPreSelectTool>
31
{
32
public
:
33
//Delegate constructor
34
using
base_class::base_class;
35
36
virtual
~GoodRunsListSelectorTool
() {};
37
39
StatusCode
initialize
();
41
bool
passEvent
(
const
EventIDBase& pEvent) ;
43
StatusCode
finalize
();
44
46
bool
passRunLB
(
int
runNumber,
int
lumiBlockNr,
47
const
std::vector<std::string>& grlnameVec=std::vector<std::string>(),
48
const
std::vector<std::string>& brlnameVec=std::vector<std::string>() ) ;
50
bool
passThisRunLB
(
const
std::vector<std::string>& grlnameVec=std::vector<std::string>(),
51
const
std::vector<std::string>& brlnameVec=std::vector<std::string>() ) ;
53
bool
registerGRLSelector
(
const
std::string& name,
const
std::vector<std::string>& grlnameVec,
const
std::vector<std::string>& brlnameVec);
55
const
std::map< std::string, vvPair >&
getGRLSelectorRegistry
() {
return
m_registry
; }
56
58
const
Root::TGRLCollection
*
getGRLCollection
()
const
{
return
m_grlcollection
.get(); }
59
const
Root::TGRLCollection
*
getBRLCollection
()
const
{
return
m_brlcollection
.get(); }
60
61
protected
:
62
63
bool
fileExists
(
const
char
* fileName);
64
65
Gaudi::Property<std::vector<std::string> >
m_goodrunslistVec
{
this
,
"GoodRunsListVec"
, {},
"list of input xml files"
};
66
Gaudi::Property<std::vector<std::string> >
m_blackrunslistVec
{
this
,
"BlackRunsListVec"
, {},
"list of input xml files"
};
67
68
69
std::unique_ptr<Root::TGRLCollection>
m_grlcollection
{
new
Root::TGRLCollection
()};
70
std::unique_ptr<Root::TGRLCollection>
m_brlcollection
{
new
Root::TGRLCollection
()};
71
72
std::unique_ptr<Root::TGoodRunsListReader>
m_reader
{
new
Root::TGoodRunsListReader
()};
73
74
Gaudi::Property<int>
m_boolop
{
this
,
"BoolOperation"
,0};
75
Gaudi::Property<bool>
m_passthrough
{
this
,
"PassThrough"
,
true
};
76
Gaudi::Property<bool>
m_rejectanybrl
{
this
,
"RejectBlackRunsInEventSelector"
,
false
};
77
Gaudi::Property<bool>
m_eventselectormode
{
this
,
"EventSelectorMode"
,
false
};
78
79
std::map< std::string, vvPair >
m_registry
;
80
81
};
82
83
#endif
84
AthAlgTool.h
IAthenaEvtLoopPreSelectTool.h
This file contains the class definition for the IAthenaEvtLoopPreSelectTool class.
IGoodRunsListSelectorTool.h
RegularFormula.h
TGRLCollection.h
TGoodRunsListReader.h
GoodRunsListSelectorTool
This file contains the class definition for the GoodRunsListSelectorTool class.
Definition
GoodRunsListSelectorTool.h:31
GoodRunsListSelectorTool::registerGRLSelector
bool registerGRLSelector(const std::string &name, const std::vector< std::string > &grlnameVec, const std::vector< std::string > &brlnameVec)
register grl/brl combination
Definition
GoodRunsListSelectorTool.cxx:253
GoodRunsListSelectorTool::m_brlcollection
std::unique_ptr< Root::TGRLCollection > m_brlcollection
Definition
GoodRunsListSelectorTool.h:70
GoodRunsListSelectorTool::m_eventselectormode
Gaudi::Property< bool > m_eventselectormode
Definition
GoodRunsListSelectorTool.h:77
GoodRunsListSelectorTool::m_blackrunslistVec
Gaudi::Property< std::vector< std::string > > m_blackrunslistVec
Definition
GoodRunsListSelectorTool.h:66
GoodRunsListSelectorTool::m_boolop
Gaudi::Property< int > m_boolop
Definition
GoodRunsListSelectorTool.h:74
GoodRunsListSelectorTool::passRunLB
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
Definition
GoodRunsListSelectorTool.cxx:165
GoodRunsListSelectorTool::passEvent
bool passEvent(const EventIDBase &pEvent)
called for each event by EventSelector to decide if the event should be passed
Definition
GoodRunsListSelectorTool.cxx:100
GoodRunsListSelectorTool::m_passthrough
Gaudi::Property< bool > m_passthrough
Definition
GoodRunsListSelectorTool.h:75
GoodRunsListSelectorTool::~GoodRunsListSelectorTool
virtual ~GoodRunsListSelectorTool()
Definition
GoodRunsListSelectorTool.h:36
GoodRunsListSelectorTool::getGRLCollection
const Root::TGRLCollection * getGRLCollection() const
get grl/brl collection
Definition
GoodRunsListSelectorTool.h:58
GoodRunsListSelectorTool::fileExists
bool fileExists(const char *fileName)
Definition
GoodRunsListSelectorTool.cxx:231
GoodRunsListSelectorTool::m_rejectanybrl
Gaudi::Property< bool > m_rejectanybrl
Definition
GoodRunsListSelectorTool.h:76
GoodRunsListSelectorTool::passThisRunLB
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
Definition
GoodRunsListSelectorTool.cxx:131
GoodRunsListSelectorTool::finalize
StatusCode finalize()
Finalize AlgTool.
Definition
GoodRunsListSelectorTool.cxx:223
GoodRunsListSelectorTool::m_grlcollection
std::unique_ptr< Root::TGRLCollection > m_grlcollection
Definition
GoodRunsListSelectorTool.h:69
GoodRunsListSelectorTool::getGRLSelectorRegistry
const std::map< std::string, vvPair > & getGRLSelectorRegistry()
get GRL selector registry
Definition
GoodRunsListSelectorTool.h:55
GoodRunsListSelectorTool::m_reader
std::unique_ptr< Root::TGoodRunsListReader > m_reader
Definition
GoodRunsListSelectorTool.h:72
GoodRunsListSelectorTool::m_goodrunslistVec
Gaudi::Property< std::vector< std::string > > m_goodrunslistVec
Definition
GoodRunsListSelectorTool.h:65
GoodRunsListSelectorTool::initialize
StatusCode initialize()
Initialize AlgTool.
Definition
GoodRunsListSelectorTool.cxx:20
GoodRunsListSelectorTool::getBRLCollection
const Root::TGRLCollection * getBRLCollection() const
Definition
GoodRunsListSelectorTool.h:59
GoodRunsListSelectorTool::m_registry
std::map< std::string, vvPair > m_registry
Definition
GoodRunsListSelectorTool.h:79
Root::TGRLCollection
Definition
TGRLCollection.h:24
Root::TGoodRunsListReader
Definition
TGoodRunsListReader.h:34
Generated on
for ATLAS Offline Software by
1.17.0