Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:45

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