CMS 3D CMS Logo

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, float endcapBoundary, float extEtaBoundary)
 

Function Documentation

◆ electronModelSelector()

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

Definition at line 12 of file ElectronDNNEstimator.cc.

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

13  {
14  /*
15  Selection of the model to be applied on the electron based on pt/eta cuts or whatever selection
16  */
17  const auto pt = vars.at("pt");
18  const auto absEta = std::abs(vars.at("superCluster.eta"));
19  if (absEta <= endcapBoundary) {
20  if (pt < ptThr)
21  return 0;
22  else {
23  if (absEta <= etaThr) {
24  return 1;
25  } else {
26  return 2;
27  }
28  }
29  } else {
30  if (absEta < extEtaBoundary)
31  return 3;
32  else {
33  return 4;
34  }
35  }
36 }
vars
Definition: DeepTauIdBase.h:60
Abs< T >::type abs(const T &t)
Definition: Abs.h:22