ATLAS Offline Software
PhotonSelectionBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef PHOTONSELECTIONBASE_H_
6 #define PHOTONSELECTIONBASE_H_
7 
8 #include "xAODEgamma/Photon.h"
9 
10 #include <memory>
11 
12 namespace top {
21  public:
23  virtual ~PhotonSelectionBase();
24 
27 
30 
33 
35  virtual bool passSelection(const xAOD::Photon&) const = 0;
36 
38  virtual bool passSelectionLoose(const xAOD::Photon&) const = 0;
39 
41  virtual void print(std::ostream&) const = 0;
42  };
43 
44  std::ostream& operator << (std::ostream& os, const top::PhotonSelectionBase& selection);
45 }
46 
47 #endif
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::operator<<
std::ostream & operator<<(std::ostream &os, const SelectionConfigurationData &data)
Definition: ConfigurationSettings.cxx:1041
Photon.h
top::PhotonSelectionBase::PhotonSelectionBase
PhotonSelectionBase(const PhotonSelectionBase &rhs)=delete
No copy construction.
top::PhotonSelectionBase
Base class for implementing an Photon selection.
Definition: PhotonSelectionBase.h:20
top::PhotonSelectionBase::passSelection
virtual bool passSelection(const xAOD::Photon &) const =0
For the main analysis object selection.
top::PhotonSelectionBase::operator=
PhotonSelectionBase & operator=(const PhotonSelectionBase &rhs)=delete
No assignment.
selection
std::string selection
Definition: fbtTestBasics.cxx:73
top::PhotonSelectionBase::PhotonSelectionBase
PhotonSelectionBase()
Definition: PhotonSelectionBase.cxx:10
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
top::PhotonSelectionBase::passSelectionLoose
virtual bool passSelectionLoose(const xAOD::Photon &) const =0
For the loose object selection.
top::PhotonSelectionBase::print
virtual void print(std::ostream &) const =0
Because everybody likes to know what object definitions they ran with.
xAOD::Photon_v1
Definition: Photon_v1.h:37
top::PhotonSelectionBase::~PhotonSelectionBase
virtual ~PhotonSelectionBase()
Definition: PhotonSelectionBase.cxx:13
top::PhotonSelectionBase::PhotonSelectionBase
PhotonSelectionBase(PhotonSelectionBase &&rhs)=delete
No moving.