WireCell / wire-cell-toolkit

Toolkit for Liquid Argon TPC Simulation and Reconstruction
https://wirecell.github.io/
Other
7 stars 22 forks source link

Some in-dev code and speed up of conversion code #267

Closed HaiwangYu closed 11 months ago

HaiwangYu commented 11 months ago

Significant speed up of MultiAlgBlobClustering

[11:58:42.788] D [  img   ] <PointTreeBuilding:pct-buiding-uboone> samples -> keys 31 size_major 21
[11:58:44.339] D [  img   ] <PointTreeBuilding:pct-buiding-uboone> sampled 15077 blobs from set 6501 making 512895 tensors at call 0
[11:58:44.530] D [  img   ] <MultiAlgBlobClustering:multi-alg-blob-clustering-uboone> After merging, Got 512895 tensors
[13:05:14.059] D [  img   ] <MultiAlgBlobClustering:multi-alg-blob-clustering-uboone> Got pctree with 276 children
[13:05:14.148] D [  img   ] <MultiAlgBlobClustering:multi-alg-blob-clustering-uboone> Made 15354 tensors
[13:05:14.519] D [  sio   ] <TensorFileSink:tensorsink-uboone> dumping tensor set ident=6501 at call 0
...
[13:05:14.544] I [ timer  ] Timer: WireCell::Img::MultiAlgBlobClustering : 3990.04 sec
[13:05:14.545] I [ timer  ] Timer: WireCell::Img::PointTreeBuilding : 13.68 sec
[15:23:14.671] D [  img   ] <PointTreeBuilding:pct-buiding-uboone> load cluster 6501 at call=0: graph: 57433 nodes of 5 types: b:15077 c:6016 m:28128 s:2196 w:6016 bcats:[ okay=15077 null=0 nostrips=0 nowidth=0 nocorners=0 novolume=0] 349197 edges of 6 types: bb:35245 bm:45065 bw:147347 cm:100447 cw:6016 sb:15077
 channels:  0x3c2eaf0 8131 0x3c2e960 8130 0x3c2e7d0 8129 0x3e82100 4330 0x3ce0570 4329 0x3b80900 6807 0x3dcf0f0 1517 0x3dce850 1521 0x3ceea10 2073 channel hash: 9729118241047941495 total blob charge: 174507289.8197931
nblobs: 15077
[15:23:14.709] D [  img   ] <PointTreeBuilding:pct-buiding-uboone> got 276 clusters
[15:23:24.099] D [  img   ] <PointTreeBuilding:pct-buiding-uboone> Made 512895 tensors
[15:23:24.111] D [  img   ] <PointTreeBuilding:pct-buiding-uboone> sampled 15077 blobs from set 6501 making 512895 tensors at call 0
[15:23:24.290] D [  img   ] <MultiAlgBlobClustering:multi-alg-blob-clustering-uboone> After merging, Got 512895 tensors
[15:23:26.885] D [  img   ] <MultiAlgBlobClustering:multi-alg-blob-clustering-uboone> Got pctree with 276 children
[15:23:28.624] D [  img   ] <MultiAlgBlobClustering:multi-alg-blob-clustering-uboone> Made 512895 tensors
[15:23:29.432] D [  sio   ] <TensorFileSink:tensorsink-uboone> dumping tensor set ident=6501 at call 0
[15:23:29.793] I [ timer  ] Timer: WireCell::Img::PointTreeBuilding : 9.63 sec
[15:23:29.793] I [ timer  ] Timer: WireCell::Img::MultiAlgBlobClustering : 5.14 sec
HaiwangYu commented 11 months ago

Thanks! @brettviren. Yes, this supersede #262. Will close that one. Should I merge this one for now?

brettviren commented 11 months ago

Should I merge this one for now?

Yeah, go for it!