Skip to content

Commit

Permalink
[LTO] Fix ODR warnings for Validation/MtdValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Aug 22, 2022
1 parent 7c31bc4 commit fe50e50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Validation/MtdValidation/plugins/BtlLocalRecoValidation.cc
Expand Up @@ -42,7 +42,7 @@

#include "Geometry/MTDCommonData/interface/MTDTopologyMode.h"

struct MTDHit {
struct MTDHitData {
float energy;
float time;
float x_local;
Expand Down Expand Up @@ -237,15 +237,15 @@ void BtlLocalRecoValidation::analyze(const edm::Event& iEvent, const edm::EventS
#endif

// --- Loop over the BTL SIM hits
std::unordered_map<uint32_t, MTDHit> m_btlSimHits;
std::unordered_map<uint32_t, MTDHitData> m_btlSimHits;
for (auto const& simHit : btlSimHits) {
// --- Use only hits compatible with the in-time bunch-crossing
if (simHit.tof() < 0 || simHit.tof() > 25.)
continue;

DetId id = simHit.detUnitId();

auto simHitIt = m_btlSimHits.emplace(id.rawId(), MTDHit()).first;
auto simHitIt = m_btlSimHits.emplace(id.rawId(), MTDHitData()).first;

// --- Accumulate the energy (in MeV) of SIM hits in the same detector cell
(simHitIt->second).energy += convertUnitsTo(0.001_MeV, simHit.energyLoss());
Expand Down

0 comments on commit fe50e50

Please sign in to comment.