#include <CaloTools.h>
Public Types | |
enum | SubDet { ECAL =0x1, HCAL =0x2, CALO =0x3 } |
Static Public Member Functions | |
static int | bin16Eta (int ieta) |
static int | calHwEtSum (int iEta, int iPhi, const std::vector< l1t::CaloTower > &towers, int localEtaMin, int localEtaMax, int localPhiMin, int localPhiMax, SubDet etMode=CALO) |
static int | calHwEtSum (int iEta, int iPhi, const std::vector< l1t::CaloTower > &towers, int localEtaMin, int localEtaMax, int localPhiMin, int localPhiMax, int iEtaAbsMax, SubDet etMode=CALO) |
static size_t | calNrTowers (int iEtaMin, int iEtaMax, int iPhiMin, int iPhiMax, const std::vector< l1t::CaloTower > &towers, int minHwEt, int maxHwEt, SubDet etMode=CALO) |
static int | caloEta (int ietaMP) |
static size_t | caloTowerHash (int iEta, int iPhi) |
static size_t | caloTowerHashMax () |
static l1t::EGamma | egP4Demux (l1t::EGamma &) |
static l1t::EGamma | egP4MP (l1t::EGamma &) |
static l1t::EtSum | etSumP4Demux (l1t::EtSum &) |
static l1t::EtSum | etSumP4MP (l1t::EtSum &) |
static const l1t::CaloCluster & | getCluster (const std::vector< l1t::CaloCluster > &clusters, int iEta, int iPhi) |
static const l1t::CaloTower & | getTower (const std::vector< l1t::CaloTower > &towers, int iEta, int iPhi) |
static int | gtEta (int ieta) |
static int | gtPhi (int ieta, int iphi) |
static bool | insertTower (std::vector< l1t::CaloTower > &towers, const l1t::CaloTower &tower) |
static bool | isValidIEtaIPhi (int iEta, int iPhi) |
static l1t::Jet | jetP4Demux (l1t::Jet &) |
static l1t::Jet | jetP4MP (l1t::Jet &) |
static int | mpEta (int ieta) |
static math::PtEtaPhiMLorentzVector | p4Demux (l1t::L1Candidate *) |
static math::PtEtaPhiMLorentzVector | p4MP (l1t::L1Candidate *) |
static int | regionEta (int ieta) |
static l1t::Tau | tauP4Demux (l1t::Tau &) |
static l1t::Tau | tauP4MP (l1t::Tau &) |
static float | towerEta (int ieta) |
static float | towerEtaSize (int ieta) |
static float | towerPhi (int ieta, int iphi) |
static float | towerPhiSize (int ieta) |
Static Public Attributes | |
static const int64_t | cos_coeff [72] = {1023, 1019, 1007, 988, 961, 927, 886, 838, 784, 723, 658, 587, 512, 432, 350, 265, 178, 89, 0, -89, -178, -265, -350, -432, -512, -587, -658, -723, -784, -838, -886, -927, -961, -988, -1007, -1019, -1023, -1019, -1007, -988, -961, -927, -886, -838, -784, -723, -658, -587, -512, -432, -350, -265, -178, -89, 0, 89, 178, 265, 350, 432, 511, 587, 658, 723, 784, 838, 886, 927, 961, 988, 1007, 1019} |
static const int | kHBHEEnd =28 |
static const int | kHBHENrPhi =72 |
static const int | kHFBegin =29 |
static const int | kHFEnd =41 |
static const int | kHFNrPhi =72/kHFPhiSeg |
static const int | kHFPhiSeg =1 |
static const int | kNPhi =72 |
static const int | kNrHBHETowers = kHBHEEnd*kHBHENrPhi*2 |
static const int | kNrTowers = ((kHFEnd-kHFBegin+1)*kHFNrPhi + kHBHEEnd*kHBHENrPhi )*2 |
static const int64_t | sin_coeff [72] = {0, 89, 178, 265, 350, 432, 512, 587, 658, 723, 784, 838, 886, 927, 961, 988, 1007, 1019, 1023, 1019, 1007, 988, 961, 927, 886, 838, 784, 723, 658, 587, 512, 432, 350, 265, 178, 89, 0, -89, -178, -265, -350, -432, -512, -587, -658, -723, -784, -838, -886, -927, -961, -988, -1007, -1019, -1023, -1019, -1007, -988, -961, -927, -886, -838, -784, -723, -658, -587, -512, -432, -350, -265, -178, -89} |
Private Member Functions | |
CaloTools () | |
~CaloTools () | |
Static Private Member Functions | |
static std::pair< float, float > | towerEtaBounds (int ieta) |
Static Private Attributes | |
static const float | kGTEtaLSB = 0.0435 |
static const float | kGTEtLSB = 0.5 |
static const float | kGTPhiLSB = 0.0435 |
static const l1t::CaloCluster | nullCluster_ |
static const l1t::CaloTower | nullTower_ |
Description: A collection of useful functions for the Calorimeter that are of generic interest
Implementation: currently implimented as a static class rather than a namespace, open to re-writing it as namespace
Definition at line 29 of file CaloTools.h.
Enumerator | |
---|---|
ECAL | |
HCAL | |
CALO |
Definition at line 50 of file CaloTools.h.
|
inlineprivate |
Definition at line 33 of file CaloTools.h.
|
inlineprivate |
Definition at line 34 of file CaloTools.h.
|
static |
Definition at line 239 of file CaloTools.cc.
References funct::abs().
Referenced by l1t::Stage2Layer2JetAlgorithmFirmwareImp1::calibrate().
|
static |
Definition at line 102 of file CaloTools.cc.
References kHFEnd.
Referenced by l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::isoCalEgHwFootPrint(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::merging(), and l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent().
|
static |
Definition at line 110 of file CaloTools.cc.
References funct::abs(), CALO, caloEta(), ECAL, getTower(), l1t::CaloTower::hwEtEm(), l1t::CaloTower::hwEtHad(), l1t::L1Candidate::hwPt(), l1t::CaloStage2Nav::offsetIEta(), and l1t::CaloStage2Nav::offsetIPhi().
|
static |
Definition at line 132 of file CaloTools.cc.
References CALO, caloEta(), l1t::CaloStage2Nav::currIEta(), l1t::CaloStage2Nav::currIPhi(), l1t::CaloStage2Nav::east(), ECAL, getTower(), l1t::CaloTower::hwEtEm(), l1t::CaloTower::hwEtHad(), l1t::L1Candidate::hwPt(), hcalTTPDigis_cfi::iEtaMax, l1t::CaloStage2Nav::north(), and l1t::CaloStage2Nav::resetIPhi().
Referenced by l1t::Stage2Layer2TauAlgorithmFirmwareImp1::merging(), l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent(), and l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent().
|
static |
Definition at line 203 of file CaloTools.cc.
References kHFBegin, and mpEta().
Referenced by L1TStage2InputPatternWriter::analyze(), calHwEtSum(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::calibratedPt(), calNrTowers(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::chunkyDonutPUEstimate(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::create(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::donutPUEstimate(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::merging(), l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent(), l1t::stage2::CaloTowerUnpacker::unpack(), l1t::stage2::MPUnpacker_0x10010033::unpack(), l1t::stage2::MPUnpacker::unpack(), l1t::stage2::MPUnpacker_0x10010010::unpack(), and l1t::stage2::MPUnpacker_0x1001000b::unpack().
|
static |
Definition at line 66 of file CaloTools.cc.
References funct::abs(), caloTowerHashMax(), isValidIEtaIPhi(), kHBHEEnd, kHBHENrPhi, kHFEnd, kHFNrPhi, kHFPhiSeg, kNrHBHETowers, and kNrTowers.
Referenced by getTower(), insertTower(), l1t::stage2::CaloTowerPacker::pack(), and L1TStage2Layer2Producer::produce().
|
static |
Definition at line 86 of file CaloTools.cc.
References kNrTowers.
Referenced by caloTowerHash(), and L1TStage2Layer2Producer::produce().
|
static |
Definition at line 293 of file CaloTools.cc.
References l1t::EGamma::footprintEt(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwIso(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), l1t::EGamma::isoEt(), l1t::EGamma::nTT(), p4Demux(), l1t::EGamma::rawEt(), l1t::EGamma::setTowerIPhi(), l1t::EGamma::shape(), l1t::EGamma::towerHoE(), l1t::EGamma::towerIEta(), and l1t::EGamma::towerIPhi().
Referenced by L1TStage2Layer2Producer::produce().
|
static |
Definition at line 382 of file CaloTools.cc.
References l1t::EGamma::footprintEt(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwIso(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), l1t::EGamma::isoEt(), l1t::EGamma::nTT(), p4MP(), l1t::EGamma::rawEt(), l1t::EGamma::setTowerIPhi(), l1t::EGamma::shape(), l1t::EGamma::towerIEta(), and l1t::EGamma::towerIPhi().
Referenced by L1TStage2Layer2Producer::produce().
|
static |
Definition at line 359 of file CaloTools.cc.
References l1t::EtSum::getType(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), and p4Demux().
Referenced by L1TStage2Layer2Producer::produce().
|
static |
Definition at line 444 of file CaloTools.cc.
References l1t::EtSum::getType(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), and p4MP().
Referenced by L1TStage2Layer2Producer::produce().
|
static |
Definition at line 53 of file CaloTools.cc.
References nullCluster_.
Referenced by l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::filtering().
|
static |
Definition at line 30 of file CaloTools.cc.
References funct::abs(), caloTowerHash(), kHFEnd, and nullTower_.
Referenced by L1TStage2InputPatternWriter::analyze(), calHwEtSum(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::calibratedPt(), calNrTowers(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::chunkyDonutPUEstimate(), l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::clustering(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::create(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::donutPUEstimate(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::is3x3Maximum(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::makeSecClusters(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::merging(), l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent(), l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent(), and l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::refining().
|
static |
Definition at line 263 of file CaloTools.cc.
References stringResolutionProvider_cfi::eta, kGTEtaLSB, and towerEta().
Referenced by l1t::Stage2Layer2DemuxJetAlgoFirmwareImp1::processEvent().
|
static |
Definition at line 270 of file CaloTools.cc.
References kGTPhiLSB, M_PI, and towerPhi().
Referenced by l1t::Stage2Layer2DemuxJetAlgoFirmwareImp1::processEvent().
|
static |
Definition at line 19 of file CaloTools.cc.
References caloTowerHash(), l1t::L1Candidate::hwEta(), and l1t::L1Candidate::hwPhi().
|
static |
Definition at line 92 of file CaloTools.cc.
References funct::abs(), kHFEnd, and kNPhi.
Referenced by caloTowerHash().
Definition at line 336 of file CaloTools.cc.
References l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), p4Demux(), l1t::Jet::puDonutEt(), l1t::Jet::puEt(), l1t::Jet::rawEt(), l1t::Jet::seedEt(), l1t::Jet::setTowerIPhi(), l1t::Jet::towerIEta(), and l1t::Jet::towerIPhi().
Referenced by L1TStage2Layer2Producer::produce().
Definition at line 423 of file CaloTools.cc.
References l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), p4MP(), l1t::Jet::puDonutEt(), l1t::Jet::puEt(), l1t::Jet::rawEt(), l1t::Jet::seedEt(), l1t::Jet::setTowerIPhi(), l1t::Jet::towerIEta(), and l1t::Jet::towerIPhi().
Referenced by L1TStage2Layer2Producer::produce().
|
static |
Definition at line 193 of file CaloTools.cc.
References kHFBegin.
Referenced by l1t::Stage2Layer2JetAlgorithmFirmwareImp1::calibrate(), caloEta(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::chunkyDonutPUEstimate(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::create(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::donutPUEstimate(), l1t::Stage2Layer2DemuxJetAlgoFirmwareImp1::processEvent(), l1t::Stage2Layer2JetSumAlgorithmFirmwareImp1::processEvent(), and l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent().
|
static |
Definition at line 283 of file CaloTools.cc.
References l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), kGTEtaLSB, kGTEtLSB, and kGTPhiLSB.
Referenced by egP4Demux(), etSumP4Demux(), jetP4Demux(), tauP4Demux(), l1t::stage2::EGammaUnpacker::unpack(), l1t::stage2::EtSumUnpacker::unpack(), l1t::stage2::JetUnpacker::unpack(), and l1t::stage2::TauUnpacker::unpack().
|
static |
Definition at line 373 of file CaloTools.cc.
References l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), towerEta(), and towerPhi().
Referenced by egP4MP(), etSumP4MP(), jetP4MP(), tauP4MP(), l1t::stage2::MPUnpacker_0x10010033::unpack(), l1t::stage2::MPUnpacker::unpack(), l1t::stage2::MPUnpacker_0x10010010::unpack(), and l1t::stage2::MPUnpacker_0x1001000b::unpack().
|
static |
Definition at line 213 of file CaloTools.cc.
References funct::abs(), kHFBegin, and kHFEnd.
Referenced by l1t::Stage2Layer2JetAlgorithmFirmwareImp1::calibrate().
Definition at line 315 of file CaloTools.cc.
References l1t::Tau::hasEM(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwIso(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), l1t::Tau::isMerged(), l1t::Tau::isoEt(), l1t::Tau::nTT(), p4Demux(), l1t::Tau::rawEt(), l1t::Tau::setTowerIPhi(), l1t::Tau::towerIEta(), and l1t::Tau::towerIPhi().
Referenced by L1TStage2Layer2Producer::produce().
Definition at line 403 of file CaloTools.cc.
References l1t::Tau::hasEM(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwIso(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), l1t::Tau::isMerged(), l1t::Tau::isoEt(), l1t::Tau::nTT(), p4MP(), l1t::Tau::rawEt(), l1t::Tau::setTowerIPhi(), l1t::Tau::towerIEta(), and l1t::Tau::towerIPhi().
Referenced by L1TStage2Layer2Producer::produce().
|
static |
Definition at line 164 of file CaloTools.cc.
References stringResolutionProvider_cfi::eta, Validation_hcalonly_cfi::sign, and towerEtaBounds().
Referenced by gtEta(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::merging(), p4MP(), and l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent().
|
staticprivate |
Definition at line 154 of file CaloTools.cc.
References funct::abs(), and kHFEnd.
Referenced by towerEta(), and towerEtaSize().
|
static |
Definition at line 179 of file CaloTools.cc.
References findQualityFiles::size, and towerEtaBounds().
Referenced by l1t::Stage2Layer2TauAlgorithmFirmwareImp1::merging(), and l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent().
|
static |
Definition at line 172 of file CaloTools.cc.
References objects.autophobj::float, M_PI, and towerPhiSize().
Referenced by gtPhi(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::merging(), p4MP(), and l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent().
|
static |
Definition at line 186 of file CaloTools.cc.
Referenced by l1t::Stage2Layer2TauAlgorithmFirmwareImp1::merging(), l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent(), and towerPhi().
|
static |
Definition at line 106 of file CaloTools.h.
Referenced by l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent(), and l1t::Stage2Layer2JetSumAlgorithmFirmwareImp1::processEvent().
|
staticprivate |
Definition at line 116 of file CaloTools.h.
|
staticprivate |
Definition at line 118 of file CaloTools.h.
Referenced by p4Demux().
|
staticprivate |
Definition at line 117 of file CaloTools.h.
|
static |
Definition at line 39 of file CaloTools.h.
Referenced by caloTowerHash().
|
static |
Definition at line 44 of file CaloTools.h.
Referenced by caloTowerHash(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::chunkyDonutPUEstimate(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::create(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::donutPUEstimate(), l1t::Stage2Layer2JetSumAlgorithmFirmwareImp1::processEvent(), and l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent().
|
static |
Definition at line 40 of file CaloTools.h.
Referenced by caloEta(), mpEta(), l1t::CaloStage2Nav::offsetIEta(), l1t::stage2::CaloTowerPacker::pack(), l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent(), and regionEta().
|
static |
Definition at line 41 of file CaloTools.h.
Referenced by calHwEtSum(), caloTowerHash(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::chunkyDonutPUEstimate(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::create(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::donutPUEstimate(), getTower(), isValidIEtaIPhi(), l1t::CaloStage2Nav::offsetIEta(), l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent(), l1t::Stage2Layer2JetSumAlgorithmFirmwareImp1::processEvent(), regionEta(), l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::Stage2Layer2EtSumAlgorithmFirmwareImp1(), l1t::Stage2Layer2JetSumAlgorithmFirmwareImp1::Stage2Layer2JetSumAlgorithmFirmwareImp1(), and towerEtaBounds().
|
static |
Definition at line 43 of file CaloTools.h.
Referenced by caloTowerHash().
|
static |
Definition at line 42 of file CaloTools.h.
Referenced by caloTowerHash().
|
static |
Definition at line 45 of file CaloTools.h.
Referenced by isValidIEtaIPhi(), and towerPhiSize().
|
static |
Definition at line 47 of file CaloTools.h.
Referenced by caloTowerHash().
|
static |
Definition at line 46 of file CaloTools.h.
Referenced by caloTowerHash(), and caloTowerHashMax().
|
staticprivate |
Definition at line 114 of file CaloTools.h.
Referenced by getCluster().
|
staticprivate |
Definition at line 113 of file CaloTools.h.
Referenced by getTower().
|
static |
Definition at line 107 of file CaloTools.h.
Referenced by l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent(), and l1t::Stage2Layer2JetSumAlgorithmFirmwareImp1::processEvent().