ATLAS Offline Software
PhysicsAnalysis
TopPhys
xAOD
TopEventSelectionTools
Root
GoodCaloSelector.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/GoodCaloSelector.h
"
6
#include "
TopEvent/EventTools.h
"
7
8
namespace
top
{
9
GoodCaloSelector::GoodCaloSelector
() {
10
}
11
12
bool
GoodCaloSelector::apply
(
const
top::Event
&
event
)
const
{
13
if
(
event
.m_info->isAvailable<
char
>(
"AnalysisTop_GOODCALO"
)) {
14
if
(
event
.m_info->auxdataConst<
char
>(
"AnalysisTop_GOODCALO"
) == 1) {
15
return
true
;
16
}
17
}
18
return
false
;
19
}
20
21
std::string
GoodCaloSelector::name
()
const
{
22
return
"GOODCALO"
;
23
}
24
}
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::GoodCaloSelector::GoodCaloSelector
GoodCaloSelector()
Definition:
GoodCaloSelector.cxx:9
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
top::GoodCaloSelector::name
std::string name() const override
The name of the tool.
Definition:
GoodCaloSelector.cxx:21
top::Event
Very simple class to hold event data after reading from a file.
Definition:
Event.h:49
top::GoodCaloSelector::apply
virtual bool apply(const top::Event &event) const override
MC simulation passes, data is checked against the GRL.
Definition:
GoodCaloSelector.cxx:12
GoodCaloSelector.h
Generated on Fri Jul 5 2024 21:16:37 for ATLAS Offline Software by
1.8.18