CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
ElectronDNNEstimator.cc File Reference
#include "RecoEgamma/ElectronIdentification/interface/ElectronDNNEstimator.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/FileInPath.h"
#include "DataFormats/GsfTrackReco/interface/GsfTrack.h"
#include <iostream>
#include <fstream>
#include <memory>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 12 of file ElectronDNNEstimator.cc.

References funct::abs(), and DiDispStaMuonMonitor_cfi::pt.

12  {
13  /*
14  Selection of the model to be applied on the electron based on pt/eta cuts or whatever selection
15  */
16  const auto pt = vars.at("pt");
17  const auto absEta = std::abs(vars.at("eta"));
18  if (pt < ptThr)
19  return 0;
20  else {
21  if (absEta <= etaThr) {
22  return 1;
23  } else {
24  return 2;
25  }
26  }
27 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
vars
Definition: DeepTauId.cc:164