15 nEtaBins_(conf.getParameter<
int>(
"nEtaBins")),
16 nPhiBins_(conf.getParameter<
int>(
"nPhiBins")),
17 etaBins_(conf.getParameter<
std::vector<double> >(
"etaBins")),
18 phiBins_(conf.getParameter<
std::vector<double> >(
"phiBins")),
19 useLayerWeights_(conf.getParameter<
bool>(
"useLayerWeights")),
20 layerWeights_(conf.getParameter<
std::vector<double> >(
"layerWeights"))
27 <<
"HGCalTowerMap2DImpl nEtaBins for the tower map not consistent with etaBins size"<<endl;
31 <<
"HGCalTowerMap2DImpl nPhiBins for the tower map not consistent with phiBins size"<<endl;
35 std::vector<l1t::HGCalTowerMap> towerMaps =
newTowerMaps();
36 edm::LogInfo(
"HGCalTowerMap2DImpl") <<
"Eta bins for the tower maps: {";
37 for(
auto eta : towerMaps[0].etaBins())
edm::LogInfo(
"HGCalTowerMap2DImpl") <<
eta <<
",";
39 edm::LogInfo(
"HGCalTowerMap2DImpl") <<
"Phi bins for the tower maps: {";
40 for(
auto phi : towerMaps[0].phiBins())
edm::LogInfo(
"HGCalTowerMap2DImpl") <<
phi <<
",";
72 std::vector<l1t::HGCalTowerMap> towerMapsTmp =
newTowerMaps();
74 for(
const auto& tc : triggerCellsPtrs){
77 int iEta = towerMapsTmp[layer-1].iEta(tc->eta());
78 int iPhi = towerMapsTmp[layer-1].iPhi(tc->phi());
80 double calibPt = tc->pt();
97 towerMapsTmp[layer-1].addTower(iEta,iPhi,tower);
104 for(
auto towerMap : towerMapsTmp){
105 towerMaps.
set( 0, i, towerMap);
std::vector< double > layerWeights_
std::vector< l1t::HGCalTowerMap > newTowerMaps()
HGCalTriggerTools triggerTools_
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
void buildTowerMap2D(const std::vector< edm::Ptr< l1t::HGCalTriggerCell >> &triggerCellsPtrs, l1t::HGCalTowerMapBxCollection &towermaps)
void set(int bx, unsigned i, const T &object)
void resize(int bx, unsigned size)
std::vector< double > etaBins_
HGCalTowerMap2DImpl(const edm::ParameterSet &conf)
std::vector< double > phiBins_
void setP4(const LorentzVector &p4) final
set 4-momentum