Changeset 2490 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 11/10/03 11:14:35 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r2416 r2490 144 144 *fLog << all << underline << GetDescriptor() << ": Mean=" << mean << ", Rms=" << rms << endl; 145 145 146 for ( unsigned int i=0; i<fSum->GetNumPixels(); i++)146 for (UInt_t i=0; i<fSum->GetNumPixels(); i++) 147 147 { 148 148 if (!fSum->IsUsed(i)) … … 151 151 if ((*fSum)[i+1]>mean+s*rms) 152 152 *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " > " << s << "*rms" << endl; 153 // if ((*fSum)[i+1]==0)154 // *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " == 0" << endl;155 // if ((*fSum)[i+1]<fSum->GetMean()-s*fSum->GetRMS())156 // *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " < " << s << "*rms" << endl;157 153 } 158 154 } … … 175 171 176 172 pad->cd(1); 177 gPad->SetBorderMode(0);178 gPad->Divide(1,1);179 gPad->cd(1);180 gPad->SetBorderMode(0);181 173 fSum->Draw(); 182 174 -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r2488 r2490 359 359 // To draw a camera into its own pad do something like: 360 360 // 361 // MGeomCamMagic m; 362 // MHCamera *d=new MHCamera(m); 363 // 361 364 // TCanvas *c = new TCanvas; 362 365 // c->Divide(2,1); 363 // MGeomCamMagic m;364 // MHCamera *d=new MHCamera(&m);366 // c->cd(1); 367 // 365 368 // d->FillRandom(); 366 // c->cd(1);367 // gPad->SetBorderMode(0);368 // gPad->Divide(1,1);369 // gPad->cd(1);370 369 // d->Draw(); 371 370 // d->SetBit(kCanDelete); … … 375 374 // root 3.02: 376 375 // gPad->SetFixedAspectRatio() 377 Int_t col = 16; 378 379 if (gPad) 380 col = gPad->GetFillColor(); 381 382 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas("CamDisplay", "Mars Camera Display", 656, 600); 376 const Color_t col = gPad ? gPad->GetFillColor() : 16; 377 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas("CamDisplay", "Mars Camera Display", 656, 600); 383 378 pad->SetBorderMode(0); 384 379 pad->SetFillColor(col); 385 380 381 // 382 // Create an own pad for the MHCamera-Object which can be 383 // resized in paint to keep the correct aspect ratio 384 // 385 pad->Divide(1, 1, 0, 0, col); 386 pad->cd(1); 387 gPad->SetBorderMode(0); 388 386 389 AppendPad(option); 390 391 // 392 // Do not change gPad. The user should not see, that Draw 393 // changes gPad... 394 // 395 pad->cd(); 387 396 } 388 397 -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r2488 r2490 256 256 } 257 257 258 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); 259 pad->SetBorderMode(0); 260 261 pad->Divide(1,1); 262 263 pad->cd(1); 264 gPad->SetBorderMode(0); 265 gPad->Divide(1,1); 266 gPad->cd(1); 267 gPad->SetBorderMode(0); 258 if (!gPad) 259 MakeDefCanvas(this); 268 260 fHist->Draw(); 269 261 } -
trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.cc
r2416 r2490 179 179 180 180 pad->cd(1); 181 gPad->SetBorderMode(0); 182 gPad->Divide(1,1); 183 gPad->cd(1); 184 gPad->SetBorderMode(0); 181 /* 182 gPad->SetBorderMode(0); 183 gPad->Divide(1,1); 184 gPad->cd(1); 185 gPad->SetBorderMode(0); 186 */ 185 187 fSum->Draw(); 186 188
Note:
See TracChangeset
for help on using the changeset viewer.