Skip to content

Commit

Permalink
Ran code checks and code format
Browse files Browse the repository at this point in the history
  • Loading branch information
atishelmanch committed Dec 1, 2021
1 parent 549d148 commit b7bb3b7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 19 deletions.
8 changes: 2 additions & 6 deletions CalibCalorimetry/EcalLaserSorting/src/LaserSorter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1154,10 +1154,6 @@ void LaserSorter::restoreStreamsOfLumiBlock(int lumiBlock) {
}
}

void LaserSorter::beginRun(edm::Run const& run, edm::EventSetup const& es) {
void LaserSorter::beginRun(edm::Run const& run, edm::EventSetup const& es) {}

}

void LaserSorter::endRun(edm::Run const& run, edm::EventSetup const& es) {

}
void LaserSorter::endRun(edm::Run const& run, edm::EventSetup const& es) {}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ EcalTPGParamReaderFromDB::~EcalTPGParamReaderFromDB() {}

void EcalTPGParamReaderFromDB::analyze(const edm::Event& ev, const edm::EventSetup& es) {
EcalTPGDBApp app(sid, user, pass);

}

void EcalTPGParamReaderFromDB::beginJob() {}
Expand Down
2 changes: 1 addition & 1 deletion Calibration/EcalCalibAlgos/interface/miscalibExample.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class miscalibExample : public edm::one::EDAnalyzer<> {
const std::string correctedHybridSuperClusterCollection_;
int read_events;

edm::EDGetTokenT<reco::SuperClusterCollection> correctedHybridSuperClusterToken_;
edm::EDGetTokenT<reco::SuperClusterCollection> correctedHybridSuperClusterToken_;

TH1F* scEnergy;
};
Expand Down
2 changes: 1 addition & 1 deletion Calibration/EcalCalibAlgos/src/ECALpedestalPCLworker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "FWCore/Framework/interface/EventSetup.h"
#include <sstream>

ECALpedestalPCLworker::ECALpedestalPCLworker(const edm::ParameterSet& iConfig)
ECALpedestalPCLworker::ECALpedestalPCLworker(const edm::ParameterSet& iConfig)
: pedestalToken_(esConsumes<edm::Transition::BeginRun>()) {
edm::InputTag digiTagEB = iConfig.getParameter<edm::InputTag>("BarrelDigis");
edm::InputTag digiTagEE = iConfig.getParameter<edm::InputTag>("EndcapDigis");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void ElectronRecalibSuperClusterAssociator::produce(edm::Event& e, const edm::Ev
pOutEleCore->push_back(*eleIt->core()); // clone the old core and add to the collection of new cores
reco::GsfElectronCoreRef newEleCoreRef(rEleCore,
idxEleCore++); // reference to the new electron core in the new collection
reco::GsfElectronCore& newEleCore = pOutEleCore->back(); // pick the clone
reco::GsfElectronCore& newEleCore = pOutEleCore->back(); // pick the clone
reco::SuperClusterRef scRef(reco::SuperClusterRef(superClusterEBHandle, iscRef)); // Reference to the new SC
#ifndef CMSSW_5_3_X
newEleCore.setParentSuperCluster(scRef); // mustache
Expand Down Expand Up @@ -200,7 +200,6 @@ void ElectronRecalibSuperClusterAssociator::produce(edm::Event& e, const edm::Ev

e.put(std::move(pOutEle));
e.put(std::move(pOutEleCore));

}

DEFINE_FWK_MODULE(ElectronRecalibSuperClusterAssociator);
17 changes: 9 additions & 8 deletions Calibration/EcalCalibAlgos/src/miscalibExample.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@
#include <stdexcept>
#include <vector>

miscalibExample::miscalibExample(const edm::ParameterSet& iConfig) :
rootfile_{iConfig.getUntrackedParameter<std::string>("rootfile", "ecalSimpleTBanalysis.root")},
correctedHybridSuperClusterProducer_{iConfig.getParameter<std::string>("correctedHybridSuperClusterProducer")},
correctedHybridSuperClusterCollection_{iConfig.getParameter<std::string>("correctedHybridSuperClusterCollection")},
correctedHybridSuperClusterToken_{consumes<reco::SuperClusterCollection>(edm::InputTag(correctedHybridSuperClusterProducer_, correctedHybridSuperClusterCollection_))}
{}
miscalibExample::miscalibExample(const edm::ParameterSet& iConfig)
: rootfile_{iConfig.getUntrackedParameter<std::string>("rootfile", "ecalSimpleTBanalysis.root")},
correctedHybridSuperClusterProducer_{iConfig.getParameter<std::string>("correctedHybridSuperClusterProducer")},
correctedHybridSuperClusterCollection_{
iConfig.getParameter<std::string>("correctedHybridSuperClusterCollection")},
correctedHybridSuperClusterToken_{consumes<reco::SuperClusterCollection>(
edm::InputTag(correctedHybridSuperClusterProducer_, correctedHybridSuperClusterCollection_))} {}

miscalibExample::~miscalibExample() {}

Expand All @@ -60,7 +61,7 @@ void miscalibExample::endJob() {

scEnergy->Write();
f.Close();
delete scEnergy;
delete scEnergy;
}

//=================================================================================
Expand All @@ -75,7 +76,7 @@ void miscalibExample::analyze(const edm::Event& iEvent, const edm::EventSetup& i

Handle<reco::SuperClusterCollection> pCorrectedHybridSuperClusters;

iEvent.getByToken(correctedHybridSuperClusterToken_, pCorrectedHybridSuperClusters);
iEvent.getByToken(correctedHybridSuperClusterToken_, pCorrectedHybridSuperClusters);

if (!pCorrectedHybridSuperClusters.isValid()) {
LogError("EgammaSimpleAnalyzer") << "Error! can't get collection with label "
Expand Down

0 comments on commit b7bb3b7

Please sign in to comment.