301
301
void GeomVolumeRecord::printToStream(ostream& stream){
302
302
std::cout << "\n****************************************"
303
303
<<"\nVolume Counts"
304
<< "\n\tTpcFidVolume: " << tpcFidCount
305
<< "\n\tVesselVolume: " << vesselCount
306
<< "\n\tInnerVesselVolume: " << innerVesselCount
307
<< "\n\tScintVolume: " << scintCount
308
<< "\n\tMagnetVolume: " << magnetCount
309
<< "\n\tMindVolume: " << mindCount
310
<< "\n\tCavityVolume: " << cavityCount
304
<< "\n\tTpcFidVolume: " << tpcFidCount << " (" << std::setprecision(3) << tpcFidCount*100./totalCount << "%)"
305
<< "\n\tVesselVolume: " << vesselCount << " (" << std::setprecision(3) << vesselCount*100./totalCount << "%)"
306
<< "\n\tInnerVesselVolume: " << innerVesselCount << " (" << std::setprecision(3) << innerVesselCount*100./totalCount << "%)"
307
<< "\n\tScintVolume: " << scintCount << " (" << std::setprecision(3) << scintCount*100./totalCount << "%)"
308
<< "\n\tMagnetVolume: " << magnetCount << " (" << std::setprecision(3) << magnetCount*100./totalCount << "%)"
309
<< "\n\tMindVolume: " << mindCount << " (" << std::setprecision(3) << mindCount*100./totalCount << "%)"
310
<< "\n\tCavityVolume: " << cavityCount << " (" << std::setprecision(3) << cavityCount*100./totalCount << "%)"
311
311
// << "\n\tMotherVolume: " << motherCount
312
<< "\n\tNotActiveVolume: " << notActiveCount
313
<< "\n\tRockVolume: " << rockCount
314
<< "\n\tNo Volume found: " << otherCount
312
<< "\n\tNotActiveVolume: " << notActiveCount << " (" << std::setprecision(3) << notActiveCount*100./totalCount << "%)"
313
<< "\n\tRockVolume: " << rockCount << " (" << std::setprecision(3) << rockCount*100./totalCount << "%)"
314
<< "\n\tNo Volume found: " << otherCount << " (" << std::setprecision(3) << otherCount*100./totalCount << "%)"
315
315
<< "\n****************************************\n";
374
void GeomVolumeRecord::addCounts(GeomVolumeRecord record){
375
void GeomVolumeRecord::addCounts(GeomVolumeRecord &record){
376
377
tpcFidCount += record.getTpcCount();
377
378
notActiveCount += record.getNotActiveTpcCount();