86 std::unique_ptr<l1tp2::CaloPFClusterCollection> pfclusterCands(make_unique<l1tp2::CaloPFClusterCollection>());
90 if (!caloTowerCollection.
isValid())
91 cms::Exception(
"Phase2L1CaloPFClusterEmulator") <<
"Failed to get towers from caloTowerCollection!";
97 int ieta =
i.towerIEta();
98 int iphi =
i.towerIPhi();
99 GCTintTowers[
ieta][
iphi] =
i.ecalTowerEt();
108 for (
int k = 0;
k <
nSLR;
k++) {
121 for (
int k = 1;
k < 17;
k++) {
130 for (
int k = 1;
k < 17;
k++) {
144 for (
int k = 0;
k <
nSLR;
k++) {
154 if (
k > 1 &&
k % 2 == 0)
155 phioffset = phioffset + 4;
163 float towereta = realEta[gcteta][gctphi];
164 float towerphi = realPhi[gcteta][gctphi];
171 pfclusterCands->push_back(l1CaloPFCluster);
177 edm::LogError(
"Phase2L1CaloJetEmulator") <<
"Failed to get HcalTrigPrimDigi for HF!";
212 double et = decoder.hcaletValue(
hit.
id(),
hit.t0());
227 if ((ieta < 2 || ieta >=
nHfEta - 2) &&
iphi % 4 == 2) {
247 regionsHF[0][
ieta][0] = hfTowers[
ieta][70];
248 regionsHF[0][
ieta][1] = hfTowers[
ieta][71];
250 if (
k != 0 ||
iphi > 1)
257 if (
k != 1 ||
iphi > 1)
266 int phioffsetHF = -2;
278 if (
k > 1 &&
k % 2 == 0)
279 phioffsetHF = phioffsetHF +
nHfPhi / 6;
287 float towereta = hfEta[hfeta][hfphi];
288 float towerphi = hfPhi[hfeta][hfphi];
295 pfclusterCands->push_back(l1CaloPFCluster);
void setClusterEta(float clusterEtaIn)
static constexpr int nHfRegions
PFcluster_t pfclusterHF(float temporary[nHfEta][nHfPhi/6], int etaoffset, int phioffset)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
static constexpr int nPFClusterSLR
void setClusterIPhi(int clusterIPhiIn)
T const * product() const
static constexpr int nSLR
edm::ESGetToken< CaloTPGTranscoder, CaloTPGRecord > decoderTag_
static constexpr int nHfPhi
GCTpfcluster_t GCTpfclusters[nPFClusterSLR]
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< HcalTrigPrimDigiCollection > hfToken_
static constexpr int nTowerEtaSLR
static constexpr int nTowerEta
PFcluster_t pfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset)
static constexpr int nTowerPhiSLR
static constexpr int nTowerPhi
static constexpr int nHfEta
void setClusterPhi(float clusterPhiIn)
void setClusterIEta(int clusterIEtaIn)
edm::EDGetTokenT< l1tp2::CaloTowerCollection > caloTowerToken_
void setClusterEt(float clusterEtIn)