|
ATLAS Offline Software
|
Go to the documentation of this file.
14 using namespace TopObjectSelectionTools;
20 m_photon_selection(
"DFCommonPhotonsIsEMTight"),
21 m_loose_photon_selection(
"DFCommonPhotonsIsEMLoose"),
22 m_isolation(isolation) {
26 const std::string& tightID,
27 const std::string& looseID,
31 m_photon_selection(tightID),
32 m_loose_photon_selection(looseID),
33 m_isolation(isolation) {
35 std::map<std::string, std::string> id_map;
36 id_map[
"Tight"] =
"DFCommonPhotonsIsEMTight";
37 id_map[
"Loose"] =
"DFCommonPhotonsIsEMLoose";
38 id_map[
"None"] =
"None";
64 const std::string& photon_selection)
const {
77 if (photon_selection !=
"None")
78 if (!ph.
auxdataConst<
char>(photon_selection))
return false;
83 if (abs_eta >
m_etamax)
return false;
86 if (abs_eta > 1.37 && abs_eta < 1.52)
return false;
92 if (!accDFCommonPhotonsCleaning(ph))
return false;
93 if (!accDFCommonPhotonsCleaningNoTime(ph))
return false;
std::unique_ptr< top::IsolationBase > m_isolation
std::string m_photon_selection
TopConfig A simple configuration that is NOT a singleton.
void print(std::ostream &) const override
Print some useful information about the photon selection.
uint16_t author(uint16_t bitmask=EgammaParameters::AuthorALL) const
Get author.
Helper class to provide constant type-safe access to aux data.
Accessor< T, ALLOC >::const_reference_type auxdataConst(const std::string &name) const
Fetch an aux data variable, as a const reference.
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
const uint16_t AuthorAmbiguous
Object Reconstructed by standard cluster-based algorithm.
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
void check(bool thingToCheck, const std::string &usefulFailureMessage)
Print an error message and terminate if thingToCheck is false.
bool passSelectionLoose(const xAOD::Photon &ph) const override
The loose selection.
asg::AnaToolHandle< IAsgDeadHVCellRemovalTool > m_deadHVTool
Photon_v1 Photon
Definition of the current "egamma version".
const uint32_t BADCLUSPHOTON
bool passSelectionNoIsolation(const xAOD::Photon &ph, const std::string &photon_selection) const
Do all the cuts except for the isolation.
A common base for implementing isolation cuts.
const uint16_t AuthorPhoton
Object Reconstructed by standard cluster-based algorithm.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Photon(double ptcut, double etamax, IsolationBase *isolation)
Class to help select good photons.
std::string m_loose_photon_selection
bool passSelection(const xAOD::Photon &ph) const override
The cuts to select good photons for your analysis should be implemented in here.
bool isGoodOQ(uint32_t mask) const
Check object quality. Return True is it is Good Object Quality.