@@ -88,14 +88,13 @@ void Phase2L1CaloPFClusterEmulator::produce(edm::Event& iEvent, const edm::Event
8888
8989 edm::Handle<std::vector<l1tp2::CaloTower>> caloTowerCollection;
9090 if (!iEvent.getByToken (caloTowerToken_, caloTowerCollection))
91- edm::LogError (" Phase2L1CaloPFClusterEmulator" ) << " Failed to get towers from caloTowerCollection!" ;
91+ cms::Exception (" Phase2L1CaloPFClusterEmulator" ) << " Failed to get towers from caloTowerCollection!" ;
9292
9393 iEvent.getByToken (caloTowerToken_, caloTowerCollection);
9494 float GCTintTowers[nTowerEta][nTowerPhi];
9595 float realEta[nTowerEta][nTowerPhi];
9696 float realPhi[nTowerEta][nTowerPhi];
9797 for (const l1tp2::CaloTower& i : *caloTowerCollection) {
98-
9998 int ieta = i.towerIEta ();
10099 int iphi = i.towerIPhi ();
101100 GCTintTowers[ieta][iphi] = i.ecalTowerEt ();
@@ -179,11 +178,9 @@ void Phase2L1CaloPFClusterEmulator::produce(edm::Event& iEvent, const edm::Event
179178
180179// ------------ method fills 'descriptions' with the allowed parameters for the module ------------
181180void Phase2L1CaloPFClusterEmulator::fillDescriptions (edm::ConfigurationDescriptions& descriptions) {
182- // The following says we do not know what parameters are allowed so do no validation
183- // Please change this to state exactly what you do use, even if it is no parameters
184181 edm::ParameterSetDescription desc;
185- desc.setUnknown ( );
186- descriptions.addDefault (desc);
182+ desc.add <edm::InputTag>( " gctFullTowers " , edm::InputTag ( " l1tPhase2L1CaloEGammaEmulator " , " GCTFullTowers " ) );
183+ descriptions.addWithDefaultLabel (desc);
187184}
188185
189186// define this as a plug-in
0 commit comments