Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:05

0001 #!/bin/bash -ex
0002 
0003 VGEO_DIR=$CMSSW_BASE/src/SimTracker/TrackerMaterialAnalysis/
0004 TEST_DIR=.
0005 
0006 cmsRun ${VGEO_DIR}/test/trackingMaterialProducer10GeVNeutrino_ForPhaseII.py nEvents=1000 >$TEST_DIR/producer.log 2>&1
0007 cmsRun ${VGEO_DIR}/test/trackingMaterialAnalyser_ForPhaseII.py >$TEST_DIR/plotter.log 2>&1
0008 cmsRun ${VGEO_DIR}/test/listIds_PhaseII.py >$TEST_DIR/listIds.log 2>&1
0009 
0010 FILES=./*.png
0011 HTAGS=""
0012 
0013 for i in $FILES
0014 do
0015   HTAGS+="<hr/>$i<hr/><br/><img src=\"$i\"/><br/>"
0016 done
0017 
0018 echo $HTAGS>index.html
0019 
0020 if [[ ! -z ${JENKINS_UPLOAD_DIR} ]] ; then
0021    mkdir ${JENKINS_UPLOAD_DIR}/trackerMaterialAnalysisPlots/
0022    cp  ${TEST_DIR}/*.png ${JENKINS_UPLOAD_DIR}/trackerMaterialAnalysisPlots/
0023    cp  ${TEST_DIR}/index.html ${JENKINS_UPLOAD_DIR}/trackerMaterialAnalysisPlots/
0024    cp  ${TEST_DIR}/*.log ${JENKINS_UPLOAD_DIR}/trackerMaterialAnalysisPlots/
0025 fi