Skip to content

Commit ea8d625

Browse files
committed
Rebase onto CMSSW 16.
1 parent b1e0b22 commit ea8d625

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

SimCalorimetry/HGCalAssociatorProducers/plugins/LCToCPAssociatorEDProducer.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class LCToCPAssociatorEDProducerT : public edm::global::EDProducer<> {
3737
explicit LCToCPAssociatorEDProducerT(const edm::ParameterSet &);
3838
~LCToCPAssociatorEDProducerT() override = default;
3939

40-
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
40+
// static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
4141

4242
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
4343

@@ -60,7 +60,8 @@ LCToCPAssociatorEDProducerT<CLUSTER>::LCToCPAssociatorEDProducerT(const edm::Par
6060

6161
CPCollectionToken_ = consumes<CaloParticleCollection>(pset.getParameter<edm::InputTag>("label_cp"));
6262
LCCollectionToken_ = consumes<CLUSTER>(label_lc);
63-
associatorToken_ = consumes<ticl::LayerClusterToCaloParticleAssociatorT<CLUSTER>>(pset.getParameter<edm::InputTag>("associator"));
63+
associatorToken_ =
64+
consumes<ticl::LayerClusterToCaloParticleAssociatorT<CLUSTER>>(pset.getParameter<edm::InputTag>("associator"));
6465
}
6566

6667
//
@@ -95,7 +96,7 @@ void LCToCPAssociatorEDProducerT<CLUSTER>::produce(edm::StreamID,
9596
// Protection against missing cluster collection
9697
if (!LCCollection.isValid()) {
9798
edm::LogWarning("LCToCPAssociatorEDProducerT")
98-
<< "CaloCluster collection with label " << label_lc << " is unavailable. Producing empty associations.";
99+
<< "CaloCluster collection with label " << label_lc << " is unavailable. Producing empty associations.";
99100

100101
// Return empty collections
101102
auto emptyRecSimColl = std::make_unique<ticl::RecoToSimCollectionT<CLUSTER>>();
@@ -120,6 +121,7 @@ void LCToCPAssociatorEDProducerT<CLUSTER>::produce(edm::StreamID,
120121
iEvent.put(std::move(str));
121122
}
122123

124+
template <typename CLUSTER>
123125
void LCToCPAssociatorEDProducerT<CLUSTER>::fillDescriptions(edm::ConfigurationDescriptions &descriptions) {
124126
edm::ParameterSetDescription desc;
125127
desc.add<edm::InputTag>("label_cp", edm::InputTag("mix", "MergedCaloTruth"));

SimCalorimetry/HGCalAssociatorProducers/plugins/LCToSCAssociatorByEnergyScoreProducer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void LCToSCAssociatorByEnergyScoreProducerT<HIT, CLUSTER>::produce(edm::StreamID
3131
std::vector<const HIT *> hits;
3232

3333
for (unsigned i = 0; i < hits_token_.size(); ++i) {
34-
auto hits_handle = iEvent.getHandle(hits_token_[i]);
34+
auto hits_handle = iEvent.getHandle(hits_token_[i]);
3535

3636
// Check handle validity
3737
if (!hits_handle.isValid()) {

SimCalorimetry/HGCalAssociatorProducers/plugins/LCToSCAssociatorEDProducer.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ LCToSCAssociatorEDProducerT<CLUSTER>::LCToSCAssociatorEDProducerT(const edm::Par
5454

5555
LCCollectionToken_ = consumes<CLUSTER>(label_lcl);
5656
SCCollectionToken_ = consumes<SimClusterCollection>(label_scl);
57-
associatorToken_ = consumes<ticl::LayerClusterToSimClusterAssociatorT<CLUSTER>>(pset.getParameter<edm::InputTag>("associator"));
57+
associatorToken_ =
58+
consumes<ticl::LayerClusterToSimClusterAssociatorT<CLUSTER>>(pset.getParameter<edm::InputTag>("associator"));
5859
}
5960

6061
//
@@ -92,15 +93,15 @@ void LCToSCAssociatorEDProducerT<CLUSTER>::produce(edm::StreamID,
9293
// Protections
9394
if (!SCCollection.isValid()) {
9495
edm::LogWarning("LCToSCAssociatorEDProducerT")
95-
<< "CaloCluster collection with label " << label_scl << " is unavailable. Producing empty associations.";
96+
<< "CaloCluster collection with label " << label_scl << " is unavailable. Producing empty associations.";
9697
}
9798
if (!LCCollection.isValid()) {
9899
edm::LogWarning("LCToSCAssociatorEDProducer")
99-
<< "CaloCluster collection with label " << label_lcl << " is unavailable. Producing empty associations.";
100+
<< "CaloCluster collection with label " << label_lcl << " is unavailable. Producing empty associations.";
100101

101102
// Return empty collections
102-
auto emptyRecSimColl = std::make_unique<ticl::RecoToSimCollectionWithSimClusters>();
103-
auto emptySimRecColl = std::make_unique<ticl::SimToRecoCollectionWithSimClusters>();
103+
auto emptyRecSimColl = std::make_unique<ticl::RecoToSimCollectionWithSimClustersT<CLUSTER>>();
104+
auto emptySimRecColl = std::make_unique<ticl::SimToRecoCollectionWithSimClustersT<CLUSTER>>();
104105

105106
iEvent.put(std::move(emptyRecSimColl));
106107
iEvent.put(std::move(emptySimRecColl));

0 commit comments

Comments
 (0)