@@ -206,192 +206,6 @@ class dune::CalibAnaTree : public art::EDAnalyzer {
206206
207207 void DoTailFit ();
208208
209- // single hit fct
210- /*
211- bool AllSame(std::vector<int> v);
212-
213- std::vector<std::string> GetGeneratorTag(art::Event const& e,
214- art::InputTag fG4producer,
215- art::ServiceHandle<cheat::BackTrackerService> bt_serv);
216-
217- bool Inside( int k , std::list<int> liste);
218-
219- float GetDist( float x0 , float y0 , float z0 ,
220- float x1 , float y1 , float z1 );
221-
222- int NearOrFar( bool IsPDVD , bool IsPDHD , const recob::Hit & hit);
223-
224- void GetTimeIsolation(art::Event const & ev,
225- art::InputTag HitLabel,
226- float const PeakTimeWdInt,
227- float const PeakTimeWdExt,
228- std::list<int> & index_list_single,
229- std::list<int> & index_listIsolated);
230-
231- void GetListOfTimeCoincidenceHit( bool IsPDVD , bool IsPDHD ,
232- art::Event const & ev,
233- art::InputTag HitLabel,
234- const float CoincidenceWd1_l,
235- const float CoincidenceWd1_r,
236- const float CoincidenceWd2_l,
237- const float CoincidenceWd2_r,
238- const recob::Hit & HitCol,
239- std::list<geo::WireID> & WireInd1,
240- std::list<geo::WireID> & WireInd2,
241- std::list<int> & ChannelInd1,
242- std::list<int> & ChannelInd2,
243- std::list<float> & EInd1,
244- std::list<float> & EInd2,
245- std::list<float> & PTInd1,
246- std::list<float> & PTInd2,
247- std::list<float> & PAInd1,
248- std::list<float> & PAInd2);
249-
250- void GetListOfCrossingChannel(bool IsPDVD , bool IsPDHD,
251- float Ymin , float Ymax , float Zmin , float Zmax,
252- geo::WireID & WireCol,
253- std::list<geo::WireID> & WireInd1,
254- std::list<geo::WireID> & WireInd2,
255- std::list<int> & ChInd1,
256- std::list<float> & EInd1,
257- std::list<float> & YInd1,
258- std::list<float> & ZInd1,
259- std::list<int> & ChIntersectInd1,
260- std::list<float> & EIntersectInd1,
261- std::list<int> & ChInd2,
262- std::list<float> & EInd2,
263- std::list<float> & YInd2,
264- std::list<float> & ZInd2,
265- std::list<int> & ChIntersectInd2,
266- std::list<float> & EIntersectInd2);
267-
268- void GetListOf3ViewsPoint( float pitch , float alpha ,
269- std::list<int> & ChIntersectInd1,
270- std::list<float> YInd1,
271- std::list<float> ZInd1,
272- std::list<float> EIntersectInd1,
273- std::list<int> & ChIntersectInd2,
274- std::list<float> YInd2,
275- std::list<float> ZInd2,
276- std::list<float> EIntersectInd2,
277- std::list<float> & listYSP,
278- std::list<float> & listZSP,
279- std::list<float> & listEind1SP,
280- std::list<float> & listEind2SP,
281- std::list<int> & listCh1SP,
282- std::list<int> & listCh2SP);
283-
284- std::vector<int> GetXYZIsolatedPoint(
285- std::vector<float> vYPoint,
286- std::vector<float> vZPoint,
287- std::vector<float> vPeakTimeCol,
288- std::vector<int> vNOF,
289- float fElectronVelocity,
290- float fTickToMus,
291- float radiusInt,
292- float radiusExt);
293-
294- bool IntersectOutsideOfTPC(
295- float Ymin , float Ymax , float Zmin , float Zmax,
296- double ChInd_start_y,
297- double ChInd_start_z,
298- double ChInd_end_y,
299- double ChInd_end_z,
300- double ChCol_start_y,
301- double ChCol_start_z,
302- double ChCol_end_y,
303- double ChCol_end_z,
304- double& y , double& z );
305-
306- point gen_yz(int size,
307- std::vector<int> vIndex,
308- std::vector<float> vY,
309- std::vector<float> vZ,
310- std::vector<int> vNOF);
311-
312- float dist2(point a, point b);
313-
314- float randf(float m);
315-
316- int nearest(point pt, point cent, int n_cluster, float *d2);
317-
318- int reallocate(point pt, std::vector<std::vector<float>> ClusterPosition , float threshold);
319-
320- float GetDist2D(float y0,float z0,float y1,float z1);
321-
322- float mean(float y,float z);
323-
324- void kpp(point pts, int len, point cent, int n_cent);
325-
326- std::vector<std::vector<float> > lloyd(point pts, int len, int n_cluster);
327-
328- std::vector<std::vector<float> > GetData(int len,point data);
329-
330- std::vector<int> CheckCompletude(
331- std::vector<std::vector<float> > &data,
332- std::vector<std::vector<float> > &cluster,
333- float RMS,
334- float mult);
335-
336- std::vector<int> CheckClusters(
337- std::vector<std::vector<float> > &data,
338- std::vector<std::vector<float> > &cluster,
339- float RMS,
340- float mult,
341- float tmp);
342-
343- std::vector<ClusterInfo*> GetCluster(
344- bool fAsConverged,
345- float CRP_T0,
346- int n_point,
347- int n_cluster,
348- point p,
349- std::vector<float> vEInd1PointByEvent,
350- std::vector<float> vEInd2PointByEvent,
351- std::vector<int> vChInd1PointByEvent,
352- std::vector<int> vChInd2PointByEvent,
353- std::vector<float> vEnergyColByEvent,
354- std::vector<float> vPeakTimeColByEvent,
355- std::vector<int> vChannelColByEvent,
356- bool truth,
357- std::vector<int> vMCPDGByEvent,
358- std::vector<int> vMCMOMpdgByEvent,
359- std::vector<float> vMCWeightByEvent,
360- std::vector<std::string> vGeneratorTagByEvent,
361- std::vector<float> vMCXByEvent,
362- std::vector<float> vMCYByEvent,
363- std::vector<float> vMCZByEvent,
364- std::vector<int> vNoFByEvent,
365- std::vector<float> vMCEByEvent,
366- std::vector<int> vMCNeByEvent);
367-
368- std::vector<ClusterInfo*> SingleHitAnalysis(
369- art::Event const& e,
370- art::InputTag fRDTLabel,
371- art::InputTag fG4producer,
372- art::InputTag fHITproducer,
373- bool bIsPDVD,
374- bool bIsPDHD,
375- float fCoincidenceWd1_left,
376- float fCoincidenceWd1_right,
377- float fCoincidenceWd2_left,
378- float fCoincidenceWd2_right,
379- bool bIs3ViewsCoincidence,
380- float fPitch,
381- float fPitchMultiplier,
382- bool fVerbose,
383- float fMinSizeCluster,
384- float fMaxSizeCluster,
385- float fNumberInitClusters,
386- float fRadiusInt,
387- float fRadiusExt,
388- float fgeoYmin,
389- float fgeoYmax,
390- float fgeoZmin,
391- float fgeoZmax,
392- float fElectronVelocity,
393- float fTickTimeInMus);
394- */
395209 // declare truth utils, ported from CAFana in SBNCode
396210 std::map<int , std::vector<std::pair<geo::WireID, const sim::IDE*>>>
397211 PrepSimChannels (const std::vector<art::Ptr<sim::SimChannel>> &simchannels,
@@ -421,7 +235,7 @@ class dune::CalibAnaTree : public art::EDAnalyzer {
421235
422236 float fRadiusInt ;
423237 float fRadiusExt ;
424- // float fElectronVelocity;
238+ float fElectronVelocity ;
425239 float fCoincidenceWd1_left ;
426240 float fCoincidenceWd1_right ;
427241 float fCoincidenceWd2_left ;
0 commit comments