Skip to content

Commit

Permalink
rename of cluster variables
Browse files Browse the repository at this point in the history
  • Loading branch information
atolosadelgado committed Sep 21, 2024
1 parent 609284b commit 29e8986
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DCHdigi/dataFormatExtension/driftChamberHit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ datatypes:
- edm4hep::Vector3d position // point on the sensitive wire (SW) which is closest to the simhit [mm]
- edm4hep::Vector3d directionSW // direction of SW
- float distanceToWire // distance hit-wire [mm]
- uint32_t clusterCount // number of clusters associated to this hit
- uint32_t clusterSize // number of electrons per cluster
- uint32_t nCluster // number of clusters associated to this hit
- uint32_t nElectronPerCluster // number of electrons per cluster

extension::MCRecoDriftChamberDigiV2Association:
Description: "Association between a DriftChamberDigi and the corresponding simulated hit"
Expand Down
6 changes: 3 additions & 3 deletions DCHdigi/src/DCHdigi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,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 [clusterCount,clusterSize] = CalculateClusters(input_sim_hit);
auto [nCluster,nElectronPerCluster] = CalculateClusters(input_sim_hit);

extension::MutableDriftChamberDigiV2 oDCHdigihit;
oDCHdigihit.setCellID(input_sim_hit.getCellID());
Expand All @@ -172,8 +172,8 @@ DCHdigi::operator()(const edm4hep::SimTrackerHitCollection& input_sim_hits,
oDCHdigihit.setPosition(positionSW);
oDCHdigihit.setDirectionSW(directionSW);
oDCHdigihit.setDistanceToWire(distanceToWire);
oDCHdigihit.setClusterCount(clusterCount);
oDCHdigihit.setClusterSize(clusterSize);
oDCHdigihit.setNCluster(nCluster);
oDCHdigihit.setNElectronPerCluster(nElectronPerCluster);

output_digi_hits.push_back(oDCHdigihit);

Expand Down

0 comments on commit 29e8986

Please sign in to comment.