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