~tmohayai/maus/first_branch

« back to all changes in this revision

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

  • Committer: Durga Rajaram
  • Date: 2014-11-24 01:01:06 UTC
  • mfrom: (706.2.21 emr-dev)
  • Revision ID: durga@fnal.gov-20141124010106-2kjp6wgkzwqxt6dd
emr digitization bug fix, added emr reconstruction mapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
  _tot_func_p2 = configJSON["EMRtotFuncP2"].asDouble();
76
76
  _tot_func_p3 = configJSON["EMRtotFuncP3"].asDouble();
77
77
  _tot_func_p4 = configJSON["EMRtotFuncP4"].asDouble();
78
 
  _tot_func_p5 = configJSON["EMRtotFuncP5"].asDouble();
79
78
  _acquisition_window = configJSON["EMRacquisitionWindow"].asInt();
80
79
  _signal_integration_window = configJSON["EMRsignalIntegrationWindow"].asInt();
81
80
  _arrival_time_shift = configJSON["EMRarrivalTimeShift"].asInt();
290
289
                                       EMRfADCEventVector& emr_fadc_events_tmp) const {
291
290
 
292
291
  int nPlHits = EMRevt->GetEMRPlaneHitArray().size();
293
 
  int nBarsTotal = 0;
294
 
 
295
 
  for (int iPlane = 0; iPlane < nPlHits; iPlane++) {
296
 
    EMRPlaneHit *plHit = EMRevt->GetEMRPlaneHitArray().at(iPlane);
297
 
    nBarsTotal += plHit->GetEMRBarArray().size();
298
 
  }
299
292
 
300
293
  for (int iPlane = 0; iPlane < nPlHits; iPlane++) {
301
294
    EMRPlaneHit *plHit = EMRevt->GetEMRPlaneHitArray().at(iPlane);
637
630
  emr_fadc_events_tmp.resize(nPartEvts);
638
631
  for (int iPe = 0; iPe < nPartEvts ;iPe++) {
639
632
    emr_fadc_events_tmp[iPe].resize(_number_of_planes);
 
633
    for (int iPlane = 0; iPlane < _number_of_planes; iPlane++) {
 
634
      fADCdata data;
 
635
      data._orientation = iPlane%2;
 
636
      data._charge = 0.0;
 
637
      data._pedestal_area = 0.0;
 
638
      data._time = 0;
 
639
      std::vector<int> xSamples;
 
640
      data._samples = xSamples;
 
641
      emr_fadc_events_tmp[iPe][iPlane] = data;
 
642
    }
640
643
  }
641
644
  return emr_fadc_events_tmp;
642
645
}