#include <ap_int.h>
#include <array>
#include <cstdio>
#include <fstream>
#include <iomanip>
#include <iostream>
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "L1Trigger/L1CaloTrigger/interface/ParametricCalibration.h"
#include "DataFormats/L1TCalorimeterPhase2/interface/CaloCrystalCluster.h"
#include "DataFormats/L1TCalorimeterPhase2/interface/CaloTower.h"
#include "DataFormats/L1TCalorimeterPhase2/interface/DigitizedClusterCorrelator.h"
#include "DataFormats/L1TCalorimeterPhase2/interface/DigitizedTowerCorrelator.h"
#include "DataFormats/L1TCalorimeterPhase2/interface/DigitizedClusterGT.h"
#include "DataFormats/L1Trigger/interface/BXVector.h"
#include "DataFormats/L1Trigger/interface/EGamma.h"
Go to the source code of this file.
Classes | |
class | p2eg::card |
class | p2eg::Cluster |
class | p2eg::clusterInfo |
class | p2eg::crystal |
class | p2eg::crystalMax |
class | p2eg::ecalRegion_t |
class | p2eg::ecaltp_t |
class | p2eg::etaStrip_t |
class | p2eg::etaStripPeak_t |
class | p2eg::GCTcard_t |
class | p2eg::GCTcluster_t |
class | p2eg::GCTCorrfiber_t |
class | p2eg::GCTinternal_t |
class | p2eg::GCTintTowers_t |
class | p2eg::GCTtoCorr_t |
class | p2eg::GCTtower_t |
class | p2eg::linkECAL |
class | p2eg::RCTcard_t |
class | p2eg::RCTcluster_t |
class | p2eg::RCTtoGCTfiber_t |
class | p2eg::RCTtower_t |
class | p2eg::region3x4 |
class | p2eg::SimpleCaloHit |
class | p2eg::tower_t |
class | p2eg::towerHCAL |
class | p2eg::towers3x4 |
Namespaces | |
p2eg | |
Functions | |
void | p2eg::algo_top (const GCTcard_t &GCTcard, GCTtoCorr_t &GCTtoCorr, unsigned int nGCTCard, std::unique_ptr< l1tp2::CaloCrystalClusterCollection > const &gctClusters, std::unique_ptr< l1tp2::CaloTowerCollection > const &gctTowers, std::unique_ptr< l1tp2::CaloTowerCollection > const &gctFullTowers, std::unique_ptr< l1t::EGammaBxCollection > const &gctEGammas, std::unique_ptr< l1tp2::DigitizedClusterCorrelatorCollection > const &gctDigitizedClustersCorrelator, std::unique_ptr< l1tp2::DigitizedTowerCorrelatorCollection > const &gctDigitizedTowersCorrelator, std::unique_ptr< l1tp2::DigitizedClusterGTCollection > const &gctDigitizedClustersGT, l1tp2::ParametricCalibration calib_) |
ecaltp_t | p2eg::bestOf2 (const ecaltp_t ecaltp0, const ecaltp_t ecaltp1) |
bool | p2eg::compareClusterET (const Cluster &lhs, const Cluster &rhs) |
ap_uint< 12 > | p2eg::convertHcalETtoEcalET (ap_uint< 12 > HCAL) |
void | p2eg::doProximityAndBremsStitching (const RCTcard_t(&inputCards)[N_RCTCARDS_PHI], RCTcard_t(&outputCards)[N_RCTCARDS_PHI], int iStartingCard, bool isPositiveEta) |
int | p2eg::getAbsID_iEta_fromFirmwareCardTowerLink (int nCard, int nTower, int nLink) |
int | p2eg::getAbsID_iPhi_fromFirmwareCardTowerLink (int nCard, int nTower, int nLink) |
clusterInfo | p2eg::getBremsValuesNeg (crystal tempX[CRYSTAL_IN_ETA][CRYSTAL_IN_PHI], ap_uint< 5 > seed_eta, ap_uint< 5 > seed_phi) |
clusterInfo | p2eg::getBremsValuesPos (crystal tempX[CRYSTAL_IN_ETA][CRYSTAL_IN_PHI], ap_uint< 5 > seed_eta, ap_uint< 5 > seed_phi) |
int | p2eg::getCard_iEtaMax (int cc) |
int | p2eg::getCard_iEtaMin (int cc) |
int | p2eg::getCard_iPhiMax (int cc) |
int | p2eg::getCard_iPhiMin (int cc) |
int | p2eg::getCard_refCrystal_iEta (int cc) |
int | p2eg::getCard_refCrystal_iPhi (int cc) |
Cluster | p2eg::getClusterFromRegion3x4 (crystal temp[CRYSTAL_IN_ETA][CRYSTAL_IN_PHI]) |
clusterInfo | p2eg::getClusterPosition (const ecalRegion_t ecalRegion) |
GCTcard_t | p2eg::getClustersCombined (const GCTcard_t &GCTcard, unsigned int nGCTCard) |
GCTinternal_t | p2eg::getClustersTowers (const GCTcard_t &GCTcard, unsigned int nGCTCard) |
clusterInfo | p2eg::getClusterValues (crystal tempX[CRYSTAL_IN_ETA][CRYSTAL_IN_PHI], ap_uint< 5 > seed_eta, ap_uint< 5 > seed_phi) |
void | p2eg::getECALTowersEt (crystal tempX[CRYSTAL_IN_ETA][CRYSTAL_IN_PHI], ap_uint< 12 > towerEt[12]) |
GCTintTowers_t | p2eg::getFullTowers (const GCTinternal_t &GCTinternal) |
crystalMax | p2eg::getPeakBin15N (const etaStripPeak_t etaStrip) |
ecaltp_t | p2eg::getPeakBin20N (const etaStrip_t etaStrip) |
int | p2eg::getRegionNumber (const int local_iEta) |
int | p2eg::getTower_absEtaID (float eta) |
int | p2eg::getTower_absPhiID (float phi) |
float | p2eg::getTowerEta_fromAbsID (int id) |
float | p2eg::getTowerPhi_fromAbsID (int id) |
ecalRegion_t | p2eg::initStructure (crystal temporary[CRYSTAL_IN_ETA][CRYSTAL_IN_PHI]) |
bool | p2eg::isValidCard (int cc) |
Cluster | p2eg::packCluster (ap_uint< 15 > &clusterEt, ap_uint< 5 > &etaMax_t, ap_uint< 5 > &phiMax_t) |
bool | p2eg::passes_iso (float pt, float iso) |
bool | p2eg::passes_looseTkiso (float pt, float iso) |
bool | p2eg::passes_looseTkss (float pt, float ss) |
bool | p2eg::passes_ss (float pt, float ss) |
void | p2eg::printl1tp2TowerInfo (l1tp2::CaloTower thisTower, std::string description="") |
void | p2eg::removeClusterFromCrystal (crystal temp[CRYSTAL_IN_ETA][CRYSTAL_IN_PHI], ap_uint< 5 > seed_eta, ap_uint< 5 > seed_phi, ap_uint< 2 > brems) |
void | p2eg::stitchClusterOverRegionBoundary (std::vector< Cluster > &cluster_list, int towerEtaUpper, int towerEtaLower, int cc) |
void | p2eg::writeToCorrelatorAndGTOutputs (const GCTinternal_t &GCTinternal, GCTtoCorr_t &GCTtoCorrOutput, std::unique_ptr< l1tp2::CaloCrystalClusterCollection > const &gctClustersOutput, std::unique_ptr< l1tp2::CaloTowerCollection > const &gctTowersOutput, std::unique_ptr< l1t::EGammaBxCollection > const &gctEGammas, std::unique_ptr< l1tp2::DigitizedClusterCorrelatorCollection > const &gctDigitizedClustersCorrelator, std::unique_ptr< l1tp2::DigitizedTowerCorrelatorCollection > const &gctDigitizedTowersCorrelator, std::unique_ptr< l1tp2::DigitizedClusterGTCollection > const &gctDigitizedClustersGT, int nGCTCard, int fiberStart, int fiberEnd, int corrFiberIndexOffset, int corrTowPhiOffset) |
Variables | |
static constexpr float | p2eg::a0 = 0.21 |
static constexpr float | p2eg::a0_80 = 0.85 |
static constexpr float | p2eg::a1_80 = 0.0080 |
static constexpr float | p2eg::b0 = 0.38 |
static constexpr float | p2eg::b1 = 1.9 |
static constexpr float | p2eg::b2 = 0.05 |
static constexpr float | p2eg::c0_ss = 0.94 |
static constexpr float | p2eg::c1_ss = 0.052 |
static constexpr float | p2eg::c2_ss = 0.044 |
static constexpr int | p2eg::CRYSTAL_IN_ETA = 15 |
static constexpr int | p2eg::CRYSTAL_IN_PHI = 20 |
static constexpr int | p2eg::CRYSTALS_IN_TOWER_ETA = 5 |
static constexpr int | p2eg::CRYSTALS_IN_TOWER_PHI = 5 |
static constexpr float | p2eg::cut_500_MeV = 0.5 |
static constexpr float | p2eg::d0 = 0.96 |
static constexpr float | p2eg::d1 = 0.0003 |
static constexpr float | p2eg::e0_looseTkss = 0.944 |
static constexpr float | p2eg::e1_looseTkss = 0.65 |
static constexpr float | p2eg::e2_looseTkss = 0.4 |
static constexpr float | p2eg::ECAL_eta_range = 1.4841 |
static constexpr float | p2eg::ECAL_LSB = 0.5 |
static constexpr int | p2eg::GCTCARD_0_TOWER_IPHI_OFFSET = 20 |
static constexpr int | p2eg::GCTCARD_1_TOWER_IPHI_OFFSET = 44 |
static constexpr int | p2eg::GCTCARD_2_TOWER_IPHI_OFFSET = 68 |
static const unsigned int | p2eg::GCTcardtoRCTcardnumber [N_GCTCARDS][N_RCTCARDS_PHI *2] |
static constexpr float | p2eg::half_crystal_size = 0.00873 |
static constexpr float | p2eg::HCAL_LSB = 0.5 |
static constexpr int | p2eg::n_clusters_4link = 8 |
static constexpr int | p2eg::n_clusters_link = 2 |
static constexpr int | p2eg::N_CLUSTERS_PER_REGION = 4 |
static constexpr int | p2eg::n_crystals_cardEta = (n_towers_Eta * n_towers_cardEta) |
static constexpr int | p2eg::n_crystals_cardPhi = (n_towers_Phi * n_towers_cardPhi) |
static constexpr int | p2eg::N_GCTCARDS = 3 |
static constexpr int | p2eg::N_GCTCLUSTERS_FIBER = 2 |
static constexpr int | p2eg::N_GCTCORR_FIBERS = 48 |
static constexpr int | p2eg::N_GCTETA = 34 |
static constexpr int | p2eg::N_GCTINTERNAL_FIBERS = 64 |
static constexpr int | p2eg::N_GCTPHI = 32 |
static constexpr int | p2eg::N_GCTPOSITIVE_FIBERS = 32 |
static constexpr int | p2eg::N_GCTTOWERS_CLUSTER_ISO_ONESIDE = 5 |
static constexpr int | p2eg::N_GCTTOWERS_FIBER = 17 |
static constexpr int | p2eg::n_links_card = 4 |
static constexpr int | p2eg::N_RCTCARDS_PHI = 8 |
static constexpr int | p2eg::N_RCTCLUSTERS_FIBER = 2 |
static constexpr int | p2eg::N_RCTGCT_FIBERS = 4 |
static constexpr int | p2eg::N_RCTTOWERS_FIBER = 17 |
static constexpr int | p2eg::N_REGIONS_PER_CARD = 6 |
static constexpr int | p2eg::n_towers_cardEta = 17 |
static constexpr int | p2eg::n_towers_cardPhi = 4 |
static constexpr int | p2eg::n_towers_Eta = 34 |
static constexpr int | p2eg::n_towers_halfPhi = 36 |
static constexpr int | p2eg::n_towers_per_link = 17 |
static constexpr int | p2eg::n_towers_Phi = 72 |
static constexpr float | p2eg::slideIsoPtThreshold = 80 |
static constexpr int | p2eg::TOWER_IN_ETA = 3 |
static constexpr int | p2eg::TOWER_IN_PHI = 4 |