Skip to content

Commit

Permalink
Applying code format patch
Browse files Browse the repository at this point in the history
  • Loading branch information
igv4321 committed May 18, 2022
1 parent 7be6095 commit c4c86e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
13 changes: 5 additions & 8 deletions RecoJets/FFTJetProducers/plugins/FFTJetProducer.cc
Expand Up @@ -174,11 +174,9 @@ FFTJetProducer::FFTJetProducer(const edm::ParameterSet& ps)
std::sort(iniScales->begin(), iniScales->end(), std::greater<double>());

if (storeInSinglePrecision())
input_recotree_token_f_ =
consumes<reco::PattRecoTree<float, reco::PattRecoPeak<float> > >(treeLabel);
input_recotree_token_f_ = consumes<reco::PattRecoTree<float, reco::PattRecoPeak<float> > >(treeLabel);
else
input_recotree_token_d_ =
consumes<reco::PattRecoTree<double, reco::PattRecoPeak<double> > >(treeLabel);
input_recotree_token_d_ = consumes<reco::PattRecoTree<double, reco::PattRecoPeak<double> > >(treeLabel);
input_genjet_token_ = consumes<std::vector<reco::FFTAnyJet<reco::GenJet> > >(genJetsLabel);
input_energyflow_token_ = consumes<reco::DiscretizedEnergyFlow>(treeLabel);
input_pusummary_token_ = consumes<reco::FFTJetPileupSummary>(pileupLabel);
Expand All @@ -196,8 +194,7 @@ FFTJetProducer::~FFTJetProducer() {}
//
template <class Real>
void FFTJetProducer::loadSparseTreeData(
const edm::Event& iEvent,
const edm::EDGetTokenT<reco::PattRecoTree<Real, reco::PattRecoPeak<Real> > >& tok) {
const edm::Event& iEvent, const edm::EDGetTokenT<reco::PattRecoTree<Real, reco::PattRecoPeak<Real> > >& tok) {
typedef reco::PattRecoTree<Real, reco::PattRecoPeak<Real> > StoredTree;

// Get the input
Expand Down Expand Up @@ -657,9 +654,9 @@ void FFTJetProducer::saveResults(edm::Event& ev, const edm::EventSetup& iSetup,
void FFTJetProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) {
// Load the clustering tree made by FFTJetPatRecoProducer
if (storeInSinglePrecision())
loadSparseTreeData<float>(iEvent, input_recotree_token_f_);
loadSparseTreeData<float>(iEvent, input_recotree_token_f_);
else
loadSparseTreeData<double>(iEvent, input_recotree_token_d_);
loadSparseTreeData<double>(iEvent, input_recotree_token_d_);

// Do we need to load the candidate collection?
if (assignConstituents || !(useGriddedAlgorithm && reuseExistingGrid))
Expand Down
3 changes: 2 additions & 1 deletion RecoJets/FFTJetProducers/plugins/FFTJetProducer.h
Expand Up @@ -182,7 +182,8 @@ class FFTJetProducer : public fftjetcms::FFTJetInterface {

// Useful local utilities
template <class Real>
void loadSparseTreeData(const edm::Event&, const edm::EDGetTokenT<reco::PattRecoTree<Real, reco::PattRecoPeak<Real> > >& tok);
void loadSparseTreeData(const edm::Event&,
const edm::EDGetTokenT<reco::PattRecoTree<Real, reco::PattRecoPeak<Real> > >& tok);

void removeFakePreclusters();

Expand Down

0 comments on commit c4c86e3

Please sign in to comment.