CMS 3D CMS Logo

Classes | Namespaces | Functions
L1EGammaEEProducer.cc File Reference
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DataFormats/L1THGCal/interface/HGCalMulticluster.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/L1Trigger/interface/EGamma.h"
#include "L1Trigger/L1CaloTrigger/interface/L1EGammaEECalibrator.h"
#include "DataFormats/Math/interface/deltaPhi.h"

Go to the source code of this file.

Classes

class  L1EGammaEEProducer
 

Namespaces

 l1tp2
 

Functions

bool l1tp2::compare_cluster_pt (const l1t::HGCalMulticluster *cl1, const l1t::HGCalMulticluster *cl2)
 
int etaBin (const l1t::HGCalMulticluster *cl)
 
pair< int, int > get_eta_phi_bin (const l1t::HGCalMulticluster *cl)
 
int get_phi_bin (const l1t::HGCalMulticluster *cl)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< L1EGammaEEProducer > > s_filler__LINE__ ("L1EGammaEEProducer")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< L1EGammaEEProducer > > s_maker__LINE__ ("L1EGammaEEProducer")
 

Function Documentation

◆ etaBin()

int etaBin ( const l1t::HGCalMulticluster cl)

Definition at line 19 of file L1EGammaEEProducer.cc.

19  {
20  static float constexpr eta_min = 1.;
21  static float constexpr eta_max = 4.;
22  static unsigned constexpr n_eta_bins = 150;
23  int eta_bin = floor((std::abs(cl->eta()) - eta_min) / ((eta_max - eta_min) / n_eta_bins));
24  if (cl->eta() < 0)
25  return -1 * eta_bin; // bin 0 doesn't exist
26  return eta_bin;
27 }

References funct::abs(), GetRecoTauVFromDQM_MC_cff::cl, egammaIdentification::eta_max, egammaIdentification::eta_min, and n_eta_bins.

Referenced by L1TPUM::analyze(), ElectronStudy::analyze(), CosmicMuonRecoAnalyzer::bookHistograms(), SegmentTrackAnalyzer::bookHistograms(), MuonRecoAnalyzer::bookHistograms(), MuonKinVsEtaAnalyzer::bookHistograms(), DiMuonHistograms::bookHistograms(), ElectronConversionRejectionValidator::bookHistograms(), MuonRecoOneHLT::bookHistograms(), PhotonValidatorMiniAOD::bookHistograms(), TkConvValidator::bookHistograms(), PhotonValidator::bookHistograms(), StudyCaloGen::bookHistograms(), IsolatedGenParticles::bookHistograms(), HGCalCLUEAlgoT< TILE >::calculateLocalDensity(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::calibrate(), ConversionPostprocessing::ConversionPostprocessing(), CosmicMuonRecoAnalyzer::CosmicMuonRecoAnalyzer(), DiMuonHistograms::DiMuonHistograms(), EfficiencyPlotter::dqmEndJob(), MuonRecoTest::dqmEndRun(), EfficiencyPlotter::EfficiencyPlotter(), get_eta_phi_bin(), HGCalLayerTilesT< T >::getEtaBin(), PtAssignmentEngineAux2016::getEtaFromBin(), HGCalLayerTilesT< T >::getGlobalBinByBinEtaPhi(), EcalIndexingTools::getProgressiveIndex(), FWEveViewManager::highlightAdded(), L1TCaloLayer1FetchLUTs(), FWHistSliceSelector::matchCell(), CovarianceParameterization::meanValue(), MuonKinVsEtaAnalyzer::MuonKinVsEtaAnalyzer(), MuonRecoAnalyzer::MuonRecoAnalyzer(), MuonRecoOneHLT::MuonRecoOneHLT(), MuonRecoTest::MuonRecoTest(), l1tp2::ParametricCalibration::operator()(), MvaMEtUtilities::passesMVA(), PhotonOfflineClient::PhotonOfflineClient(), PhotonPostprocessing::PhotonPostprocessing(), Phase1L1TJetCalibrator::produce(), PhotonOfflineClient::runClient(), PhotonPostprocessing::runPostprocessing(), and SegmentTrackAnalyzer::SegmentTrackAnalyzer().

◆ get_eta_phi_bin()

pair<int, int> get_eta_phi_bin ( const l1t::HGCalMulticluster cl)

Definition at line 36 of file L1EGammaEEProducer.cc.

36 { return std::make_pair(etaBin(cl), get_phi_bin(cl)); }

References GetRecoTauVFromDQM_MC_cff::cl, etaBin(), and get_phi_bin().

Referenced by L1EGammaEEProducer::produce().

◆ get_phi_bin()

int get_phi_bin ( const l1t::HGCalMulticluster cl)

Definition at line 29 of file L1EGammaEEProducer.cc.

29  {
30  static constexpr float phi_min = -M_PI;
31  static constexpr float phi_max = M_PI;
32  static constexpr unsigned n_phi_bins = 63;
33  return floor(std::abs(reco::deltaPhi(cl->phi(), phi_min)) / ((phi_max - phi_min) / n_phi_bins));
34 }

References funct::abs(), GetRecoTauVFromDQM_MC_cff::cl, reco::deltaPhi(), and M_PI.

Referenced by get_eta_phi_bin().

◆ s_filler__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< L1EGammaEEProducer > > s_filler__LINE__ ( "L1EGammaEEProducer"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< L1EGammaEEProducer > > s_maker__LINE__ ( "L1EGammaEEProducer"  )
static
etaBin
int etaBin(const l1t::HGCalMulticluster *cl)
Definition: L1EGammaEEProducer.cc:19
reco::deltaPhi
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
egammaIdentification.eta_min
eta_min
Definition: egammaIdentification.py:19
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition: GetRecoTauVFromDQM_MC_cff.py:38
egammaIdentification.eta_max
eta_max
Definition: egammaIdentification.py:19
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:49
get_phi_bin
int get_phi_bin(const l1t::HGCalMulticluster *cl)
Definition: L1EGammaEEProducer.cc:29
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
n_eta_bins
static constexpr int n_eta_bins
Definition: L1EGammaCrystalsEmulatorProducer.cc:61