Skip to content

Commit

Permalink
Update member name in BE algos
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsauvan committed Jun 9, 2016
1 parent a1a1ff7 commit 3b166c6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions L1Trigger/L1THGCal/plugins/be_algorithms/FullModuleSumAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FullModuleSumAlgo : public Algorithm<HGCalBestChoiceCodec>

FullModuleSumAlgo(const edm::ParameterSet& conf):
Algorithm<HGCalBestChoiceCodec>(conf),
cluster_product( new l1t::HGCalClusterBxCollection ){}
cluster_product_( new l1t::HGCalClusterBxCollection ){}

virtual void setProduces(edm::EDProducer& prod) const override final
{
Expand All @@ -24,16 +24,16 @@ class FullModuleSumAlgo : public Algorithm<HGCalBestChoiceCodec>

virtual void putInEvent(edm::Event& evt) override final
{
evt.put(std::move(cluster_product),name());
evt.put(std::move(cluster_product_),name());
}

virtual void reset() override final
{
cluster_product.reset( new l1t::HGCalClusterBxCollection );
cluster_product_.reset( new l1t::HGCalClusterBxCollection );
}

private:
std::unique_ptr<l1t::HGCalClusterBxCollection> cluster_product;
std::unique_ptr<l1t::HGCalClusterBxCollection> cluster_product_;

};

Expand All @@ -60,7 +60,7 @@ void FullModuleSumAlgo::run(const l1t::HGCFETriggerDigiCollection& coll,
l1t::HGCalCluster cluster( reco::LeafCandidate::LorentzVector(),
moduleSum, moduleId, 0);

cluster_product->push_back(0,cluster);
cluster_product_->push_back(0,cluster);
}
}

Expand Down
10 changes: 5 additions & 5 deletions L1Trigger/L1THGCal/plugins/be_algorithms/RandomClusterAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RandomClusterAlgo : public Algorithm<HGCal64BitRandomCodec> {

RandomClusterAlgo(const edm::ParameterSet& conf):
Algorithm<HGCal64BitRandomCodec>(conf),
cluster_product( new l1t::HGCalClusterBxCollection ){
cluster_product_( new l1t::HGCalClusterBxCollection ){
}

virtual void setProduces(edm::EDProducer& prod) const override final {
Expand All @@ -21,15 +21,15 @@ class RandomClusterAlgo : public Algorithm<HGCal64BitRandomCodec> {
const std::unique_ptr<HGCalTriggerGeometryBase>& geom) override final;

virtual void putInEvent(edm::Event& evt) override final {
evt.put(std::move(cluster_product),name());
evt.put(std::move(cluster_product_),name());
}

virtual void reset() override final {
cluster_product.reset( new l1t::HGCalClusterBxCollection );
cluster_product_.reset( new l1t::HGCalClusterBxCollection );
}

private:
std::unique_ptr<l1t::HGCalClusterBxCollection> cluster_product;
std::unique_ptr<l1t::HGCalClusterBxCollection> cluster_product_;

};

Expand All @@ -47,7 +47,7 @@ void RandomClusterAlgo::run(const l1t::HGCFETriggerDigiCollection& coll,
l1t::HGCalCluster cluster( reco::LeafCandidate::LorentzVector(),
word1, word2, word3^word4 );

cluster_product->push_back(0,cluster);
cluster_product_->push_back(0,cluster);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SingleCellClusterAlgo : public Algorithm<HGCalBestChoiceCodec>

SingleCellClusterAlgo(const edm::ParameterSet& conf):
Algorithm<HGCalBestChoiceCodec>(conf),
cluster_product( new l1t::HGCalClusterBxCollection ){}
cluster_product_( new l1t::HGCalClusterBxCollection ){}

virtual void setProduces(edm::EDProducer& prod) const override final
{
Expand All @@ -24,16 +24,16 @@ class SingleCellClusterAlgo : public Algorithm<HGCalBestChoiceCodec>

virtual void putInEvent(edm::Event& evt) override final
{
evt.put(std::move(cluster_product),name());
evt.put(std::move(cluster_product_),name());
}

virtual void reset() override final
{
cluster_product.reset( new l1t::HGCalClusterBxCollection );
cluster_product_.reset( new l1t::HGCalClusterBxCollection );
}

private:
std::unique_ptr<l1t::HGCalClusterBxCollection> cluster_product;
std::unique_ptr<l1t::HGCalClusterBxCollection> cluster_product_;

};

Expand Down Expand Up @@ -63,7 +63,7 @@ void SingleCellClusterAlgo::run(const l1t::HGCFETriggerDigiCollection& coll,
cluster.setModule(moduleId.wafer());
cluster.setLayer(moduleId.layer());
cluster.setSubDet(moduleId.subdetId());
cluster_product->push_back(0,cluster);
cluster_product_->push_back(0,cluster);
}
i++;
}
Expand Down

0 comments on commit 3b166c6

Please sign in to comment.