Changeset 7259 for trunk/MagicSoft
- Timestamp:
- 08/04/05 16:23:53 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7258 r7259 24 24 - added (script to make the links for the correct callisto.rc in 25 25 case when callisto_Dec04Jan05.rc is needed) 26 27 * datacenter/macros/writesequencefile.C: 28 - added writing of ZdMin and ZdMax to the sequencefile 29 30 * sinope.cc 31 - added printing of Usage() in case of missing arguments 32 - added option --outf to make it possible to give the filename 33 (needed for automation of datacheck) 26 34 27 35 -
trunk/MagicSoft/Mars/datacenter/macros/writesequencefile.C
r7232 r7259 257 257 return kFALSE; 258 258 259 TString fname(Form("%s/ sequences/%04d/sequence%08d.txt", sequpath.Data(), atoi(data[0])/10000, atoi(data[0])));259 TString fname(Form("%s/%04d/sequence%08d.txt", sequpath.Data(), atoi(data[0])/10000, atoi(data[0]))); 260 260 cout << "Creating " << fname << "..." << flush; 261 261 … … 267 267 } 268 268 269 fout << "Sequence: " << data[0] << endl; 270 fout << "Period: " << period << endl; 271 fout << "Night: " << date << endl; 272 fout << "LightConditions: " << str[5] << endl; 273 fout << endl; 274 fout << "Start: " << data[8] << endl; 275 fout << "LastRun: " << data[1] << endl; 276 fout << "Project: " << str[0] << endl; 277 fout << "Source: " << str[1] << endl; 278 fout << "L1TriggerTable: " << str[2] << endl; 279 fout << "L2TriggerTable: " << str[3] << endl; 280 fout << "HvSettings: " << str[4] << endl; 281 fout << "NumEvents: " << data[9] << endl; 269 fout << "Sequence: " << data[0] << endl; 270 fout << "Period: " << period << endl; 271 fout << "Night: " << date << endl; 272 fout << "LightConditions: " << str[5] << endl; 273 fout << endl; 274 fout << "Start: " << data[8] << endl; 275 fout << "LastRun: " << data[1] << endl; 276 fout << "Project: " << str[0] << endl; 277 fout << "Source: " << str[1] << endl; 278 fout << "ZdMin: " << data[10] << endl; 279 fout << "ZdMax: " << data[11] << endl; 280 fout << "L1TriggerTable: " << str[2] << endl; 281 fout << "L2TriggerTable: " << str[3] << endl; 282 fout << "HvSettings: " << str[4] << endl; 283 fout << "NumEvents: " << data[9] << endl; 282 284 fout << endl; 283 285 … … 327 329 TString query(Form("SELECT fSequenceFirst, fSequenceLast, fProjectKEY, fSourceKEY," 328 330 " fL1TriggerTableKEY, fL2TriggerTableKEY, fHvSettingsKEY, " 329 " fLightConditionsKEY, fRunStart, fNumEvents" 331 " fLightConditionsKEY, fRunStart, fNumEvents, " 332 " fZenithDistanceMin, fZenithDistanceMax " 330 333 " FROM Sequences WHERE fSequenceFirst=%d", sequno)); 331 334 TSQLResult *res = serv.Query(query); -
trunk/MagicSoft/Mars/sinope.cc
r7212 r7259 109 109 110 110 TString kOutpath=""; 111 TString kOutfile=""; 111 112 MStatusDisplay *d=0; 112 113 … … 220 221 gLog << " [default=standard path in datacenter]" << endl; 221 222 gLog << " --out=path Path to write the all results to [def=local path]" << endl; 223 gLog << " --outf=filename Filename of the outputfiles [def=sinope{runnumber}.*]" << endl; 222 224 gLog << " --num={number} Number of events to process (default=1000)" << endl; 223 225 gLog << " --print-seq Print Sequence information" << endl; … … 289 291 const TString kInpathD = arg.GetStringAndRemove("--ind=", ""); 290 292 /*const TString*/ kOutpath = arg.GetStringAndRemove("--out=", ""); 293 /*const TString*/ kOutfile = arg.GetStringAndRemove("--outf=", ""); 291 294 292 295 const Int_t kNumEvents = arg.GetIntAndRemove("--num=", header.GetNumEvents()); … … 299 302 arg.Print("options"); 300 303 gLog << endl; 304 Usage(); 301 305 return 2; 302 306 } … … 306 310 gLog << warn << "ERROR - No '--run=' option given... required." << endl; 307 311 gLog << endl; 312 Usage(); 308 313 return 2; 309 314 } … … 312 317 gLog << warn << "ERROR - No '--date=' option given... required." << endl; 313 318 gLog << endl; 319 Usage(); 314 320 return 2; 315 321 } … … 361 367 if (!kOutpath.EndsWith("/")) 362 368 kOutpath += "/"; 363 kOutpath += Form("sinope%08d.", kRunNumber); 369 if (kOutfile.IsNull()) 370 kOutpath += Form("sinope%08d.", kRunNumber); 371 else 372 kOutpath += kOutfile+"."; 364 373 365 374 if (!kOverwrite)
Note:
See TracChangeset
for help on using the changeset viewer.