Changeset 4895 for trunk/MagicSoft
- Timestamp:
- 09/09/04 15:43:47 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4891 r4895 22 22 2004/09/09: Thomas Bretz 23 23 24 * mhvstime/MHPixVsTime.[h,cc], mhvstime/MHVsTime.[h,cc], 25 mhvstime/MHSectorVsTime.[h,cc], mhbase/MH3.[h,cc]: 26 - changed such that the axis titles can be set via the 27 title 24 * mhvstime/MHPixVsTime.[h,cc], mhvstime/MHVsTime.[h,cc], 25 mhvstime/MHSectorVsTime.[h,cc], mhbase/MH3.[h,cc]: 26 - changed such that the axis titles can be set via the 27 title or (if available) a MBinning 28 29 * mhbase/MBinning.cc: 30 - added HasTitle 31 32 * mjobs/MJPedestal.cc: 33 - added lost UseData again to CheckEnvLocal 34 35 * mjobs/MJStar.cc: 36 - fixed handling of Axis titles of histograms 37 38 * mjobs/Makefile: 39 - added path to mhvstime 28 40 29 41 -
trunk/MagicSoft/Mars/manalysis/MParameters.cc
r4887 r4895 77 77 } 78 78 79 void MParameterD::Print(Option_t *o) const 80 { 81 *fLog << all << GetDescriptor() << ": Val=" << fVal << endl; 82 } 83 84 void MParameterDerr::Print(Option_t *o) const 85 { 86 *fLog << all << GetDescriptor() << ": Val=" << fVal << " Err=" << fErr << endl; 87 } 88 89 void MParameterI::Print(Option_t *o) const 90 { 91 *fLog << all << GetDescriptor() << ": Val=" << fVal << endl; 92 } -
trunk/MagicSoft/Mars/manalysis/MParameters.h
r4887 r4895 17 17 Double_t GetVal() const { return fVal; } 18 18 19 void Print(Option_t *o="") const; 20 19 21 ClassDef(MParameterD, 1) // Container to hold a generalized parameters (double) 20 22 }; … … 33 35 Double_t GetErr() const { return fErr; } 34 36 37 void Print(Option_t *o="") const; 38 35 39 ClassDef(MParameterDerr, 1) // Container to hold a generalized parameters (double) and its Error 36 40 }; … … 46 50 void SetVal(Int_t v) { fVal = v; } 47 51 Int_t GetVal() const { return fVal; } 52 53 void Print(Option_t *o="") const; 48 54 49 55 ClassDef(MParameterI, 1) // Container to hold a generalized parameters (integer) -
trunk/MagicSoft/Mars/mfileio/MReadReports.cc
r4766 r4895 226 226 Int_t MReadReports::PreProcess(MParList *plist) 227 227 { 228 fList = (MTask*)plist->FindObject("MTaskList");229 230 228 fChains->Delete(); 231 229 … … 385 383 const Int_t rc = task->CallProcess(); 386 384 if (rc) 387 {388 fList->SetStreamId(task->GetName());389 385 return rc; 390 }391 386 } 392 387 -
trunk/MagicSoft/Mars/mfileio/MReadReports.h
r4766 r4895 22 22 TArrayL fPosEntry; // Store the position in each tree/chain 23 23 TArrayL fPosTree; // Number of Tree in file. 24 25 MTask *fList; // pointer to the task list to set the stream id26 24 27 25 Bool_t fEnableAutoScheme; -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r4766 r4895 601 601 Int_t MReadTree::PreProcess(MParList *pList) 602 602 { 603 fTaskList = (MTaskList*)pList->FindObject("MTaskList"); 604 if (!fTaskList) 605 *fLog << warn << "WARNING - Standard tasklist MTaskList not found... ignoring Stream-ID." << endl; 606 603 607 // 604 608 // Make sure, that all the following calls doesn't result in … … 854 858 const Bool_t rc = fChain->GetEntry(fNumEntry++) != 0; 855 859 860 if (fTaskList) 861 fTaskList->SetStreamId(fChain->GetName()); 862 856 863 if (rc) 857 864 SetReadyToSave(); -
trunk/MagicSoft/Mars/mfileio/MReadTree.h
r4698 r4895 8 8 class MChain; 9 9 class TBranch; 10 class MTaskList; 10 11 11 12 class MReadTree : public MRead … … 24 25 TList *fVetoList; // List of Branches which are not allowed to get enabled 25 26 TList *fNotify; // List of TObjects to notify when switching files 27 28 MTaskList *fTaskList; // Tasklist to set StreamId 26 29 27 30 enum { kChainWasChanged = BIT(14) }; -
trunk/MagicSoft/Mars/mhbase/MH.cc
r3583 r4895 199 199 #endif 200 200 201 // All this is reset by TAxis::Set 202 const TAttAxis att(x); 203 const Bool_t tm(x.GetTimeDisplay()); 204 const TString tf(x.GetTimeFormat()); 205 201 206 // 202 207 // This is a necessary workaround if one wants to set … … 211 216 // 212 217 x.Set(binsx->GetNumBins(), binsx->GetEdges()); 218 219 // All this is reset by TAxis::Set 220 att.Copy(x); 221 x.SetTimeDisplay(tm); 222 x.SetTimeFormat(tf); 223 213 224 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 214 225 x.SetTitle(xtitle); … … 233 244 #endif 234 245 246 // All this is reset by TAxis::Set 247 const TAttAxis attx(x); 248 const TAttAxis atty(y); 249 const Bool_t tmx(x.GetTimeDisplay()); 250 const Bool_t tmy(y.GetTimeDisplay()); 251 const TString tfx(x.GetTimeFormat()); 252 const TString tfy(y.GetTimeFormat()); 253 235 254 // 236 255 // This is a necessary workaround if one wants to set … … 247 266 x.Set(binsx->GetNumBins(), binsx->GetEdges()); 248 267 y.Set(binsy->GetNumBins(), binsy->GetEdges()); 268 269 // All this is reset by TAxis::Set 270 attx.Copy(x); 271 atty.Copy(y); 272 x.SetTimeDisplay(tmx); 273 y.SetTimeDisplay(tmy); 274 x.SetTimeFormat(tfx); 275 y.SetTimeFormat(tfy); 276 249 277 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 250 278 x.SetTitle(xtitle); … … 272 300 #endif 273 301 302 // All this is reset by TAxis::Set 303 const TAttAxis attx(x); 304 const TAttAxis atty(y); 305 const TAttAxis attz(z); 306 const Bool_t tmx(x.GetTimeDisplay()); 307 const Bool_t tmy(y.GetTimeDisplay()); 308 const Bool_t tmz(z.GetTimeDisplay()); 309 const TString tfx(x.GetTimeFormat()); 310 const TString tfy(y.GetTimeFormat()); 311 const TString tfz(z.GetTimeFormat()); 312 274 313 // 275 314 // This is a necessary workaround if one wants to set … … 288 327 y.Set(binsy->GetNumBins(), binsy->GetEdges()); 289 328 z.Set(binsz->GetNumBins(), binsz->GetEdges()); 329 330 // All this is reset by TAxis::Set 331 attx.Copy(x); 332 atty.Copy(y); 333 attz.Copy(z); 334 x.SetTimeDisplay(tmx); 335 y.SetTimeDisplay(tmy); 336 z.SetTimeDisplay(tmz); 337 x.SetTimeFormat(tfx); 338 y.SetTimeFormat(tfy); 339 z.SetTimeFormat(tfz); 340 290 341 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 291 342 x.SetTitle(xtitle); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r4760 r4895 461 461 */ 462 462 463 // -------------------------------------------------------------------------- 464 // 465 // The following resource options are available: 466 // Prefix.DataCheckDisplay: Yes, No 467 // Prefix.DataCheck: Yes, No 468 // Prefix.UseData: Yes, No 469 // 463 470 Bool_t MJPedestal::CheckEnvLocal() 464 471 { … … 467 474 468 475 SetDataCheck(GetEnv("DataCheck", fDataCheck)); 469 Set Overwrite(GetEnv("Overwrite", fOverwrite));476 SetUseData(GetEnv("UseData", fUseData)); 470 477 471 478 return kTRUE; … … 565 572 if (fSequence.IsValid()) 566 573 { 574 const TString type = fUseData ? "data" : "pedestal"; 567 575 const Int_t n0 = fUseData ? fSequence.SetupDatRuns(iter, fPathData) : fSequence.SetupPedRuns(iter, fPathData); 568 576 const Int_t n1 = fUseData ? fSequence.GetNumDatRuns() : fSequence.GetNumPedRuns(); 569 577 if (n0==0) 570 578 { 571 *fLog << err << "ERROR - No input files of sequence found!"<< endl;579 *fLog << err << "ERROR - No " << type << " input files of sequence found in " << fPathData << endl; 572 580 return kFALSE; 573 581 } 574 582 if (n0!=n1) 575 583 { 576 *fLog << err << "ERROR - Number of files found (" << n0 << ")doesn't match number of files in sequence (" << n1 << ")" << endl;584 *fLog << err << "ERROR - Number of " << type << " files found (" << n0 << ") in " << fPathData << " doesn't match number of files in sequence (" << n1 << ")" << endl; 577 585 return kFALSE; 578 586 }
Note:
See TracChangeset
for help on using the changeset viewer.