Skip to content

Commit

Permalink
code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
hatakeyamak committed Aug 15, 2019
1 parent 6e482a4 commit ccd41d9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
3 changes: 1 addition & 2 deletions RecoParticleFlow/PFProducer/interface/PFAlgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ class PFAlgo {
const edm::ValueMap<reco::GsfElectronRef>& valueMapGedElectrons,
const edm::ValueMap<reco::PhotonRef>& valueMapGedPhotons);

void setPostHFCleaningParameters(bool postHFCleaning,
const edm::ParameterSet& pfHFCleaningParams);
void setPostHFCleaningParameters(bool postHFCleaning, const edm::ParameterSet& pfHFCleaningParams);

void setDisplacedVerticesParameters(bool rejectTracks_Bad,
bool rejectTracks_Step45,
Expand Down
4 changes: 2 additions & 2 deletions RecoParticleFlow/PFProducer/plugins/PFProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ PFProducer::PFProducer(const edm::ParameterSet& iConfig)
// EGamma filters
pfAlgo_.setEGammaParameters(use_EGammaFilters_, useProtectionsForJetMET);

if (use_EGammaFilters_){
if (use_EGammaFilters_) {
const edm::ParameterSet pfEGammaFilterParams = iConfig.getParameter<edm::ParameterSet>("PFEGammaFilterParameters");
pfegamma_ = std::make_unique<PFEGammaFilters>(pfEGammaFilterParams);
}
Expand All @@ -198,7 +198,7 @@ PFProducer::PFProducer(const edm::ParameterSet& iConfig)
const edm::ParameterSet pfHFCleaningParams = iConfig.getParameter<edm::ParameterSet>("PFHFCleaningParameters");

// Set post HF cleaning muon parameters
pfAlgo_.setPostHFCleaningParameters(postHFCleaning_,pfHFCleaningParams);
pfAlgo_.setPostHFCleaningParameters(postHFCleaning_, pfHFCleaningParams);

// Input tags for HF cleaned rechits
std::vector<edm::InputTag> tags = iConfig.getParameter<std::vector<edm::InputTag>>("cleanedHF");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ class GeneralTracksImporter : public BlockElementImporterBase {
cleanBadConvBrems_(
conf.existsAs<bool>("cleanBadConvertedBrems") ? conf.getParameter<bool>("cleanBadConvertedBrems") : false),
debug_(conf.getUntrackedParameter<bool>("debug", false)) {
bool postMuonCleaning = conf.existsAs<bool>("postMuonCleaning") ? conf.getParameter<bool>("postMuonCleaning") : false;
pfmu_ = std::unique_ptr<PFMuonAlgo>(new PFMuonAlgo(conf,postMuonCleaning));
bool postMuonCleaning =
conf.existsAs<bool>("postMuonCleaning") ? conf.getParameter<bool>("postMuonCleaning") : false;
pfmu_ = std::unique_ptr<PFMuonAlgo>(new PFMuonAlgo(conf, postMuonCleaning));
}

void importToBlock(const edm::Event&, ElementList&) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ class GeneralTracksImporterWithVeto : public BlockElementImporterBase {
cleanBadConvBrems_(
conf.existsAs<bool>("cleanBadConvertedBrems") ? conf.getParameter<bool>("cleanBadConvertedBrems") : false),
debug_(conf.getUntrackedParameter<bool>("debug", false)) {
bool postMuonCleaning = conf.existsAs<bool>("postMuonCleaning") ? conf.getParameter<bool>("postMuonCleaning") : false;
pfmu_ = std::unique_ptr<PFMuonAlgo>(new PFMuonAlgo(conf,postMuonCleaning));
bool postMuonCleaning =
conf.existsAs<bool>("postMuonCleaning") ? conf.getParameter<bool>("postMuonCleaning") : false;
pfmu_ = std::unique_ptr<PFMuonAlgo>(new PFMuonAlgo(conf, postMuonCleaning));
}

void importToBlock(const edm::Event&, ElementList&) const override;
Expand Down
13 changes: 7 additions & 6 deletions RecoParticleFlow/PFProducer/src/PFAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ PFAlgo::PFAlgo(double nSigmaECAL,
calibration_(calibration),
thepfEnergyCalibrationHF_(thepfEnergyCalibrationHF),
connector_() {

const edm::ParameterSet pfMuonAlgoParams = pset.getParameter<edm::ParameterSet>("PFMuonAlgoParameters");
bool postMuonCleaning = pset.existsAs<bool>("postMuonCleaning") ? pset.getParameter<bool>("postMuonCleaning") : false;
pfmu_ = std::make_unique<PFMuonAlgo>(pfMuonAlgoParams,postMuonCleaning);
pfmu_ = std::make_unique<PFMuonAlgo>(pfMuonAlgoParams, postMuonCleaning);

// Muon parameters
muonHCAL_ = pset.getParameter<std::vector<double>>("muon_HCAL");
Expand All @@ -39,7 +38,8 @@ PFAlgo::PFAlgo(double nSigmaECAL,
assert(factors45_.size() == 2);

// Bad Hcal Track Parameters
const edm::ParameterSet PFBadHcalMitigationParams = pset.getParameter<edm::ParameterSet>("PFBadHcalMitigationParameters");
const edm::ParameterSet PFBadHcalMitigationParams =
pset.getParameter<edm::ParameterSet>("PFBadHcalMitigationParameters");
goodTrackDeadHcal_ptErrRel_ = PFBadHcalMitigationParams.getParameter<double>("goodTrackDeadHcal_ptErrRel");
goodTrackDeadHcal_chi2n_ = PFBadHcalMitigationParams.getParameter<double>("goodTrackDeadHcal_chi2n");
goodTrackDeadHcal_layers_ = PFBadHcalMitigationParams.getParameter<uint32_t>("goodTrackDeadHcal_layers");
Expand All @@ -50,8 +50,10 @@ PFAlgo::PFAlgo(double nSigmaECAL,
goodPixelTrackDeadHcal_maxPt_ = PFBadHcalMitigationParams.getParameter<double>("goodPixelTrackDeadHcal_maxPt");
goodPixelTrackDeadHcal_ptErrRel_ = PFBadHcalMitigationParams.getParameter<double>("goodPixelTrackDeadHcal_ptErrRel");
goodPixelTrackDeadHcal_chi2n_ = PFBadHcalMitigationParams.getParameter<double>("goodPixelTrackDeadHcal_chi2n");
goodPixelTrackDeadHcal_maxLost3Hit_ = PFBadHcalMitigationParams.getParameter<int32_t>("goodPixelTrackDeadHcal_maxLost3Hit");
goodPixelTrackDeadHcal_maxLost4Hit_ = PFBadHcalMitigationParams.getParameter<int32_t>("goodPixelTrackDeadHcal_maxLost4Hit");
goodPixelTrackDeadHcal_maxLost3Hit_ =
PFBadHcalMitigationParams.getParameter<int32_t>("goodPixelTrackDeadHcal_maxLost3Hit");
goodPixelTrackDeadHcal_maxLost4Hit_ =
PFBadHcalMitigationParams.getParameter<int32_t>("goodPixelTrackDeadHcal_maxLost4Hit");
goodPixelTrackDeadHcal_dxy_ = PFBadHcalMitigationParams.getParameter<double>("goodPixelTrackDeadHcal_dxy");
goodPixelTrackDeadHcal_dz_ = PFBadHcalMitigationParams.getParameter<double>("goodPixelTrackDeadHcal_dz");
}
Expand Down Expand Up @@ -848,7 +850,6 @@ void PFAlgo::elementLoop(const reco::PFBlock& block,
const reco::PFBlockRef& blockref,
ElementIndices& inds,
std::vector<bool>& deadArea) {

// --------------- loop 1 ------------------

// The primary goal is to deal with tracks that are:
Expand Down

0 comments on commit ccd41d9

Please sign in to comment.