@@ -29,20 +29,20 @@ namespace lcvn
2929 // std::cout << "===================== SBNDPixelMapProducer::DefineBoundary() Number of hits : " << cluster.size() << "\n";
3030
3131 for (size_t iHit = 0 ; iHit < cluster.size (); ++iHit) {
32- U wraphit (*(cluster[iHit]), this ->fThreshold );
32+ U wraphit (*(cluster[iHit]), this ->Threshold () );
3333 Waveform wf = wraphit.GetWaveform ();
3434 geo::WireID wireid = wraphit.GetID ();
3535
3636 unsigned int tempWire = wireid.Wire ;
3737 unsigned int tempPlane = wireid.Plane ;
3838
39- if (!this ->fMultipleDrifts ) ConvertLocaltoGlobal (wireid, tempWire, tempPlane);
39+ if (!this ->MultipleDrifts () ) ConvertLocaltoGlobal (wireid, tempWire, tempPlane);
4040
4141 for (auto & pulse : wf) {
4242 double min_tick = (double )INT_MAX ;
4343 for (auto & i : pulse) {
4444 double temptdc = i.first ;
45- if (this ->fMultipleDrifts ) ConvertLocaltoGlobalTDC (wireid, i.first , tempWire, tempPlane, temptdc);
45+ if (this ->MultipleDrifts () ) ConvertLocaltoGlobalTDC (wireid, i.first , tempWire, tempPlane, temptdc);
4646 if (temptdc < min_tick) min_tick = temptdc;
4747 tsum[tempPlane] += temptdc;
4848 tsize[tempPlane] += 1 .;
@@ -72,13 +72,13 @@ namespace lcvn
7272 double tmean_2 = tsum[2 ] / tsize[2 ];
7373
7474 for (int i = 0 ; i < (int )wire_0.size (); i++) {
75- if (std::abs (tmin_0[i] - tmean_0) < (double )this ->fTRes ) bwire_0.push_back (wire_0[i]);
75+ if (std::abs (tmin_0[i] - tmean_0) < (double )this ->TRes () ) bwire_0.push_back (wire_0[i]);
7676 }
7777 for (int i = 0 ; i < (int )wire_1.size (); i++) {
78- if (std::abs (tmin_1[i] - tmean_1) < (double )this ->fTRes ) bwire_1.push_back (wire_1[i]);
78+ if (std::abs (tmin_1[i] - tmean_1) < (double )this ->TRes () ) bwire_1.push_back (wire_1[i]);
7979 }
8080 for (int i = 0 ; i < (int )wire_2.size (); i++) {
81- if (std::abs (tmin_2[i] - tmean_2) < (double )this ->fTRes ) bwire_2.push_back (wire_2[i]);
81+ if (std::abs (tmin_2[i] - tmean_2) < (double )this ->TRes () ) bwire_2.push_back (wire_2[i]);
8282 }
8383
8484 if (fverbose) std::cout << " Boundary wire vector sizes: " << bwire_0.size () << " , " << bwire_1.size () << " , " << bwire_2.size () << std::endl;
@@ -120,9 +120,9 @@ namespace lcvn
120120 }
121121 }
122122
123- this ->fTotHits = bwire_0.size () + bwire_1.size () + bwire_2.size ();
123+ this ->SetTotHits ( bwire_0.size () + bwire_1.size () + bwire_2.size () );
124124
125- Boundary bound (this ->fNWire , this ->fTRes , minwire_0, minwire_1, minwire_2, tmean_0, tmean_1, tmean_2);
125+ Boundary bound (this ->NWire () , this ->TRes () , minwire_0, minwire_1, minwire_2, tmean_0, tmean_1, tmean_2);
126126
127127 if (fverbose) std::cout << " ============ Reached the end of the function SBNDPixelMapProducer::DefineBoundary() ==============\n " ;
128128 return bound;
@@ -192,27 +192,27 @@ namespace lcvn
192192 template <class T , class U > PixelMap SBNDPixelMapProducer<T, U>::SBNDCreateMapGivenBoundary(detinfo::DetectorPropertiesData const & detProp,const std::vector< const T* >& cluster, const Boundary& bound)
193193 {
194194 if (fverbose) std::cout << " ============ Calling the function SBNDPixelMapProducer::SBNDCreateMapGivenBoundary() ==============\n " ;
195- PixelMap pm (this ->fNWire , this ->fNTdc , bound);
195+ PixelMap pm (this ->NWire () , this ->NTdc () , bound);
196196
197197 for (size_t iHit = 0 ; iHit < cluster.size (); ++iHit)
198198 {
199199
200- U wraphit (*(cluster[iHit]), this ->fThreshold );
200+ U wraphit (*(cluster[iHit]), this ->Threshold () );
201201 Waveform wf = wraphit.GetWaveform ();
202202 geo::WireID wireid = wraphit.GetID ();
203203
204204 unsigned int tempWire = wireid.Wire ;
205205 unsigned int tempPlane = wireid.Plane ;
206206
207- if (!this ->fMultipleDrifts )
207+ if (!this ->MultipleDrifts () )
208208 ConvertLocaltoGlobal (wireid, tempWire, tempPlane);
209209
210210 for (auto &pulse: wf){
211211 // Leigh: Simple modification to unwrap the collection view wire plane
212212 for (auto &i: pulse){
213213 const double pe = i.second ;
214214 double temptdc = i.first ;
215- if (this ->fMultipleDrifts )
215+ if (this ->MultipleDrifts () )
216216 ConvertLocaltoGlobalTDC (wireid, i.first , tempWire, tempPlane, temptdc);
217217
218218 const unsigned int wire = tempWire;
@@ -224,7 +224,7 @@ namespace lcvn
224224 }
225225
226226 }
227- pm.SetTotHits (this ->fTotHits );
227+ pm.SetTotHits (this ->TotHits () );
228228 if (fverbose) std::cout << " ============ Reached the end of the function SBNDPixelMapProducer::SBNDCreateMapGivenBoundary() ==============\n " ;
229229 return pm;
230230 }
0 commit comments