Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:39:19

0001 
0002 #include "DataFormats/L1TCalorimeter/interface/CaloTower.h"
0003 
0004 l1t::CaloTower::CaloTower(const LorentzVector& p4,
0005                           double etEm,
0006                           double etHad,
0007                           int pt,
0008                           int eta,
0009                           int phi,
0010                           int qual,
0011                           int hwEtEm,
0012                           int hwEtHad,
0013                           int hwEtRatio)
0014     : L1Candidate(p4, pt, eta, phi, qual),
0015       etEm_(etEm),
0016       etHad_(etHad),
0017       hwEtEm_(hwEtEm),
0018       hwEtHad_(hwEtHad),
0019       hwEtRatio_(hwEtRatio) {}
0020 
0021 l1t::CaloTower::~CaloTower() {}
0022 
0023 void l1t::CaloTower::setEtEm(double et) { etEm_ = et; }
0024 
0025 void l1t::CaloTower::setEtHad(double et) { etHad_ = et; }
0026 
0027 void l1t::CaloTower::setHwEtEm(int et) { hwEtEm_ = et; }
0028 
0029 void l1t::CaloTower::setHwEtHad(int et) { hwEtHad_ = et; }
0030 
0031 void l1t::CaloTower::setHwEtRatio(int ratio) { hwEtRatio_ = ratio; }
0032 
0033 double l1t::CaloTower::etEm() const { return etEm_; }
0034 
0035 double l1t::CaloTower::etHad() const { return etHad_; }
0036 
0037 int l1t::CaloTower::hwEtEm() const { return hwEtEm_; }
0038 
0039 int l1t::CaloTower::hwEtHad() const { return hwEtHad_; }
0040 
0041 int l1t::CaloTower::hwEtRatio() const { return hwEtRatio_; }