#include <CaloTools.h>
Public Types | |
enum | SubDet { ECAL =0x1, HCAL =0x2, CALO =0x3 } |
Static Public Member Functions | |
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 size_t | caloTowerHash (int iEta, int iPhi) |
static size_t | caloTowerHashMax () |
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 bool | isValidIEtaIPhi (int iEta, int iPhi) |
Private Member Functions | |
CaloTools () | |
~CaloTools () | |
Static Private Attributes | |
static const int | kHBHEEnd =28 |
static const int | kHBHENrPhi =72 |
static const int | kHFBegin =29 |
static const int | kHFEnd =32 |
static const int | kHFNrPhi =72/kHFPhiSeg |
static const int | kHFPhiSeg =4 |
static const int | kNrHBHETowers = kHBHEEnd*kHBHENrPhi*2 |
static const int | kNrTowers = ((kHFEnd-kHFBegin+1)*kHFNrPhi + kHBHEEnd*kHBHENrPhi )*2 |
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 22 of file CaloTools.h.
Enumerator | |
---|---|
ECAL | |
HCAL | |
CALO |
Definition at line 42 of file CaloTools.h.
|
inlineprivate |
Definition at line 26 of file CaloTools.h.
|
inlineprivate |
Definition at line 27 of file CaloTools.h.
|
static |
Definition at line 73 of file CaloTools.cc.
Referenced by l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::calEgHwFootPrint(), and l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent().
|
static |
Definition at line 81 of file CaloTools.cc.
References funct::abs(), ECAL, HCAL, l1t::CaloTower::hwEtEm(), l1t::CaloTower::hwEtHad(), l1t::CaloStage2Nav::offsetIEta(), and l1t::CaloStage2Nav::offsetIPhi().
|
static |
Definition at line 102 of file CaloTools.cc.
References l1t::CaloStage2Nav::currIEta(), l1t::CaloStage2Nav::currIPhi(), l1t::CaloStage2Nav::east(), ECAL, getTower(), HCAL, l1t::CaloTower::hwEtEm(), l1t::CaloTower::hwEtHad(), l1t::L1Candidate::hwPt(), l1t::CaloStage2Nav::north(), and l1t::CaloStage2Nav::resetIPhi().
Referenced by l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent().
|
static |
Definition at line 37 of file CaloTools.cc.
References funct::abs().
Referenced by getTower(), and l1t::Stage2Layer1Producer::produce().
|
static |
|
static |
Definition at line 24 of file CaloTools.cc.
Referenced by l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::clustering(), l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::filtering(), l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::refining(), and l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::sharing().
|
static |
Definition at line 11 of file CaloTools.cc.
References caloTowerHash(), and nullTower_.
Referenced by Stage2InputPatternWriter::analyze(), calNrTowers(), l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::clustering(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::create(), l1t::Stage2Layer2JetAlgorithmFirmwareImp1::pusRing(), and l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::refining().
|
static |
Definition at line 63 of file CaloTools.cc.
References funct::abs().
Referenced by l1t::Stage2Layer1Producer::produce().
|
staticprivate |
Definition at line 32 of file CaloTools.h.
|
staticprivate |
Definition at line 37 of file CaloTools.h.
|
staticprivate |
Definition at line 33 of file CaloTools.h.
|
staticprivate |
Definition at line 34 of file CaloTools.h.
|
staticprivate |
Definition at line 36 of file CaloTools.h.
|
staticprivate |
Definition at line 35 of file CaloTools.h.
|
staticprivate |
Definition at line 39 of file CaloTools.h.
|
staticprivate |
Definition at line 38 of file CaloTools.h.
|
staticprivate |
Definition at line 73 of file CaloTools.h.
|
staticprivate |
Definition at line 72 of file CaloTools.h.
Referenced by getTower().