Skip to content

Commit 247f9c3

Browse files
committed
Fixes to Scouting Calo RecHits DataFormats and producer (PR review)
1 parent 05a6652 commit 247f9c3

File tree

4 files changed

+14
-19
lines changed

4 files changed

+14
-19
lines changed

DataFormats/Scouting/interface/Run3ScoutingEBRecHit.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
#include <stdint.h>
66

77
// Updated Run 3 HLT-Scouting data format to include calo recHits information:
8-
// - EBRecHits collection (ECAL Barrel);
9-
// - EERecHits collection (ECAL Endcap);
10-
// - HBHERecHits collection (HCAL Barrel and Endcap).
11-
// Saved information is specific to each hit type: energy, time, flags, and detId are available for EB recHits.
8+
// - EBRecHits collection (ECAL Barrel)
9+
// Saved information is specific to each hit type: energy, time, flags, and detId are available for EB recHits
1210
//
1311
// IMPORTANT: any changes to Run3ScoutingEBRecHit must be backward-compatible!
1412

@@ -29,6 +27,7 @@ class Run3ScoutingEBRecHit {
2927
float time_;
3028
unsigned int detId_;
3129
uint32_t flags_;
30+
// NOTE: types are kept the same as in the origin of the data in reco::PFRecHit
3231
};
3332

3433
using Run3ScoutingEBRecHitCollection = std::vector<Run3ScoutingEBRecHit>;

DataFormats/Scouting/interface/Run3ScoutingEERecHit.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
#include <vector>
55

66
// Updated Run 3 HLT-Scouting data format to include calo recHits information:
7-
// - EERecHits collection (ECAL Endcap);
8-
// - EBRecHits collection (ECAL Barrel);
9-
// - HBHERecHits collection (HCAL Barrel and Endcap).
10-
// Saved information is specific to each hit type: energy, time, and detId are available for EE recHits.
7+
// - EERecHits collection (ECAL Endcap)
8+
// Saved information is specific to each hit type: energy, time, and detId are available for EE recHits
119
//
1210
// IMPORTANT: any changes to Run3ScoutingEERecHit must be backward-compatible !
1311

DataFormats/Scouting/interface/Run3ScoutingHBHERecHit.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
#include <vector>
55

66
// Updated Run 3 HLT-Scouting data format to include calo recHits information:
7-
// - HBHERecHits collection (HCAL Barrel and Endcap);
8-
// - EBRecHits collection (ECAL Barrel);
9-
// - EERecHits collection (ECAL Endcap).
10-
// Saved information is specific to each hit type: energy and detId are available for HCAL recHits.
7+
// - HBHERecHits collection (HCAL Barrel and Endcap)
8+
// Saved information is specific to each hit type: energy and detId are available for HCAL recHits
119
//
1210
// -- IMPORTANT: any changes to Run3ScoutingHBHERecHit must be backward-compatible!
1311

HLTrigger/special/plugins/HLTScoutingRecHitProducer.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ class HLTScoutingRecHitProducer : public edm::global::EDProducer<> {
2828
const reco::PFRecHitCollection& inputRecHits,
2929
double minEnergyEB,
3030
double minEnergyEE,
31-
int mantrissaPrecision,
32-
const std::string tag = "");
31+
int mantissaPrecision,
32+
const std::string& tag = "");
3333
static void produceHcal(edm::Event& iEvent,
3434
const reco::PFRecHitCollection& inputRecHits,
3535
double minEnergyHBHE,
36-
int mantrissaPrecision,
37-
const std::string tag = "");
36+
int mantissaPrecision,
37+
const std::string& tag = "");
3838

3939
template <typename T>
4040
void setToken(edm::EDGetTokenT<T>& token, const edm::ParameterSet& iConfig, std::string name) {
4141
const auto inputTag = iConfig.getParameter<edm::InputTag>(name);
4242
if (!inputTag.encode().empty()) {
43-
token = consumes(iConfig.getParameter<edm::InputTag>(name));
43+
token = consumes(inputTag);
4444
}
4545
}
4646

@@ -79,7 +79,7 @@ void HLTScoutingRecHitProducer::produceEcal(edm::Event& iEvent,
7979
double minEnergyEB,
8080
double minEnergyEE,
8181
int mantissaPrecision,
82-
const std::string tag) {
82+
const std::string& tag) {
8383
auto run3ScoutEBRecHits = std::make_unique<Run3ScoutingEBRecHitCollection>();
8484
run3ScoutEBRecHits->reserve(inputRecHits.size());
8585

@@ -119,7 +119,7 @@ void HLTScoutingRecHitProducer::produceHcal(edm::Event& iEvent,
119119
const reco::PFRecHitCollection& inputRecHits,
120120
double minEnergyHBHE,
121121
int mantissaPrecision,
122-
const std::string tag) {
122+
const std::string& tag) {
123123
auto run3ScoutHBHERecHits = std::make_unique<Run3ScoutingHBHERecHitCollection>();
124124
run3ScoutHBHERecHits->reserve(inputRecHits.size());
125125

0 commit comments

Comments
 (0)