- Timestamp:
- 08/26/04 15:39:16 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4742 r4746 19 19 20 20 -*-*- END OF LINE -*-*- 21 2004/08/26: Wolfgang Wittek22 23 24 25 26 27 - add member functions SetPointingPosition28 and SetSourcePosition 21 2004/08/26: Wolfgang Wittek 22 23 * mstarcam/MStarCamTrans.[h,cc] 24 - include optical aberration when plotting the grid 25 26 * mtemp/MTelAxisFromStars.[h,cc] 27 - add member functions SetPointingPosition and SetSourcePosition 28 29 29 30 30 … … 37 37 * macros/calibration.C 38 38 - adapt code to changes done in MJob 39 39 40 40 41 41 42 2004/08/26: Thomas Bretz … … 63 64 - added a new option --auto-time to get the time range for 64 65 cc and/or caco data from the run header of the raw data 66 67 * callisto.cc: 68 - some additional checks 69 - more comments 70 71 * mfileio/MReadReports.h: 72 - overwrote GetFileName - otherwise CINT refuses to create an object 65 73 66 74 -
trunk/MagicSoft/Mars/callisto.cc
r4734 r4746 1 1 #include <TROOT.h> 2 2 #include <TClass.h> 3 #include <TSystem.h> 3 4 #include <TGClient.h> 4 5 #include <TApplication.h> … … 54 55 gLog << endl; 55 56 gLog << " -f Force overwrite of existing files" << endl; 57 gLog << " -ff Force execution if not all files found" << endl; 56 58 gLog << " --ind=path Path where to search for the data files" << endl; 57 59 gLog << " [default=standard path in datacenter]" << endl; … … 114 116 115 117 const Bool_t kOverwrite = arg.HasOnlyAndRemove("-f"); 118 const Bool_t kForceExec = arg.HasOnlyAndRemove("-ff"); 116 119 117 120 const TString kInpathD = arg.GetStringAndRemove("--ind=", ""); … … 167 170 } 168 171 172 // 173 // Setup sequence file and check for its existance 174 // 169 175 const TString kSequence = arg.GetArgumentStr(0); 170 176 171 TApplication app("Callisto", &argc, argv); 172 if (gROOT->IsBatch() || !gClient) 173 { 174 gLog << err << "Bombing... maybe your DISPLAY variable is not set correctly!" << endl; 175 return 1; 176 } 177 177 if (gSystem->AccessPathName(kSequence, kFileExists)) 178 { 179 gLog << err << "Sorry, sequence file '" << kSequence << "' doesn't exist." << endl; 180 return -1; 181 } 182 183 // 184 // Setup sequence and check its validity 185 // 178 186 MSequence seq(kSequence); 179 187 if (kPrintSeq) … … 186 194 if (!seq.IsValid()) 187 195 { 188 gLog << err << "Sequence invalid!" << endl << endl;196 gLog << err << "Sequence read but not valid!" << endl << endl; 189 197 return -1; 190 198 } 191 199 200 // 201 // Process print options 202 // 192 203 if (kPrintFiles) 193 204 { … … 209 220 } 210 221 222 // 223 // Check for existance of all files 224 // 225 MDirIter iter; 226 const Int_t n0 = seq.SetupAllRuns(iter, kInpathD); 227 const Int_t n1 = seq.GetNumAllRuns(); 228 if (n0 != n1) 229 { 230 if (kForceExec) 231 gLog << warn << "WARNING"; 232 else 233 gLog << err << "ERROR"; 234 gLog << " - " << n1 << " files in sequence defined, but " << n0 << "found in "; 235 gLog << (kInpathD.IsNull() ? "<defaultpath>" : kInpathD.Data()) << endl; 236 if (!kForceExec) 237 return -1; 238 } 239 211 240 if (kPrintOnly) 212 241 return 0; 213 242 243 // 244 // Initialize root 245 // 214 246 MArray::Class()->IgnoreTObjectStreamer(); 215 247 MParContainer::Class()->IgnoreTObjectStreamer(); 248 249 TApplication app("Callisto", &argc, argv); 250 if (gROOT->IsBatch() || !gClient) 251 { 252 gLog << err << "Bombing... maybe your DISPLAY variable is not set correctly!" << endl; 253 return 1; 254 } 216 255 217 256 // … … 226 265 if (kModeC) 227 266 { 267 // 268 // Calculate pedestal for calibration 269 // 228 270 MJPedestal job1(Form("MJPedestalC #%d", seq.GetSequence())); 229 271 job1.SetSequence(seq); … … 248 290 } 249 291 292 // 293 // Do calibration 294 // 250 295 MJCalibration job2(Form("MJCalibration #%d", seq.GetSequence())); 251 296 job2.SetSequence(seq); … … 278 323 d->Reset(); 279 324 325 // 326 // Calculate starting pedestal for data extraction 327 // 280 328 MJPedestal job1(Form("MJPedestalY #%d", seq.GetSequence())); 281 329 job1.SetSequence(seq); … … 300 348 } 301 349 350 // 351 // Extract signal and calibrate it 352 // 302 353 MJCalibrateSignal job2(Form("MJCalibrateSignal #%d", seq.GetSequence())); 303 354 job2.SetSequence(seq); -
trunk/MagicSoft/Mars/mfileio/MReadReports.h
r3497 r4746 31 31 32 32 UInt_t GetEntries() { return 0; } 33 TString GetFileName() const { return "<MReadReports>"; }; 33 34 34 35 Int_t PreProcess(MParList *plist);
Note:
See TracChangeset
for help on using the changeset viewer.