Skip to content

Commit f4adae3

Browse files
committed
Apply code-format patches
1 parent cd38378 commit f4adae3

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

PhysicsTools/NanoAOD/plugins/PFCandidatesVarProducer.cc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,24 @@ class PFCandidatesVarProducer : public edm::stream::EDProducer<> {
2323

2424
private:
2525
void produce(edm::Event&, const edm::EventSetup&) override;
26-
void PutValueMapInEvent(edm::Event&, const edm::Handle<edm::View<reco::Candidate>>&, const std::vector<float>&, std::string);
26+
void PutValueMapInEvent(edm::Event&,
27+
const edm::Handle<edm::View<reco::Candidate>>&,
28+
const std::vector<float>&,
29+
std::string);
2730
edm::EDGetTokenT<edm::View<reco::Candidate>> pfcands_token_;
2831
edm::EDGetTokenT<edm::ValueMap<float>> puppi_value_map_token_;
2932
};
3033

3134
PFCandidatesVarProducer::PFCandidatesVarProducer(const edm::ParameterSet& iConfig)
3235
: pfcands_token_(consumes<edm::View<reco::Candidate>>(iConfig.getParameter<edm::InputTag>("src"))),
33-
puppi_value_map_token_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("puppi_value_map"))){
36+
puppi_value_map_token_(consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("puppi_value_map"))) {
3437
produces<edm::ValueMap<float>>("ptWeighted");
3538
produces<edm::ValueMap<float>>("massWeighted");
3639
}
3740

3841
PFCandidatesVarProducer::~PFCandidatesVarProducer() {}
3942

4043
void PFCandidatesVarProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) {
41-
4244
// Get PF candidates
4345
edm::Handle<edm::View<reco::Candidate>> pfcands_handle;
4446
iEvent.getByToken(pfcands_token_, pfcands_handle);
@@ -61,21 +63,20 @@ void PFCandidatesVarProducer::produce(edm::Event& iEvent, const edm::EventSetup&
6163
massWeighted[pfcand_idx] = puppiWeightVal * cand.mass();
6264
}
6365

64-
PutValueMapInEvent(iEvent, pfcands_handle, ptWeighted, "ptWeighted");
66+
PutValueMapInEvent(iEvent, pfcands_handle, ptWeighted, "ptWeighted");
6567
PutValueMapInEvent(iEvent, pfcands_handle, massWeighted, "massWeighted");
6668
}
6769
void PFCandidatesVarProducer::PutValueMapInEvent(edm::Event& iEvent,
68-
const edm::Handle<edm::View<reco::Candidate>>& coll,
69-
const std::vector<float>& vec_var,
70-
std::string VMName) {
70+
const edm::Handle<edm::View<reco::Candidate>>& coll,
71+
const std::vector<float>& vec_var,
72+
std::string VMName) {
7173
std::unique_ptr<edm::ValueMap<float>> VM(new edm::ValueMap<float>());
7274
edm::ValueMap<float>::Filler fillerVM(*VM);
7375
fillerVM.insert(coll, vec_var.begin(), vec_var.end());
7476
fillerVM.fill();
7577
iEvent.put(std::move(VM), VMName);
7678
}
7779

78-
7980
void PFCandidatesVarProducer::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
8081
edm::ParameterSetDescription desc;
8182
desc.add<edm::InputTag>("src", edm::InputTag("packedPFCandidates"));

0 commit comments

Comments
 (0)