- Timestamp:
- 08/01/08 14:41:58 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
r9022 r9067 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.5 0 2008-07-20 17:33:22tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.51 2008-08-01 13:41:57 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 550 550 //inner camera 551 551 //from calib*.root 552 plot.SetDescription("Median number of calibration phe in inner pixels;C [phe]", "CalPheI"); 553 plot.Plot("Calibration.fMedNumPheInner", 0, 200, 1); 554 plot.SetDescription("Relative rms of calibration charge inner pixels;\\sigma_C [%]", "CalRmsI"); 555 plot.Plot("Calibration.fRelChargeRmsInner", 0, 0.5, 0.01); 552 556 plot.SetDescription("Conversion Factor inner Camera;C_{I} [phe/fadc cnts]", "ConvI"); 553 557 plot.Plot("Calibration.fConvFactorInner", 0, 0.7, 0.002); … … 605 609 //plot.SetDescription("Pulse Variance;", "PulVar"); 606 610 //plot.Plot("Calibration.fPulsePosVar", 0, 0.03, 0.001); 607 608 611 609 612 //from star*.root … … 668 671 //outer camera 669 672 //from calib*.root 673 plot.SetDescription("Median number of calibration phe in outer pixels;C [phe]", "CalPheO"); 674 plot.Plot("Calibration.fMedNumPheOuter", 0, 200, 1); 675 plot.SetDescription("Relative rms of calibration charge outer pixels;\\sigma_C [%]", "CalRmsO"); 676 plot.Plot("Calibration.fRelChargeRmsOuter", 0, 0.5, 0.01); 670 677 plot.SetDescription("Conversion Factor outer Camera;C_{O} [phe/fadc cnts]", "ConvO"); 671 678 plot.Plot("Calibration.fConvFactorOuter", 0, 3.0, 0.01); -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r9043 r9067 2550 2550 } 2551 2551 2552 if (name.Index("%%%%title%%%%")) 2553 { 2554 name.ReplaceAll("%%title%%", c->GetTitle()); 2555 found = kTRUE; 2556 } 2557 2552 2558 if (name.Index("%%%%tab%%%%")) 2553 2559 { … … 2706 2712 // 2707 2713 const Double_t height = 0.015; // Text height 2708 const Double_t off = 0.005; // Line offset from Text2714 const Double_t off = 0.005; // Line offset from text 2709 2715 2710 2716 const Double_t bot = height+off; … … 2990 2996 } 2991 2997 2998 /* 2999 Bool_t MStatusDisplay::SaveAsCSV(Int_t num, TString name) 3000 { 3001 num = InitWriteDisplay(num, name, "csv"); 3002 if (num==0) 3003 return kFALSE; 3004 3005 gSystem->ExpandPathName(name); 3006 3007 ofstream fout(name); 3008 if (!fout) 3009 { 3010 *fLog << err << "Cannot open file " << name << ": " << strerror(errno) << endl; 3011 return kFALSE; 3012 } 3013 3014 fout << "<?xml version=\"1.0\"?>" << endl; 3015 fout << "<display name='" << GetName() << "'>" << endl; 3016 fout << " <file>" << name << "</file>" << endl; 3017 fout << " <status>" << endl; 3018 fout << " <name>" << GetName() << "</name>" << endl; 3019 fout << " <title>" << GetTitle() << "</title>" << endl; 3020 fout << " </status>" << endl; 3021 fout << " <tabs>" << endl; 3022 3023 fout << 0 << delim << GetName() << delim << GetTitle() << endl; 3024 3025 Int_t from, to; 3026 GetCanvasRange(from, to, num); 3027 3028 for (int i=from; i<to; i++) 3029 { 3030 TCanvas *c; 3031 if (!(c = GetCanvas(i))) 3032 { 3033 if (num<0) 3034 *fLog << inf << " - "; 3035 *fLog << "Tab #" << i << " doesn't contain an embedded Canvas... skipped." << endl; 3036 continue; 3037 } 3038 3039 fout << " <tab index='" << i << "'>" << endl; 3040 fout << " <index>" << i << "</index>" << endl; 3041 fout << " <name>" << c->GetName() << "</name>" << endl; 3042 fout << " <title>" << c->GetName() << "</title>" << endl; 3043 fout << " </tab>" << endl; 3044 } 3045 3046 fout << " </tabs>" << endl; 3047 fout << "</display>" << endl; 3048 3049 SetStatusLine2("Done."); 3050 3051 return kTRUE; 3052 } 3053 */ 3054 2992 3055 // -------------------------------------------------------------------------- 2993 3056 // -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.h
r9038 r9067 269 269 270 270 Bool_t SaveAsCSV(Int_t num, TString name="", Char_t delim='\t'); 271 //Bool_t SaveAsXML(Int_t num, TString name="",); 271 272 Int_t PrintPS(Int_t num, const char *p=0, const char *cmd=0, const char *tmp=0); 272 273 Bool_t PrintLog(const char *p=0, const char *c=0); -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r8989 r9067 394 394 write->AddContainer("MMcEvt", "Events", kFALSE); 395 395 write->AddContainer("DataType", "Events"); 396 write->AddContainer(" RunNumber","Events");396 write->AddContainer("FileId", "Events"); 397 397 write->AddContainer("EvtNumber", "Events"); 398 398 // write->AddContainer("MMuonSearchPar", "Events", kFALSE); … … 716 716 setevtnum.SetNameParameter("EvtNumber"); 717 717 718 MParameterCalc setrunnum("MRawRunHeader. fRunNumber", "SetRunNumber");719 setrunnum.SetNameParameter(" RunNumber");718 MParameterCalc setrunnum("MRawRunHeader.GetFileID", "SetFileId"); 719 setrunnum.SetNameParameter("FileId"); 720 720 721 721 MFillH fill1a("MHHillasOffPre [MHHillas]", "MHillas", "FillHillasPre"); -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8989 r9067 1477 1477 write->AddContainer("MWeight", "Events"); 1478 1478 write->AddContainer("DataType", "Events"); 1479 write->AddContainer(" RunNumber","Events");1479 write->AddContainer("FileId", "Events"); 1480 1480 write->AddContainer("EvtNumber", "Events"); 1481 1481 }
Note:
See TracChangeset
for help on using the changeset viewer.