Skip to content

Commit 8134e0d

Browse files
committed
code formatting, description and class version changes
1 parent de8d17d commit 8134e0d

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

DataFormats/L1TCalorimeterPhase2/src/classes_def.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
<class name="l1tp2::DigitizedClusterGTCollection" />
4444
<class name="edm::Wrapper<l1tp2::DigitizedClusterGTCollection>" />
4545

46-
<class name="l1tp2::CaloPFCluster" ClassVersion="4">
47-
<version ClassVersion="4" checksum="4176166177"/>
46+
<class name="l1tp2::CaloPFCluster" ClassVersion="3">
47+
<version ClassVersion="3" checksum="4176166177"/>
4848
</class>
4949
<class name="std::vector<l1tp2::CaloPFCluster>" />
5050
<class name="l1tp2::CaloPFClusterCollection" />

L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloPFClusterEmulator.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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 ------------
181180
void 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

Comments
 (0)