Skip to content

Commit 6220ac4

Browse files
committed
Use saturation to correctly label strip hits
1 parent 5cb14c3 commit 6220ac4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

sbndcode/CRT/CRTReco/CRTStripHitProducer_module.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class sbnd::crt::CRTStripHitProducer : public art::EDProducer {
6262

6363
std::string fFEBDataModuleLabel;
6464
uint16_t fADCThreshold;
65+
uint16_t fADCSaturation;
6566
std::vector<double> fErrorCoeff;
6667
bool fAllowFlag1;
6768
bool fApplyTs0Window;
@@ -88,6 +89,7 @@ sbnd::crt::CRTStripHitProducer::CRTStripHitProducer(fhicl::ParameterSet const& p
8889
: EDProducer{p}
8990
, fFEBDataModuleLabel(p.get<std::string>("FEBDataModuleLabel"))
9091
, fADCThreshold(p.get<uint16_t>("ADCThreshold"))
92+
, fADCSaturation(p.get<uint16_t>("ADCSaturation"))
9193
, fErrorCoeff(p.get<std::vector<double>>("ErrorCoeff"))
9294
, fAllowFlag1(p.get<bool>("AllowFlag1"))
9395
, fApplyTs0Window(p.get<bool>("ApplyTs0Window"))
@@ -290,7 +292,7 @@ std::vector<sbnd::crt::CRTStripHit> sbnd::crt::CRTStripHitProducer::CreateStripH
290292
if(pos - err < 0)
291293
err = pos;
292294

293-
stripHits.emplace_back(offline_channel_id, t0, t1, ref_time_s, pos, err, adc1, adc2);
295+
stripHits.emplace_back(offline_channel_id, t0, t1, ref_time_s, pos, err, adc1, adc2, fADCSaturation);
294296
}
295297
}
296298

sbndcode/CRT/CRTReco/crtrecoproducers_sbnd.fcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ crtstriphitproducer_sbnd:
66
{
77
FEBDataModuleLabel: "crtsim"
88
ADCThreshold: 60
9+
ADCSaturation: @local::sbnd_crtsim.DetSimParams.AdcSaturation
910
ErrorCoeff: [ 0.26, -0.27, 0.025 ]
1011
AllowFlag1: false
1112
ApplyTs0Window: false

0 commit comments

Comments
 (0)