From 061e554b81ef1f2485e6b8adfb629259f3e3b5f9 Mon Sep 17 00:00:00 2001 From: Alvaro Tolosa Delgado Date: Fri, 18 Oct 2024 17:16:05 +0200 Subject: [PATCH] data extension modified, field was total number of electrons summed over all clusters during that step --- DCHdigi/dataFormatExtension/driftChamberHit.yaml | 2 +- DCHdigi/src/DCHdigi.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DCHdigi/dataFormatExtension/driftChamberHit.yaml b/DCHdigi/dataFormatExtension/driftChamberHit.yaml index 8644114..891045c 100644 --- a/DCHdigi/dataFormatExtension/driftChamberHit.yaml +++ b/DCHdigi/dataFormatExtension/driftChamberHit.yaml @@ -57,7 +57,7 @@ datatypes: - edm4hep::Vector3d directionSW // direction of SW - float distanceToWire // distance hit-wire [mm] - uint32_t nCluster // number of clusters associated to this hit - - uint32_t nElectronPerCluster // number of electrons per cluster + - uint32_t nElectronsTotal // number of electrons for all the nCluster extension::MCRecoDriftChamberDigiV2Association: Description: "Association between a DriftChamberDigi and the corresponding simulated hit" diff --git a/DCHdigi/src/DCHdigi.cpp b/DCHdigi/src/DCHdigi.cpp index 2fee9b6..3e0ae3a 100644 --- a/DCHdigi/src/DCHdigi.cpp +++ b/DCHdigi/src/DCHdigi.cpp @@ -150,7 +150,7 @@ DCHdigi::operator()(const edm4hep::SimTrackerHitCollection& input_sim_hits, auto directionSW = Convert_TVector3_to_EDM4hepVector(wire_direction_ez, 1. / MM_TO_CM); float distanceToWire = distanceToWire_smeared / MM_TO_CM; - auto [nCluster, nElectronPerCluster] = CalculateClusters(input_sim_hit); + auto [nCluster, nElectronsTotal] = CalculateClusters(input_sim_hit); extension::MutableDriftChamberDigiV2 oDCHdigihit; oDCHdigihit.setCellID(input_sim_hit.getCellID()); @@ -163,7 +163,7 @@ DCHdigi::operator()(const edm4hep::SimTrackerHitCollection& input_sim_hits, oDCHdigihit.setDirectionSW(directionSW); oDCHdigihit.setDistanceToWire(distanceToWire); oDCHdigihit.setNCluster(nCluster); - oDCHdigihit.setNElectronPerCluster(nElectronPerCluster); + oDCHdigihit.setNElectronsTotal(nElectronsTotal); output_digi_hits.push_back(oDCHdigihit);