From e4a97f8dea4d5cd8998a79bfff174cba20cc3fc9 Mon Sep 17 00:00:00 2001 From: Sunanda Date: Tue, 13 Jul 2021 16:04:52 +0200 Subject: [PATCH] Code check --- .../CherenkovAnalysis/plugins/CherenkovAnalysis.cc | 10 ++++------ SimG4CMS/CherenkovAnalysis/plugins/XtalDedxAnalysis.cc | 9 +++++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/SimG4CMS/CherenkovAnalysis/plugins/CherenkovAnalysis.cc b/SimG4CMS/CherenkovAnalysis/plugins/CherenkovAnalysis.cc index 4bb1fbd355e03..92d4411f345a5 100644 --- a/SimG4CMS/CherenkovAnalysis/plugins/CherenkovAnalysis.cc +++ b/SimG4CMS/CherenkovAnalysis/plugins/CherenkovAnalysis.cc @@ -44,7 +44,7 @@ class CherenkovAnalysis : public edm::one::EDAnalyzer explicit CherenkovAnalysis(const edm::ParameterSet &); ~CherenkovAnalysis() override {} - static void fillDescriptions(edm::ConfigurationDescriptions& descriptions); + static void fillDescriptions(edm::ConfigurationDescriptions &descriptions); private: const double maxEnergy_; @@ -61,9 +61,7 @@ class CherenkovAnalysis : public edm::one::EDAnalyzer //__________________________________________________________________________________________________ CherenkovAnalysis::CherenkovAnalysis(const edm::ParameterSet &iConfig) - : maxEnergy_(iConfig.getParameter("maxEnergy")), - nBinsEnergy_(iConfig.getParameter("nBinsEnergy")) { - + : maxEnergy_(iConfig.getParameter("maxEnergy")), nBinsEnergy_(iConfig.getParameter("nBinsEnergy")) { usesResource(TFileService::kSharedResource); tok_calo_ = consumes(iConfig.getParameter("caloHitSource")); @@ -79,9 +77,9 @@ CherenkovAnalysis::CherenkovAnalysis(const edm::ParameterSet &iConfig) hTimeStructure_ = tfile->make("hTimeStructure", "Time structure [ns]", 100, 0, 0.3); } -void CherenkovAnalysis::fillDescriptions(edm::ConfigurationDescriptions& descriptions) { +void CherenkovAnalysis::fillDescriptions(edm::ConfigurationDescriptions &descriptions) { edm::ParameterSetDescription desc; - desc.add("caloHitSource", edm::InputTag("g4SimHits","EcalHitsEB")); + desc.add("caloHitSource", edm::InputTag("g4SimHits", "EcalHitsEB")); desc.add("maxEnergy", 2.0); desc.add("nBinsEnergy", 50); descriptions.add("cherenkovAnalysis", desc); diff --git a/SimG4CMS/CherenkovAnalysis/plugins/XtalDedxAnalysis.cc b/SimG4CMS/CherenkovAnalysis/plugins/XtalDedxAnalysis.cc index 638d557fb23df..28aa41d4a9bb0 100644 --- a/SimG4CMS/CherenkovAnalysis/plugins/XtalDedxAnalysis.cc +++ b/SimG4CMS/CherenkovAnalysis/plugins/XtalDedxAnalysis.cc @@ -38,7 +38,7 @@ class XtalDedxAnalysis : public edm::one::EDAnalyzer explicit XtalDedxAnalysis(const edm::ParameterSet &); ~XtalDedxAnalysis() override {} - static void fillDescriptions(edm::ConfigurationDescriptions& descriptions); + static void fillDescriptions(edm::ConfigurationDescriptions &descriptions); protected: void beginJob() override {} @@ -66,7 +66,8 @@ XtalDedxAnalysis::XtalDedxAnalysis(const edm::ParameterSet &ps) { caloHitSource_ = ps.getParameter("caloHitSource"); simTkLabel_ = ps.getParameter("moduleLabelTk"); double energyMax = ps.getParameter("energyMax"); - edm::LogVerbatim("CherenkovAnalysis") << "XtalDedxAnalysis::Source " << caloHitSource_ << " Track Label " << simTkLabel_ << " Energy Max " << energyMax; + edm::LogVerbatim("CherenkovAnalysis") << "XtalDedxAnalysis::Source " << caloHitSource_ << " Track Label " + << simTkLabel_ << " Energy Max " << energyMax; // register for data access tok_calo_ = consumes(caloHitSource_); tok_tk_ = consumes(edm::InputTag(simTkLabel_)); @@ -115,9 +116,9 @@ XtalDedxAnalysis::XtalDedxAnalysis(const edm::ParameterSet &ps) { mType_->GetYaxis()->SetTitle("Tracks"); } -void XtalDedxAnalysis::fillDescriptions(edm::ConfigurationDescriptions& descriptions) { +void XtalDedxAnalysis::fillDescriptions(edm::ConfigurationDescriptions &descriptions) { edm::ParameterSetDescription desc; - desc.add("caloHitSource", edm::InputTag("g4SimHits","EcalHitsEB")); + desc.add("caloHitSource", edm::InputTag("g4SimHits", "EcalHitsEB")); desc.add("moduleLabelTk", "g4SimHits"); desc.add("energyMax", 2.0); descriptions.add("xtalDedxAnalysis", desc);