-
Notifications
You must be signed in to change notification settings - Fork 1
/
createHTMLSequences.sh
executable file
·359 lines (303 loc) · 16.5 KB
/
createHTMLSequences.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
#!/bin/bash
createRelease()
{
#cd /build/rovere/dqmOfflineSequences
cd dqmOfflineSequences
export SCRAM_ARCH=$ARCH
echo $SCRAM_ARCH
scram p "$RELEASE"
if [ $? -eq 0 ]; then
cd ${RELEASE}/src
cp /home/DQMHisto/dqmHisto/py2html_new.py .
eval `scram runtime -sh`
return 1
fi
return 0
}
removeRelease()
{
cd ../..
ls -lh
echo "Lets remove release from working space: $RELEASE"
rm -rf $RELEASE
}
createCrashReport()
{
mkdir -p /home/DQMHisto/DQMSequences/${2}__${3}${4}
echo '<html><head><title>Config Browser</title></head><body><pre>' > index.html
echo "${1}" >> index.html #output the cmsDriver itself
echo '</pre><pre>' >> index.html
cat ${5}_out.txt >> index.html
echo '</pre></body></html>' >> index.html
mv index.html /home/DQMHisto/DQMSequences/${2}__${3}${4}
}
createPhaseIISequence()
{
WDIR="PhaseIISequences"
mkdir -p ${WDIR}
pushd ${WDIR}
# Use directly runTheMatrix to evolve with it instead of running after it.
WFL=20434
echo "working directory: $PWD and files"
# Lauch the test 20434 w/o actually running anything
runTheMatrix.py -l $WFL -j 0 --command='-n 2'
if [ $? -ne 0 ]; then
createCrashReport "Cannot generate workflow ${WFL}"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseII/step2/html/index.html\" >${RELEASE} - Step2 - PhaseII DQM+VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
popd
return 1
fi
# mv all generated python configuration file in the current working directory
mv 20434*/*py .
# GEN-SIM
CMD="cmsRun TTbar*.py &> step1_out.txt"
eval $CMD
if [ $? -ne 0 ]; then
#concat the out file as html
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "__PhaseII/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseII/step2/html/index.html\" >${RELEASE} - Step2 - PhaseII DQM+VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
popd
return 1
fi
#DIGI
CMD="cmsRun step2*py &> step2_out.txt"
eval $CMD
if [ $? -ne 0 ]; then
#concat the out file as html
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "__PhaseII/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseII/step2/html/index.html\" >${RELEASE} - Step2 - PhaseII DQM+VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
popd
return 1
fi
# RECO-DQM-VALIDATION
CMD="cmsRun step3*py &> step3_out.txt"
eval $CMD
if [ $? -ne 0 ]; then
#concat the out file as html
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "__PhaseII/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseII/step2/html/index.html\" >${RELEASE} - Step2 - PhaseII DQM+VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
popd
return 1
fi
# Get rid of unscheduled execution to have a meaningful dump
sed -i -e 's/\(.*convertToUnscheduled(.*\)/#\1/' step3*.py
../py2html_new.py -i step3_RAW2DIGI_L1Reco_RECO_RECOSIM_PAT_VALIDATION_DQM.py -o .
mkdir -p /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__PhaseII/step2
mv html /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__PhaseII/step2
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseII/step2/html/index.html\" >${RELEASE} - Step2 - PhaseII DQM+VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
# HARVESTING
CMD="cmsRun step4*py&> step4_out.txt"
eval $CMD
if [ $? -ne 0 ]; then
#concat the out file as html
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "__PhaseII/step3/html" "step3"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_HAR -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseII/step3/html/index.html\" >${RELEASE} - Step3 - PhaseII HARVESTING </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
pod
return 1
fi
../py2html_new.py -i step4*.py -o .
mkdir -p /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__PhaseII/step3
mv html /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__PhaseII/step3
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_HAR -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseII/step3/html/index.html\" >${RELEASE} - Step3 - PhaseII HARVESTING </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
popd
}
createPhaseISequence()
{
echo "working directory: $PWD and files"
# GEN-SIM
CMD="cmsDriver.py TTbar_13TeV_TuneCUETP8M1_cfi --conditions auto:phase1_2017_realistic \
-n 2 --era Run2_2017 --eventcontent FEVTDEBUG --relval 9000,50 -s GEN,SIM \
--datatier GEN-SIM --beamspot Realistic50ns13TeVCollision --geometry DB:Extended \
--fileout file:step1.root &> step2_out.txt"
eval $CMD
if [ $? -ne 0 ]; then
#concat the out file as html
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "__PhaseI/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseI/step2/html/index.html\" >${RELEASE} - Step2 - PhaseI DQM+VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
#DIGI
CMD="cmsDriver.py step2 --conditions auto:phase1_2017_realistic \
-s DIGI:pdigi_valid,L1,DIGI2RAW,HLT:@relval2017 --datatier GEN-SIM-DIGI-RAW -n -1 \
--geometry DB:Extended --era Run2_2017 --eventcontent FEVTDEBUGHLT \
--filein file:step1.root --fileout file:step2.root &> step2_out.txt"
eval $CMD
if [ $? -ne 0 ]; then
#concat the out file as html
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "__PhaseI/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseI/step2/html/index.html\" >${RELEASE} - Step2 - PhaseI DQM+VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
# RECO-DQM-VALIDATION
CMD="cmsDriver.py step3 --conditions auto:phase1_2017_realistic -n -1 \
--era Run2_2017 --eventcontent RECOSIM,MINIAODSIM,DQM --runUnscheduled \
-s RAW2DIGI,L1Reco,RECO,EI,PAT,VALIDATION:@standardValidation+@miniAODValidation,DQM:@standardDQM+@miniAODDQM \
--datatier GEN-SIM-RECO,MINIAODSIM,DQMIO --geometry DB:Extended \
--filein file:step2.root --fileout file:step3.root &> step2_out.txt"
eval $CMD
if [ $? -ne 0 ]; then
#concat the out file as html
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "__PhaseI/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseI/step2/html/index.html\" >${RELEASE} - Step2 - PhaseI DQM+VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
# Get rid of unscheduled execution to have a meaningful dump
sed -i -e 's/\(.*convertToUnscheduled(.*\)/#\1/' step3_RAW2DIGI_L1Reco_RECO_EI_PAT_VALIDATION_DQM.py
./py2html_new.py -i step3_RAW2DIGI_L1Reco_RECO_EI_PAT_VALIDATION_DQM.py -o .
mkdir -p /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__PhaseI/step2
mv html /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__PhaseI/step2
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseI/step2/html/index.html\" >${RELEASE} - Step2 - PhaseI DQM+VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
# HARVESTING
CMD="cmsDriver.py step5 --conditions auto:phase1_2017_realistic \
-s HARVESTING:@standardValidation+@standardDQM --era Run2_2017 \
--filein file:step3_inDQM.root --scenario pp --filetype DQM \
--geometry DB:Extended --mc -n 1 --fileout file:step5.root &> step3_out.txt"
eval $CMD
if [ $? -ne 0 ]; then
#concat the out file as html
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "__PhaseI/step3/html" "step3"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_HAR -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseI/step3/html/index.html\" >${RELEASE} - Step3 - PhaseI HARVESTING </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
./py2html_new.py -i step5_HARVESTING.py -o .
mkdir -p /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__PhaseI/step3
mv html /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__PhaseI/step3
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_HAR -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__PhaseI/step3/html/index.html\" >${RELEASE} - Step3 - PhaseI HARVESTING </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
}
createSequences()
{
echo "working directory: $PWD and files"
pwd & ls
##GEN-SIM step
if [ "$CONDS" = "auto:mc" ];then
cmsDriver.py SingleMuPt10_pythia8.cfi -s GEN,SIM,DIGI:pdigi_valid,L1,DIGI2RAW \
-n 2 --eventcontent FEVTDEBUG --datatier FEVTDEBUG \
--conditions ${CONDS} --mc --no_exec
else
cmsDriver.py SingleMuPt10_pythia8.cfi -s GEN,SIM,DIGI:pdigi_valid,L1,DIGI2RAW \
-n 2 --eventcontent FEVTDEBUG --datatier FEVTDEBUG \
--conditions auto:upgradePLS3 --mc --no_exec \
--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1,\
SLHCUpgradeSimulations/Configuration/phase1TkCustoms.customise --geometry Extended2017
fi
CMD="cmsRun SingleMuPt10_pythia8_cfi_GEN_SIM_DIGI_L1_DIGI2RAW.py &> step2_out.txt"
eval $CMD
echo "GENSIM return code: $?"
if [ $? -ne 0 ]; then
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}/step2/html/index.html\" >${RELEASE} - Step2 - DQM </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
##DQM step
cmsDriver.py step2_MC1_4 -s RAW2DIGI,RECO,DQM -n 2 \
--filein file:SingleMuPt10_pythia8_cfi_GEN_SIM_DIGI_L1_DIGI2RAW.root \
--eventcontent RECOSIM,DQM --datatier RECOSIM,DQMROOT --conditions ${CONDS} \
--mc --no_exec --scenario ${SCENARIO}
CMD="cmsRun step2_MC1_4_RAW2DIGI_RECO_DQM.py &> step2_out.txt"
eval $CMD
echo "dqm return code: $?"
if [ $? -ne 0 ]; then
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}/step2/html/index.html\" >${RELEASE} - Step2 - DQM </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
./py2html_new.py -i step2_MC1_4_RAW2DIGI_RECO_DQM.py -o .
mkdir -p /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}/step2
mv html /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}/step2
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_DQM -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}/step2/html/index.html\" >${RELEASE} - Step2 - DQM </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
##Validation step
cmsDriver.py step2_MC1_4 -s RAW2DIGI,RECO,VALIDATION -n 2 \
--filein file:SingleMuPt10_pythia8_cfi_GEN_SIM_DIGI_L1_DIGI2RAW.root \
--eventcontent RECOSIM,DQM --datatier RECOSIM,DQMROOT --conditions ${CONDS} --mc \
--no_exec --scenario ${SCENARIO}
CMD="cmsRun step2_MC1_4_RAW2DIGI_RECO_VALIDATION.py &> step2_out.txt"
eval $CMD
echo "val return code: $?"
if [ $? -ne 0 ]; then
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_VAL -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__val/step2/html/index.html\" >${RELEASE} - Step2 - VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
./py2html_new.py -i step2_MC1_4_RAW2DIGI_RECO_VALIDATION.py -o .
mkdir -p /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__val/step2
mv html /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__val/step2
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_VAL -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__val/step2/html/index.html\" >${RELEASE} - Step2 - VALIDATION </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
#Validation:preprod
cmsDriver.py step2_MC1_4 -s RAW2DIGI,RECO,VALIDATION:validation_preprod -n 2 \
--filein file:SingleMuPt10_pythia8_cfi_GEN_SIM_DIGI_L1_DIGI2RAW.root \
--eventcontent RECOSIM,DQM --datatier RECOSIM,DQMROOT --conditions $CONDS --mc \
--no_exec --scenario ${SCENARIO}
CMD="cmsRun step2_MC1_4_RAW2DIGI_RECO_VALIDATION.py &> step2_out.txt"
eval $CMD
echo "val:preprod return code: $?"
if [ $? -ne 0 ]; then
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_VALPREPROD -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__valpreprod/step2/html/index.html\" >${RELEASE} - Step2 - VALIDATION PREPROD </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
./py2html_new.py -i step2_MC1_4_RAW2DIGI_RECO_VALIDATION.py -o .
mkdir -p /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__valpreprod/step2
mv html /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__valpreprod/step2
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_VALPREPROD -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__valpreprod/step2/html/index.html\" >${RELEASE} - Step2 - VALIDATION PREPROD </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
#Validation:prod
cmsDriver.py step2_MC1_4 -s RAW2DIGI,RECO,VALIDATION:validation_prod -n 2 \
--filein file:SingleMuPt10_pythia8_cfi_GEN_SIM_DIGI_L1_DIGI2RAW.root \
--eventcontent RECOSIM,DQM --datatier RECOSIM,DQMROOT --conditions ${CONDS} --mc \
--no_exec --scenario ${SCENARIO}
CMD="cmsRun step2_MC1_4_RAW2DIGI_RECO_VALIDATION.py &> step2_out.txt"
eval $CMD
echo "val:prod return code: $?"
if [ $? -ne 0 ]; then
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "/step2/html" "step2"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_VALPROD -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__valprod/step2/html/index.html\" >${RELEASE} - Step2 - VALIDATION PROD </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
./py2html_new.py -i step2_MC1_4_RAW2DIGI_RECO_VALIDATION.py -o .
mkdir -p /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__valprod/step2
mv html /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}__valprod/step2
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_VALPROD -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}__valprod/step2/html/index.html\" >${RELEASE} - Step2 - VALIDATION PROD </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
#Harvesting step
cmsDriver.py step3_MC1_4 -s HARVESTING:dqmHarvesting --harvesting AtRunEnd \
--conditions ${CONDS} --filetype DQM \
--filein file:step2_MC1_4_RAW2DIGI_RECO_DQM_inDQM.root --mc --no_exec \
--scenario ${SCENARIO}
CMD="cmsRun step3_MC1_4_HARVESTING.py &> step3_out.txt"
eval $CMD
echo "harvesting return code: $?"
if [ $? -ne 0 ]; then
createCrashReport "$CMD" "$SCENARIO" "$RELEASE" "/step3/html" "step3"
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_HAR -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}/step3/html/index.html\" >${RELEASE} - Step3 - HARVESTING </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
return 1
fi
./py2html_new.py -i step3_MC1_4_HARVESTING.py -o .
mkdir -p /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}/step3
mv html /home/DQMHisto/DQMSequences/${SCENARIO}__${RELEASE}/step3
sed -i -e "s#\(.*<!-- PLACEHOLDER_${SCENARIO}_HAR -->\)# <li> <a href=\"sequences/${SCENARIO}__${RELEASE}/step3/html/index.html\" >${RELEASE} - Step3 - HARVESTING </a> </li> \n\1#" /home/DQMHisto/dqmHisto/static/config_browser.html
}
makeSequences()
{
for SCENARIO in cosmics HeavyIons pp
do
createSequences
done
createPhaseISequence
createPhaseIISequence
}
export PATH=$PATH:/cvmfs/cms.cern.ch/common/
export CMS_PATH=/cvmfs/cms.cern.ch/
##ls cvmfs in case its not mounted, to make autofs to mount it
ls -l /cvmfs/cms.cern.ch
SER=6_2
RELEASE=$1
ARCH=$2
CONDS=$3
echo "Using release ${RELEASE}"
#RELEASE=CMSSW_5_2_3_patch1
cd /home/DQMHisto
createRelease
if [ $? -eq 1 ]; then
echo "makeSequences for $RELEASE"
makeSequences
#createHistogramOrigin
fi
removeRelease