~lbno-nd/lbno-nd/trunk

« back to all changes in this revision

Viewing changes to src/datastruct/LbnoDataLib.cc

  • Committer: tstainer
  • Date: 2014-06-23 09:14:40 UTC
  • Revision ID: tstainer@liv.ac.uk-20140623091440-xo46khop77imcpw5
Updated README.txt and install scripts. Also added splines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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";
316
316
 
317
317
}
319
319
void GeomVolumeRecord::findVolume(std::string nodeName){
320
320
 
321
321
  resetOrigin();
322
 
 
 
322
  
 
323
  totalCount++;
323
324
  if(nodeName.compare( 0,6, "tpcFid" ) ==0){
324
325
        tpcFidCount++;
325
326
        tpcInteraction = true;
371
372
 
372
373
}
373
374
 
374
 
void GeomVolumeRecord::addCounts(GeomVolumeRecord record){
 
375
void GeomVolumeRecord::addCounts(GeomVolumeRecord &record){
375
376
 
376
377
  tpcFidCount           += record.getTpcCount();
377
378
  notActiveCount        += record.getNotActiveTpcCount();
383
384
  cavityCount           += record.getCavityCount();
384
385
  rockCount             += record.getRockCount();
385
386
  otherCount            += record.getOtherCount();
 
387
  totalCount            += record.getTotalCount();
386
388
 
387
389
}