CMS 3D CMS Logo

Functions
PhotonDNNEstimator.cc File Reference
#include "RecoEgamma/PhotonIdentification/interface/PhotonDNNEstimator.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/FileInPath.h"
#include <iostream>
#include <fstream>
#include <memory>

Go to the source code of this file.

Functions

uint photonModelSelector (const std::map< std::string, float > &vars, float etaThr)
 

Function Documentation

◆ photonModelSelector()

uint photonModelSelector ( const std::map< std::string, float > &  vars,
float  etaThr 
)
inline

Definition at line 11 of file PhotonDNNEstimator.cc.

References funct::abs().

11  {
12  /*
13  Selection of the model to be applied on the photon based on eta limit
14  */
15  const auto absEta = std::abs(vars.at("eta"));
16  if (absEta <= etaThr) {
17  return 0;
18  } else {
19  return 1;
20  }
21 }
vars
Definition: DeepTauIdBase.h:60
Abs< T >::type abs(const T &t)
Definition: Abs.h:22