![]() |
![]() |
#include <Stage2Layer2TauAlgorithmFirmware.h>
Public Member Functions | |
void | processEvent (const std::vector< CaloCluster > &clusters, const std::vector< CaloTower > &towers, std::vector< Tau > &taus) override |
Stage2Layer2TauAlgorithmFirmwareImp1 (CaloParamsHelper const *params) | |
~Stage2Layer2TauAlgorithmFirmwareImp1 () override | |
![]() | |
virtual | ~Stage2Layer2TauAlgorithm () |
Private Member Functions | |
unsigned int | calibLutIndex (int ieta, int Et, int hasEM, int isMerged) |
int | calibratedPt (const l1t::CaloCluster &clus, const std::vector< l1t::CaloTower > &towers, int hwPt, bool isMerged) |
void | dosorting (std::vector< l1t::Tau > &taus) |
bool | is3x3Maximum (const l1t::CaloTower &tower, const std::vector< CaloTower > &towers, l1t::CaloStage2Nav &caloNav) |
int | isoCalTauHwFootPrint (const l1t::CaloCluster &, const std::vector< l1t::CaloTower > &) |
unsigned int | isoLutIndex (int Et, int hweta, unsigned int nrTowers) |
void | loadCalibrationLuts () |
std::vector< std::unique_ptr< l1t::CaloCluster > > | makeSecClusters (const std::vector< l1t::CaloTower > &towers, std::vector< int > &sites, const l1t::CaloCluster &mainCluster, l1t::CaloStage2Nav &caloNav) |
void | merging (const std::vector< l1t::CaloCluster > &clusters, const std::vector< l1t::CaloTower > &towers, std::vector< l1t::Tau > &taus) |
unsigned int | trimMainLutIndex (int neighPos, bool isWe) |
Static Private Member Functions | |
static bool | compareTowers (l1t::CaloTower TT1, l1t::CaloTower TT2) |
Private Attributes | |
std::vector< std::vector< float > > | coefficients_ |
float | offsetBarrelEH_ |
float | offsetBarrelH_ |
float | offsetEndcapsEH_ |
float | offsetEndcapsH_ |
CaloParamsHelper const * | params_ |
Definition at line 24 of file Stage2Layer2TauAlgorithmFirmware.h.
l1t::Stage2Layer2TauAlgorithmFirmwareImp1::Stage2Layer2TauAlgorithmFirmwareImp1 | ( | CaloParamsHelper const * | params | ) |
Definition at line 23 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References loadCalibrationLuts().
|
override |
Definition at line 30 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
|
private |
Definition at line 675 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References funct::abs(), l1t::LUT::data(), params_, l1t::CaloParamsHelper::tauCompressLUT(), and globals_cff::x1.
Referenced by calibratedPt().
|
private |
Definition at line 689 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References calibLutIndex(), l1t::CaloTools::caloEta(), corr, l1t::LUT::data(), l1t::CaloTools::getTower(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwQual(), training_settings::idx, params_, jets_cff::rawPt, and l1t::CaloParamsHelper::tauCalibrationLUT().
Referenced by merging().
|
staticprivate |
Definition at line 487 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References funct::abs(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), and l1t::L1Candidate::hwPt().
|
private |
Definition at line 385 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References down, l1t::CaloParamsHelper::isoTauEtaMax(), AccumulatingSort< T >::Merge(), and params_.
Referenced by processEvent().
|
private |
Definition at line 502 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References l1t::CaloTools::getTower(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), RecoTauDiscriminantConfiguration::mask, l1t::CaloStage2Nav::offsetIEta(), and l1t::CaloStage2Nav::offsetIPhi().
Referenced by merging().
|
private |
|
private |
Definition at line 714 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References funct::abs(), l1t::LUT::data(), params_, l1t::CaloParamsHelper::tauCompressLUT(), and globals_cff::x1.
Referenced by merging().
|
private |
Definition at line 443 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References coefficients_, l1t::LUT::data(), objects.autophobj::float, lumiPlot::lut, fftjetcommon_cfi::maxScale, fftjetcommon_cfi::minScale, l1t::LUT::nrBitsAddress(), l1t::LUT::nrBitsData(), offsetBarrelEH_, offsetBarrelH_, offsetEndcapsEH_, offsetEndcapsH_, params_, findQualityFiles::size, and l1t::CaloParamsHelper::tauCalibrationLUT().
Referenced by Stage2Layer2TauAlgorithmFirmwareImp1().
|
private |
Definition at line 535 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References constexpr, l1t::CaloParamsHelper::egNeighbourThreshold(), l1t::CaloTools::getTower(), l1t::L1Candidate::hwEta(), l1t::CaloTower::hwEtEm(), l1t::CaloTower::hwEtHad(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::CaloCluster::INCLUDE_E, l1t::CaloCluster::INCLUDE_N, l1t::CaloCluster::INCLUDE_NE, l1t::CaloCluster::INCLUDE_NN, l1t::CaloCluster::INCLUDE_NW, l1t::CaloCluster::INCLUDE_S, l1t::CaloCluster::INCLUDE_SE, l1t::CaloCluster::INCLUDE_SS, l1t::CaloCluster::INCLUDE_SW, l1t::CaloCluster::INCLUDE_W, eostools::move(), l1t::CaloStage2Nav::offsetIEta(), l1t::CaloStage2Nav::offsetIPhi(), params_, and l1t::CaloParamsHelper::towerLsbSum().
Referenced by merging().
|
private |
Definition at line 44 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References funct::abs(), l1t::CaloTools::calHwEtSum(), calibratedPt(), l1t::CaloTools::calNrTowers(), l1t::CaloTools::CALO, l1t::CaloCluster::checkClusterFlag(), l1t::LUT::data(), l1t::CaloParamsHelper::egSeedThreshold(), PVValHelper::eta, spr::find(), l1t::CaloTools::getTower(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), training_settings::idx, l1t::CaloCluster::INCLUDE_E, l1t::CaloCluster::INCLUDE_N, l1t::CaloCluster::INCLUDE_NE, l1t::CaloCluster::INCLUDE_NN, l1t::CaloCluster::INCLUDE_NW, l1t::CaloCluster::INCLUDE_S, l1t::CaloCluster::INCLUDE_SE, l1t::CaloCluster::INCLUDE_SS, l1t::CaloCluster::INCLUDE_SW, l1t::CaloCluster::INCLUDE_W, is3x3Maximum(), l1t::Tau::isMerged(), isoLutIndex(), l1t::CaloParamsHelper::isoTauEtaMax(), makeSecClusters(), l1t::CaloStage2Nav::offsetIEta(), l1t::CaloStage2Nav::offsetIPhi(), params_, l1t::CaloParamsHelper::pileUpTowerThreshold(), l1t::Tau::rawEt(), SurveyInfoScenario_cff::seed, UEAnalysisJets_cfi::seedThreshold, l1t::CaloCluster::setClusterFlag(), l1t::Tau::setHasEM(), l1t::L1Candidate::setHwIso(), l1t::L1Candidate::setHwPt(), l1t::Tau::setIsMerged(), l1t::Tau::setIsoEt(), l1t::Tau::setNTT(), reco::LeafCandidate::setP4(), l1t::Tau::setRawEt(), l1t::Tau::setTowerIEta(), l1t::Tau::setTowerIPhi(), metsig::tau, l1t::CaloParamsHelper::tauIsoAreaNrTowersEta(), l1t::CaloParamsHelper::tauIsoAreaNrTowersPhi(), l1t::CaloParamsHelper::tauIsolationLUT(), l1t::CaloParamsHelper::tauLsb(), l1t::CaloParamsHelper::tauPUSParam(), l1t::CaloTools::towerEta(), l1t::CaloTools::towerEtaSize(), l1t::CaloParamsHelper::towerLsbSum(), l1t::CaloTools::towerPhi(), l1t::CaloTools::towerPhiSize(), and l1t::CaloCluster::TRIM_LEFT.
Referenced by processEvent().
|
overridevirtual |
Implements l1t::Stage2Layer2TauAlgorithm.
Definition at line 33 of file Stage2Layer2TauAlgorithmFirmwareImp1.cc.
References dosorting(), and merging().
|
private |
|
private |
Definition at line 45 of file Stage2Layer2TauAlgorithmFirmware.h.
Referenced by loadCalibrationLuts().
|
private |
Definition at line 47 of file Stage2Layer2TauAlgorithmFirmware.h.
Referenced by loadCalibrationLuts().
|
private |
Definition at line 48 of file Stage2Layer2TauAlgorithmFirmware.h.
Referenced by loadCalibrationLuts().
|
private |
Definition at line 49 of file Stage2Layer2TauAlgorithmFirmware.h.
Referenced by loadCalibrationLuts().
|
private |
Definition at line 50 of file Stage2Layer2TauAlgorithmFirmware.h.
Referenced by loadCalibrationLuts().
|
private |
Definition at line 44 of file Stage2Layer2TauAlgorithmFirmware.h.
Referenced by calibLutIndex(), calibratedPt(), dosorting(), isoLutIndex(), loadCalibrationLuts(), makeSecClusters(), and merging().