![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
20 bool loose =
event.m_isLoose;
30 bool trigMatch(
false);
38 for (
const auto*
const elPtr :
event.m_electrons) {
39 std::string trig =
"TRIGMATCH_" +
trigger.first;
40 if (elPtr->isAvailable<
char>(trig)) {
41 if (elPtr->auxdataConst<
char>(trig) == 1) {
48 for (
const auto*
const muPtr :
event.m_muons) {
49 std::string trig =
"TRIGMATCH_" +
trigger.first;
50 if (muPtr->isAvailable<
char>(trig)) {
51 if (muPtr->auxdataConst<
char>(trig) == 1) {
58 for (
const auto*
const tauPtr :
event.m_tauJets) {
59 std::string trig =
"TRIGMATCH_" +
trigger.first;
60 if (tauPtr->isAvailable<
char>(trig)) {
61 if (tauPtr->auxdataConst<
char>(trig) == 1) {
68 for (
const auto*
const photonPtr :
event.m_photons) {
69 std::string trig =
"TRIGMATCH_" +
trigger.first;
70 if (photonPtr->isAvailable<
char>(trig)) {
71 if (photonPtr->auxdataConst<
char>(trig) == 1) {
76 if (nObjects >=
trigger.second) trigMatch =
true;
83 std::string
name =
"TRIGMATCH";
TopConfig A simple configuration that is NOT a singleton.
std::vector< std::pair< std::string, int > > m_allTriggers_Loose
std::vector< std::pair< std::string, int > > m_allTriggers_Tight
List of triggers to 'or' together for each event. If any one passes, the event passes.
POOL::TEvent event(POOL::TEvent::kClassAccess)
virtual bool apply(const top::Event &event) const override
This does stuff based on the information in an event.
std::string name() const override
A human readable name.
TrigMatchSelector(const std::string &selectorName, std::shared_ptr< top::TopConfig > config)
Very simple class to hold event data after reading from a file.