@@ -172,7 +172,6 @@ class sbnd::LightCaloProducer : public art::EDProducer {
172172 double fxarapucavuv_viseff;
173173 double fxarapucavis_eff;
174174
175- // Electron lifetime database parameters
176175 bool fuse_elifetime_db;
177176 std::string felifetime_db_file;
178177 std::string felifetime_db_tag;
@@ -508,7 +507,6 @@ void sbnd::LightCaloProducer::CalculateCalorimetry(art::Event& e,
508507 for (size_t i=0 ; i < slice_hits_v.size (); i++){
509508 auto hit = slice_hits_v[i];
510509 auto drift_time = clock_data.TPCTick2TrigTime (hit->PeakTime ());
511- // Use TPC-specific electron lifetime
512510 double elifetime = (hit->WireID ().TPC == 0 ) ? elifetime_tpc0 : elifetime_tpc1;
513511 double atten_correction = std::exp (drift_time/elifetime); // exp(us/us)
514512 auto hit_plane = hit->View ();
@@ -536,7 +534,6 @@ void sbnd::LightCaloProducer::CalculateCalorimetry(art::Event& e,
536534 if (hit->View () !=bestHits) continue ;
537535 const auto &position (sp->XYZ ());
538536 geo::Point_t xyz (position[0 ],position[1 ],position[2 ]);
539- // correct for e- attenuation using TPC-specific lifetime
540537 auto drift_time = clock_data.TPCTick2TrigTime (hit->PeakTime ());
541538 double elifetime = (hit->WireID ().TPC == 0 ) ? elifetime_tpc0 : elifetime_tpc1;
542539 double atten_correction = std::exp (drift_time/elifetime); // exp(us/us)
@@ -836,9 +833,8 @@ sbnd::LightCaloProducer::ELifetimeInfo sbnd::LightCaloProducer::GetELifetimeFrom
836833 felifetime_db->GetNamedChannelData (0 , " etau_sce_spatial_east" , tau_E);
837834 felifetime_db->GetNamedChannelData (0 , " etau_sce_spatial_west" , tau_W);
838835
839- // TPC0 is East, TPC1 is West
840- info.tau_tpc0 = tau_E;
841- info.tau_tpc1 = tau_W;
836+ info.tau_tpc0 = tau_E*1e3 ; // the db value is in ms, convert to us
837+ info.tau_tpc1 = tau_W*1e3 ; // the db value is in ms, convert to us
842838
843839 if (fverbose) {
844840 std::cout << " [LightCaloProducer] : Electron lifetime from DB for run " << run << std::endl;
0 commit comments