Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:15:16

0001 #!/bin/sh
0002 
0003 # This script parses output Fun4All macro logfiles and greps the tracking timing information from the logfiles
0004 # In order for the timing information to show up in your macro, you must have:
0005 # se->PrintTimer();
0006 # at the end of your Fun4All macro, which prints the timers for all modules
0007 # This script produces a txt file called time.txt which  the root macro AnalyzeTime.C is setup to parse
0008 # The script takes two arguments:
0009 # $0 the directory you want the output file to be produced in (e.g. $pwd)
0010 # $1 the directory where the logfiles you want to grep exist
0011 
0012 
0013 cd $1
0014 
0015 echo "start of time " > time.txt
0016 for infile in "$2*.out"; do
0017      #echo $infile
0018      grep -o -h 'MvtxClusterizer_TOP: per event time (ms):[^"]*' $infile >> time.txt
0019      grep -o -h 'InttClusterizer_TOP: per event time (ms):[^"]*' $infile >> time.txt
0020      grep -o -h 'TpcClusterizer_TOP: per event time (ms):[^"]*' $infile >> time.txt
0021      grep -o -h 'MicromegasClusterizer_TOP: per event time (ms):[^"]*' $infile >> time.txt
0022      grep -o -h 'PHMicromegasTpcTrackMatching_TOP: per event time (ms):[^"]*' $infile >> time.txt
0023      grep -o -h 'TpcClusterCleaner_TOP: per event time (ms):[^"]*' $infile >> time.txt
0024      grep -o -h 'PHActsSiliconSeeding_TOP: per event time (ms):[^"]*' $infile >> time.txt
0025      grep -o -h 'PHActsSiliconSeeding Acts seed time[^"]*' $infile >> time.txt
0026      grep -o -h 'PHCASeeding_TOP: per event time (ms):[^"]*' $infile >> time.txt
0027      grep -o -h 'PrePropagatorPHTpcTrackSeedCircleFit_TOP: per event time (ms):[^"]*' $infile >> time.txt
0028      grep -o -h 'PHSimpleKFProp_TOP: per event time (ms):[^"]*' $infile >> time.txt
0029      grep -o -h 'PHTpcTrackSeedCircleFit_TOP: per event time (ms):[^"]*' $infile >> time.txt
0030      grep -o -h 'PHSiliconTpcTrackMatching_TOP: per event time (ms):[^"]*' $infile >> time.txt
0031      grep -o -h 'PHActsTrkFitter_TOP: per event time (ms):[^"]*' $infile >> time.txt
0032      grep -o -h 'PHSimpleVertexFinder_TOP: per event time (ms):[^"]*' $infile >> time.txt
0033      grep -o -h 'PHActsVertexPropagator_TOP: per event time (ms):[^"]*' $infile >> time.txt
0034      grep -o -h 'PHTpcClusterMover_TOP: per event time (ms):[^"]*' $infile >> time.txt
0035      grep -o -h 'PHTpcDeltaZCorrection_TOP: per event time (ms):[^"]*' $infile >> time.txt
0036      grep -o -h 'PHTpcResiduals_TOP: per event time (ms):[^"]*' $infile >> time.txt
0037 done