Skip to content

Commit

Permalink
Change DRTubesSDAction.cpp units comment
Browse files Browse the repository at this point in the history
Fix comment for unit translation from Geant4 units to EDM4hep units.

Co-authored-by: Andre Sailer <[email protected]>
  • Loading branch information
2 people authored and BrieucF committed Dec 6, 2024
1 parent cc654bc commit 2bf6aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/DRTubesSDAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ bool Geant4SensitiveAction<DRTubesSDData>::process(const G4Step* aStep,
Position FiberPos(FiberVec.x(), FiberVec.y(), FiberVec.z());
hit->position = FiberPos; // this should be assigned only once
// Note, when the hit is saved in edm4hep format the energyDeposit is
// divided by 1000, i.e. it translates from MeV (Geant4 unit) to GeV (DD4hep unit).
// divided by 1000, i.e. it translates from MeV (Geant4 unit) to GeV (EDM4hep unit).
// Here I am using this field to save photo-electrons, so I multiply it by 1000
hit->energyDeposit = signalhit * 1000;
coll->add(VolID, hit); // add the hit to the hit collection
Expand Down

0 comments on commit 2bf6aa4

Please sign in to comment.