67 produces<l1tp2::CaloPFClusterCollection>(
"GCTPFCluster");
77 std::unique_ptr<l1tp2::CaloPFClusterCollection> pfclusterCands(make_unique<l1tp2::CaloPFClusterCollection>());
81 if (!caloTowerCollection.
isValid())
82 cms::Exception(
"Phase2L1CaloPFClusterEmulator") <<
"Failed to get towers from caloTowerCollection!";
88 int ieta =
i.towerIEta();
89 int iphi =
i.towerIPhi();
90 GCTintTowers[
ieta][
iphi] =
i.ecalTowerEt();
99 for (
int k = 0;
k <
nSLR;
k++) {
112 for (
int k = 1;
k < 17;
k++) {
121 for (
int k = 1;
k < 17;
k++) {
135 for (
int k = 0;
k <
nSLR;
k++) {
145 if (
k > 1 &&
k % 2 == 0)
146 phioffset = phioffset + 4;
154 float towereta = realEta[gcteta][gctphi];
155 float towerphi = realPhi[gcteta][gctphi];
162 pfclusterCands->push_back(l1CaloPFCluster);
void setClusterEta(float clusterEtaIn)
const edm::EDGetTokenT< l1tp2::CaloTowerCollection > caloTowerToken_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static constexpr int nPFClusterSLR
void setClusterIPhi(int clusterIPhiIn)
~Phase2L1CaloPFClusterEmulator() override=default
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static constexpr int nSLR
GCTpfcluster_t GCTpfclusters[nPFClusterSLR]
#define DEFINE_FWK_MODULE(type)
static constexpr int nTowerEtaSLR
static constexpr int nTowerEta
PFcluster_t pfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset)
static constexpr int nTowerPhiSLR
Phase2L1CaloPFClusterEmulator(const edm::ParameterSet &)
static constexpr int nTowerPhi
void produce(edm::Event &, const edm::EventSetup &) override
void setClusterPhi(float clusterPhiIn)
void setClusterIEta(int clusterIEtaIn)
void setClusterEt(float clusterEtIn)