Changeset 2221
- Timestamp:
- 06/23/03 17:17:01 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2219 r2221 156 156 - adapted to changes 157 157 - added filename to canvas 158 158 159 * macros/readMagic.C, macros/readCT1.C, macros/status.C: 160 - adapted to changes 161 159 162 * mbase/MAGIC.h: 160 163 - replaced extern by R__EXTERN … … 162 165 * mbase/MParContainer.[h,cc]: 163 166 - added a non empty destructor with some debug options 167 168 * mbase/MPrint.cc: 169 - fixed a bug (used kSKIP instead of kSkip) 164 170 165 171 -
trunk/MagicSoft/Mars/macros/readMagic.C
r2220 r2221 96 96 return; 97 97 98 MHCamera display(geomcam); 99 display.Draw(); 98 MHCamera display1(geomcam); 99 MHCamera display2(geomcam); 100 101 TCanvas c("Events", "Real Events", 300, 600); 102 c.SetBorderMode(0); 103 c.Divide(1,2); 104 c.cd(1); 105 gPad->SetBorderMode(0); 106 gPad->Divide(1,1); 107 gPad->cd(1); 108 gPad->SetBorderMode(0); 109 display1.Draw(); 110 c.cd(2); 111 gPad->SetBorderMode(0); 112 gPad->Divide(1,1); 113 gPad->cd(1); 114 gPad->SetBorderMode(0); 115 display2.Draw(); 100 116 101 117 // Use this if you don't want the event to be autoscaled … … 107 123 cout << "Event #" << read.GetNumEntry() ":" << endl; 108 124 109 display.SetCamContent(*(MCerPhotEvt*)clone.GetClone()); 125 display1.SetCamContent(*(MCerPhotEvt*)clone.GetClone()); 126 display2.SetCamContent(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt")); 127 128 c->cd(1); 129 gPad->cd(1); 130 gPad->Modified(); 131 gPad->Update(); 132 c->cd(2); 133 gPad->cd(1); 134 hillas.Draw(); 110 135 gPad->Modified(); 111 136 gPad->Update(); 112 137 113 if (!HandleInput())114 break;115 116 hillas.Draw();117 138 hillas.Print(); 118 139 hillasext.Print(); 119 140 newimgpar.Print(); 120 121 display.SetCamContent(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt"));122 gPad->Modified();123 gPad->Update();124 141 125 142 if (!HandleInput()) -
trunk/MagicSoft/Mars/macros/status.C
r2179 r2221 31 31 ///////////////////////////////////////////////////////////////////////////// 32 32 33 void status( )33 void status(const char *fname="cosmics.root") 34 34 { 35 35 // … … 44 44 // d->SetUpdateTime(-1); 45 45 46 d->SetLogStream(&gLog, kTRUE); // Disables output to stdout47 gLog.SetOutputFile("status.log", kTRUE); // Enable output to file46 d->SetLogStream(&gLog, kTRUE); // Disables output to stdout 47 gLog.SetOutputFile("status.log", kTRUE); // Enable output to file 48 48 //gLog.EnableOutputDevice(MLog::eStdout); // Enable output to stdout again 49 49 … … 76 76 77 77 // ------------- user change ----------------- 78 read.AddFile( "cosmics.root");78 read.AddFile(fname); 79 79 80 80 MMcPedestalCopy pcopy; … … 92 92 93 93 // ------------------------------------------- 94 MFillH hfill0("Uncleaned [MHCamEvent]", "MCerPhotEvt"); 94 95 MFillH hfill1("MHHillas", "MHillas"); 95 96 MFillH hfill2("MHHillasExt"); 96 97 MFillH hfill3("MHHillasExtSrc [MHHillasExt]", "MHillasSrc"); 97 98 MFillH hfill4("MHHillasSrc","MHillasSrc"); 98 MFillH hfill 4("MHNewImagePar","MNewImagePar");99 MFillH hfill 5("MHStarMap", "MHillas");100 MFillH hfill 6("MHCerPhotEvt", "MCerPhotEvt");101 MFillH hfill 7("MHHadronness", "MHadronness");102 MFillH hfill 8("MHSigmaTheta");99 MFillH hfill5("MHNewImagePar","MNewImagePar"); 100 MFillH hfill6("MHStarMap", "MHillas"); 101 MFillH hfill7("Cleaned [MHCamEvent]", "MCerPhotEvt"); 102 MFillH hfill8("MHHadronness", "MHadronness"); 103 MFillH hfill9("MHSigmaTheta"); 103 104 104 105 tlist.AddToList(&read); 105 //tlist.AddToList(&pcopy);106 //tlist.AddToList(&pnsb);106 tlist.AddToList(&pcopy); 107 tlist.AddToList(&pnsb); 107 108 tlist.AddToList(&ncalc); 109 tlist.AddToList(&hfill0); 108 110 tlist.AddToList(&blind); 109 111 //tlist.AddToList(&sgcal); … … 118 120 tlist.AddToList(&hfill5); 119 121 tlist.AddToList(&hfill6); 120 //tlist.AddToList(&hfill7);122 tlist.AddToList(&hfill7); 121 123 //tlist.AddToList(&hfill8); 122 124 -
trunk/MagicSoft/Mars/macros/sumcurrents.C
r2217 r2221 70 70 TCanvas *c = MH::MakeDefCanvas(); 71 71 c->Divide(3, 2); 72 73 h.SetXTitle("Pixel Index");74 72 75 73 MHCamera *disp1=h.Clone(); -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r2219 r2221 74 74 #include <TTime.h> // TTime 75 75 #include <TFile.h> // gFile 76 #include <TDatime.h> // TDatime 76 77 #include <TSystem.h> // gSystem 77 78 #include <TStopwatch.h> … … 478 479 Bool_t MEvtLoop::Eventloop(Int_t maxcnt, const char *tlist) 479 480 { 481 TDatime d; 482 *fLog << inf << underline << "Eventloop: " << fName << " started at " << d.AsString() << endl; 483 480 484 Bool_t rc = PreProcess(); 481 485 -
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r2209 r2221 98 98 delete (fSum); 99 99 fSum = new MHCamera(*cam, fNameEvt+";avg", fTitle); 100 fSum->Set XTitle("a.u.");100 fSum->SetYTitle("a.u."); 101 101 102 102 return kTRUE; -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r2216 r2221 110 110 SetLineColor(kGreen); 111 111 SetMarkerStyle(kFullDotMedium); 112 SetXTitle("Pixel Index"); 112 113 113 114 fNotify = new TList; … … 398 399 Float_t fRange = fGeomCam->GetMaxRadius(); 399 400 400 TLatex *ptitle = new TLatex(1.2*fRange, .97*fRange, Get Xaxis()->GetTitle());401 TLatex *ptitle = new TLatex(1.2*fRange, .97*fRange, GetYaxis()->GetTitle()); 401 402 402 403 ptitle->SetTextSize(0.03); -
trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.cc
r2209 r2221 111 111 delete (fSum); 112 112 fSum = new MHCamera(*cam, fNameEvt+";avg", fTitle); 113 fSum->Set XTitle("%");113 fSum->SetYTitle("%"); 114 114 115 115 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.