Skip to content

Commit

Permalink
data extension modified,
Browse files Browse the repository at this point in the history
field was total number of electrons summed over all clusters during that step
  • Loading branch information
atolosadelgado committed Oct 18, 2024
1 parent 79619f6 commit 061e554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DCHdigi/dataFormatExtension/driftChamberHit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions DCHdigi/src/DCHdigi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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);

Expand Down

0 comments on commit 061e554

Please sign in to comment.