Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:04

0001 #!/bin/bash
0002 
0003 export workdir=$1
0004 
0005     if [ ! -d "$workdir/rootfiles" ]; then
0006         mkdir $workdir/rootfiles;
0007     fi
0008 
0009     if [ ! -d "$workdir/plots" ]; then
0010         mkdir $workdir/plots;
0011         mkdir $workdir/plots/TIB;
0012         mkdir $workdir/plots/TOB;
0013         mkdir $workdir/plots/TID;
0014         mkdir $workdir/plots/TEC;
0015 
0016         for i in {1..4}; do
0017             mkdir $workdir/plots/TIB/Layer$i;
0018             mkdir $workdir/plots/TIB/Layer$i/Trends;
0019         done
0020 
0021         for i in {1..6}; do
0022             mkdir $workdir/plots/TOB/Layer$i;
0023             mkdir $workdir/plots/TOB/Layer$i/Trends;
0024         done
0025 
0026         for i in {1..2}; do
0027             mkdir $workdir/plots/TID/Side$i;
0028             for j in {1..3}; do
0029                 mkdir $workdir/plots/TID/Side$i/Disk$j;
0030                 mkdir $workdir/plots/TID/Side$i/Disk$j/Trends;
0031             done
0032         done
0033 
0034         for i in {1..2}; do
0035             mkdir $workdir/plots/TEC/Side$i;
0036             for j in {1..9}; do
0037                 mkdir $workdir/plots/TEC/Side$i/Disk$j;
0038                 mkdir $workdir/plots/TEC/Side$i/Disk$j/Trends;
0039             done
0040         done
0041 
0042         mkdir $workdir/plots/Trends
0043         mkdir $workdir/plots/TIB/Trends;
0044         mkdir $workdir/plots/TOB/Trends;
0045         mkdir $workdir/plots/TID/Side1/Trends;
0046         mkdir $workdir/plots/TID/Side2/Trends;
0047         mkdir $workdir/plots/TEC/Side1/Trends;
0048         mkdir $workdir/plots/TEC/Side2/Trends;
0049         mkdir $workdir/plots/Summary
0050 
0051     fi
0052 
0053 for i in {1..4}; do
0054     for Plot in `ls *.png | grep TIBLayer$i`; do
0055         mv $Plot $workdir/plots/TIB/Layer$i/Trends;
0056     done
0057 done
0058 
0059 for i in {1..6}; do
0060     for Plot in `ls *.png | grep TOBLayer$i`; do
0061         mv $Plot $workdir/plots/TOB/Layer$i/Trends;
0062     done
0063 done
0064 
0065 for i in {1..3}; do
0066     for Plot in `ls *.png | grep TID-Disk$i`; do
0067         mv $Plot $workdir/plots/TID/Side1/Disk$i/Trends;
0068     done
0069     for Plot in `ls *.png | grep TID+Disk$i`; do
0070         mv $Plot $workdir/plots/TID/Side2/Disk$i/Trends;
0071     done
0072 done
0073 
0074 for i in {1..9}; do
0075     for Plot in `ls *.png | grep TEC-Disk$i`; do
0076         mv $Plot $workdir/plots/TEC/Side1/Disk$i/Trends;
0077     done
0078     for Plot in `ls *.png | grep TEC+Disk$i`; do
0079         mv $Plot $workdir/plots/TEC/Side2/Disk$i/Trends;
0080     done
0081 done
0082 
0083 for Plot in `ls *.png | grep TIB`; do
0084     mv $Plot $workdir/plots/TIB/Trends;
0085 done
0086 
0087 for Plot in `ls *.png | grep TOB`; do
0088     mv $Plot $workdir/plots/TOB/Trends;
0089 done
0090 
0091 for Plot in `ls *.png | grep TID-`; do
0092     mv $Plot $workdir/plots/TID/Side1/Trends;
0093 done
0094 
0095 for Plot in `ls *.png | grep TID+`; do
0096     mv $Plot $workdir/plots/TID/Side2/Trends;
0097 done
0098 
0099 for Plot in `ls *.png | grep TEC-`; do
0100     mv $Plot $workdir/plots/TEC/Side1/Trends;
0101 done
0102 
0103 for Plot in `ls *.png | grep TEC+`; do
0104     mv $Plot $workdir/plots/TEC/Side2/Trends;
0105 done
0106 
0107 for Plot in `ls *.png | grep Tracker`; do
0108     mv $Plot $workdir/plots/Trends;
0109 done
0110 
0111 mv TrackerSummary.root $workdir/rootfiles;
0112 rm -f TrackerPlots.root;
0113