Changeset 7212 for trunk/MagicSoft
- Timestamp:
- 07/22/05 15:59:46 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7211 r7212 20 20 21 21 -*-*- END OF LINE -*-*- 22 2005/07/12 Daniela Dorner 23 24 * sinope.cc: 25 - added option to select only data or only calibration events for 26 the datacheck 27 28 * datacenter/scripts/runstar, runcallisto: 29 - increased number of processes to ensure, that the runtime of a 30 process doesn't exeed 12 hours 31 32 * datacenter/scripts/runganymed: 33 - removed second execution of ganymed 34 35 36 22 37 2005/07/22 Thomas Bretz 23 38 -
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r7141 r7212 38 38 datetime=`date +%F-%H-%M-%S` 39 39 year=`date +%Y` 40 pno= 24# number of processes, i.e. number of todo-files40 pno=500 # number of processes, i.e. number of todo-files 41 41 42 42 todofile=$listpath/ToDo-$table-$column -
trunk/MagicSoft/Mars/datacenter/scripts/runganymed
r7182 r7212 190 190 mode="onoff" >> $scriptlog 2>&1 191 191 fi 192 ganymedrc=/magic/datacenter/setup/ganymed/ganymed_$mode 192 ganymedrc=/magic/datacenter/setup/ganymed/ganymed_$mode.rc 193 193 194 194 echo "run ganymed..." >> $scriptlog 2>&1 195 ./ganymed -b -q -v4 -f --sum --config=$ganymedrc .rc--log=$outpath/ganymed$no2.log --html=$outpath/ganymed$no2.html --out=$outpath $datasetfile 2>> $scriptlog> /dev/null195 ./ganymed -b -q -v4 -f --sum --config=$ganymedrc --log=$outpath/ganymed$no2.log --html=$outpath/ganymed$no2.html --out=$outpath $datasetfile 2>> $scriptlog> /dev/null 196 196 check1=$? 197 197 198 198 case $check1 in 199 199 0) echo "check1=$check1 -> everthing ok " >> $scriptlog 2>&1 200 echo "-> do ganymed a second time " >> $scriptlog 2>&1 201 ./ganymed -b -q -v4 -f --skip-res --config=$ganymedrc-fs.rc --log=$outpath/ganymed$no2-fs.log --html=$outpath/ganymed$no2-fs.html --out=$outpath --outf=ganymed$no2-fs.root $datasetfile 2>> $scriptlog> /dev/null 202 check2=$? 203 204 case $check2 in 205 0) echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1 206 echo "-> inserting the status for ganymed for dataset $dataset into the db" >> $scriptlog 2>&1 207 setstatuslogpath=$logpath/setstatus/ganymed/$no 208 if [ ! -d $setstatuslogpath ] 209 then 210 mkdir -pv $setstatuslogpath >> $scriptlog 2>&1 211 if [ ! -d $setstatuslogpath ] 212 then 213 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1 214 continue 215 fi 216 fi 217 setstatuslog=$setstatuslogpath/setstatus-ganymed-$no2.log 218 check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 219 case $check4 in 220 1) echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;; 221 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 222 esac 223 ;; 224 *) echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 200 echo "-> inserting the status for ganymed for dataset $dataset into the db" >> $scriptlog 2>&1 201 setstatuslogpath=$logpath/setstatus/ganymed/$no 202 if [ ! -d $setstatuslogpath ] 203 then 204 mkdir -pv $setstatuslogpath >> $scriptlog 2>&1 205 if [ ! -d $setstatuslogpath ] 206 then 207 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1 208 continue 209 fi 210 fi 211 setstatuslog=$setstatuslogpath/setstatus-ganymed-$no2.log 212 check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 213 case $check4 in 214 1) echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;; 215 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 225 216 esac 226 217 ;; -
trunk/MagicSoft/Mars/datacenter/scripts/runstar
r7141 r7212 36 36 datetime=`date +%F-%H-%M-%S` 37 37 year=`date +%Y` 38 pno= 24# number of processes, i.e. number of todo-files38 pno=500 # number of processes, i.e. number of todo-files 39 39 40 40 todofile=$listpath/ToDo-$table-$column -
trunk/MagicSoft/Mars/sinope.cc
r7184 r7212 16 16 #include "MRawFileRead.h" 17 17 #include "MArrayD.h" 18 #include "MFTriggerPattern.h" 19 #include "MTriggerPatternDecode.h" 20 #include "MContinue.h" 18 21 #include "MTaskInteractive.h" 19 22 #include "MLog.h" … … 212 215 gLog << " -q Quit when job is finished" << endl; 213 216 gLog << " -f Force overwrite of existing files" << endl; 217 gLog << " -dat Run sinope only for data events in the run" << endl; 218 gLog << " -cal Run sinope only for calibration events in the run" << endl; 214 219 gLog << " --ind=path Path where to search for the data file" << endl; 215 220 gLog << " [default=standard path in datacenter]" << endl; … … 278 283 const Bool_t kBatch = arg.HasOnlyAndRemove("-b"); 279 284 const Bool_t kOverwrite = arg.HasOnlyAndRemove("-f"); 285 const Bool_t kData = arg.HasOnlyAndRemove("-dat"); 286 const Bool_t kCal = arg.HasOnlyAndRemove("-cal"); 280 287 //const Bool_t kForceExec = arg.HasOnlyAndRemove("-ff"); 281 288 … … 283 290 /*const TString*/ kOutpath = arg.GetStringAndRemove("--out=", ""); 284 291 285 const Int_t kNumEvents = arg.GetIntAndRemove("--num=", 1000);292 const Int_t kNumEvents = arg.GetIntAndRemove("--num=", header.GetNumEvents()); 286 293 const Int_t kRunNumber = arg.GetIntAndRemove("--run=", -1); 287 294 const TString kDate = arg.GetStringAndRemove("--date=", ""); … … 401 408 MTaskInteractive task; 402 409 410 MTriggerPatternDecode decode; 411 MFTriggerPattern ftp; 412 if (kCal || kData) 413 { 414 ftp.SetDefault(kTRUE); 415 ftp.DenyCalibration(); 416 if (!kCal) 417 { 418 ftp.DenyPedestal(); 419 ftp.SetInverted(); 420 } 421 } 422 MContinue conttp(&ftp, "ContTrigPattern"); 423 403 424 task.SetPreProcess(PreProcess); 404 425 task.SetProcess(Process); … … 407 428 MTaskList tlist; 408 429 tlist.AddToList(&read); 430 if (kCal || kData) 431 { 432 tlist.AddToList(&decode); 433 tlist.AddToList(&conttp); 434 } 409 435 tlist.AddToList(&task); 410 436
Note:
See TracChangeset
for help on using the changeset viewer.