@@ -10,8 +10,8 @@ if [[ -z $line ]]; then
1010else
1111 epn=` echo $line | cut -d' ' -f1`
1212 start=` echo $line | cut -d' ' -f2`
13- echo epn = $epn
14- echo start = $start
13+ echo " epn = $epn "
14+ echo " start of CTF data = $start "
1515
1616 lineTimes=` grep ${epn} $O2DPG_ROOT /DATA/production/configurations/$ALIEN_JDL_LPMANCHORYEAR /$O2DPGPATH /$ALIEN_JDL_LPMPASSNAME /goodITSMFT_fixed.txt`
1717 echo lineTimes = $lineTimes
4242 echo " good MFT: month = $goodMFTmonth , day = $goodMFTday , hour = $goodMFThour , minute = $goodMFTminute , seconds = $goodMFTsecond "
4343 echo " checking: month = $startmonth , day = $startday , hour = $starthour , minute = $startminute , seconds = $startsecond "
4444
45- if [[ $startday < $goodITSday ]]; then
46- echo " day triggers remappingITS"
45+ # check for ITS
46+ if [[ $startmonth < $goodITSmonth ]]; then
47+ echo " month triggers remappingITS"
4748 remappingITS=1
48- elif [[ $startday == $goodITSday ]]; then
49- if [[ $starthour < $goodITShour ]]; then
50- echo " hour triggers remappingITS"
49+ elif [[ $startmonth == $goodITSmonth ]]; then
50+ if [[ $startday < $goodITSday ]]; then
51+ echo " day triggers remappingITS"
5152 remappingITS=1
52- elif [[ $starthour == $goodITShour ]]; then
53- if [[ $startminute < $goodITSminute ]]; then
54- echo " minute triggers remappingITS"
53+ elif [[ $startday == $goodITSday ]]; then
54+ if [[ $starthour < $goodITShour ]]; then
55+ echo " hour triggers remappingITS"
5556 remappingITS=1
56- elif [[ $startminute == $goodITSminute ]]; then
57- if [[ $startsecond -le $goodITSsecond ]]; then
58- echo " second triggers remappingITS"
57+ elif [[ $starthour == $goodITShour ]]; then
58+ if [[ $startminute < $goodITSminute ]]; then
59+ echo " minute triggers remappingITS"
5960 remappingITS=1
61+ elif [[ $startminute == $goodITSminute ]]; then
62+ if [[ $startsecond -le $goodITSsecond ]]; then
63+ echo " second triggers remappingITS"
64+ remappingITS=1
65+ else
66+ echo " month, day, hour, minute would trigger remapping, but seconds are larger than what is needed to trigger remapping for ITS"
67+ fi
6068 else
61- echo " day, hour, minute would trigger remapping, but seconds are larger than what is needed to trigger remapping for ITS"
69+ echo " month, day, hour would trigger remapping, but minutes are larger than what is needed to trigger remapping for ITS"
6270 fi
6371 else
64- echo " day, hour would trigger remapping, but minutes are larger than what is needed to trigger remapping for ITS"
72+ echo " month, day would trigger remapping, but hours are larger than what is needed to trigger remapping for ITS"
6573 fi
6674 else
67- echo " day would trigger remapping, but minutes are larger than what is needed to trigger remapping for ITS"
75+ echo " month, would trigger remapping, but days are larger than what is needed to trigger remapping for ITS"
6876 fi
69- else
70- echo " start day is later than what is needed to trigger remapping for ITS"
77+ else
78+ echo " start month is later than what is needed to trigger remapping for ITS"
7179 fi
7280
73- if [[ $startday < $goodMFTday ]]; then
74- echo " day triggers remappingMFT"
81+ # check for MFT
82+ if [[ $startmonth < $goodMFTmonth ]]; then
83+ echo " month triggers remappingMFT"
7584 remappingMFT=1
76- elif [[ $startday == $goodMFTday ]]; then
77- if [[ $starthour < $goodMFThour ]]; then
78- echo " hour triggers remappingMFT"
85+ elif [[ $startmonth == $goodMFTmonth ]]; then
86+ if [[ $startday < $goodMFTday ]]; then
87+ echo " day triggers remappingMFT"
7988 remappingMFT=1
80- elif [[ $starthour == $goodMFThour ]]; then
81- if [[ $startminute < $goodMFTminute ]]; then
82- echo " minute triggers remappingMFT"
89+ elif [[ $startday == $goodMFTday ]]; then
90+ if [[ $starthour < $goodMFThour ]]; then
91+ echo " hour triggers remappingMFT"
8392 remappingMFT=1
84- elif [[ $startminute == $goodMFTminute ]]; then
85- if [[ $startsecond -le $goodMFTsecond ]]; then
86- echo " second triggers remappingMFT"
93+ elif [[ $starthour == $goodMFThour ]]; then
94+ if [[ $startminute < $goodMFTminute ]]; then
95+ echo " minute triggers remappingMFT"
8796 remappingMFT=1
97+ elif [[ $startminute == $goodMFTminute ]]; then
98+ if [[ $startsecond -le $goodMFTsecond ]]; then
99+ echo " second triggers remappingMFT"
100+ remappingMFT=1
101+ else
102+ echo " month, day, hour, minute would trigger remapping, but seconds are larger than what is needed to trigger remapping for MFT"
103+ fi
88104 else
89- echo " day, hour, minute would trigger remapping, but seconds are larger than what is needed to trigger remapping for MFT"
105+ echo " month, day, hour would trigger remapping, but minutes are larger than what is needed to trigger remapping for MFT"
90106 fi
91107 else
92- echo " day, hour would trigger remapping, but minutes are larger than what is needed to trigger remapping for MFT"
108+ echo " month, day would trigger remapping, but hours are larger than what is needed to trigger remapping for MFT"
93109 fi
94110 else
95- echo " day would trigger remapping, but minutes are larger than what is needed to trigger remapping for MFT"
111+ echo " month, would trigger remapping, but days are larger than what is needed to trigger remapping for MFT"
96112 fi
97- else
98- echo " start day is later than what is needed to trigger remapping for MFT"
113+ else
114+ echo " start month is later than what is needed to trigger remapping for MFT"
99115 fi
100116
117+
101118 echo " start = $start , goodITS = $goodITS , goodMFT = $goodMFT , remappingITS = $remappingITS , remappingMFT = $remappingMFT "
102119fi
103120
0 commit comments