~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/map/MapCppEMRMCDigitization/MapCppEMRMCDigitization.cc

merging in changes in merge branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
      int xBar = g4barid % 59 + 1;
223
223
 
224
224
      // Position
225
 
      ThreeVector xPos = hit.GetPosition(); // (mm, mm, mm)
226
 
      double xPathLength = hit.GetPathLength(); // mm
 
225
      ThreeVector xPos = hit.GetPosition();     // (mm, mm, mm)
 
226
      double xPathLength = hit.GetPathLength(); // mm
227
227
 
228
228
      // Time
229
 
      double time = hit.GetTime(); // ns
230
 
      int xTime  = static_cast<int>(time); // ns, leading time
231
 
      int xDeltaT = xTime - pTime; // ns
 
229
      double time = hit.GetTime();              // ns
 
230
      int xTime  = static_cast<int>(time);      // ns, leading time
 
231
      int xDeltaT = xTime - pTime;              // ns
232
232
 
233
233
      // Energy deposition
234
 
      double edep = hit.GetEnergyDeposited(); // MeV
 
234
      double edep = hit.GetEnergyDeposited();   // MeV
235
235
      int xTot = static_cast<int>(edep*pow(10, 6)); // eV, non digitized time-over-threshold
236
236
 
237
237
      // Fill the bar hit data (from the EMR sensitive detector)