ATLAS Offline Software
PhysicsAnalysis
TopPhys
xAOD
TopEventSelectionTools
Root
GRLSelector.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TopEventSelectionTools/GRLSelector.h
"
6
7
#include "
TopEvent/EventTools.h
"
8
9
#include "
xAODEventInfo/EventInfo.h
"
10
11
namespace
top
{
12
GRLSelector::GRLSelector
() {
13
}
14
15
bool
GRLSelector::apply
(
const
top::Event
&
event
)
const
{
16
if
(
event
.m_info->isAvailable<
char
>(
"AnalysisTop_GRL"
)) {
17
if
(
event
.m_info->auxdataConst<
char
>(
"AnalysisTop_GRL"
) == 1) {
18
return
true
;
19
}
20
}
21
return
false
;
22
}
23
24
std::string
GRLSelector::name
()
const
{
25
return
"GRL"
;
26
}
27
}
top
TopConfig A simple configuration that is NOT a singleton.
Definition:
AnalysisTrackingHelper.cxx:58
EventTools.h
A few functions for doing operations on particles / events. Currently holds code for dR,...
top::GRLSelector::GRLSelector
GRLSelector()
Definition:
GRLSelector.cxx:12
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
top::GRLSelector::name
std::string name() const override
The name of the tool.
Definition:
GRLSelector.cxx:24
GRLSelector.h
EventInfo.h
top::Event
Very simple class to hold event data after reading from a file.
Definition:
Event.h:49
top::GRLSelector::apply
virtual bool apply(const top::Event &event) const override
MC simulation passes, data is checked against the GRL.
Definition:
GRLSelector.cxx:15
Generated on Fri Jul 5 2024 21:16:39 for ATLAS Offline Software by
1.8.18