Changeset 6032 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 01/27/05 09:52:24 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r5701 r6032 236 236 237 237 pad->cd(2); 238 if (gPad->FindObject(Form(" Proj_%p", this)))239 { 240 TH1 *h=fSum->Projection(Form(" Proj_%p", this));238 if (gPad->FindObject(Form("%s;proj", fName.Data()))) 239 { 240 TH1 *h=fSum->Projection(Form("%s;proj", fName.Data())); 241 241 if (h->GetMaximum()>0) 242 242 gPad->SetLogy(); … … 244 244 245 245 pad->cd(5); 246 if (gPad->FindObject(Form(" ProfR_%p", this)))247 fSum->RadialProfile(Form(" ProfR_%p", this));246 if (gPad->FindObject(Form("%s;rad", fName.Data()))) 247 fSum->RadialProfile(Form("%s;rad", fName.Data())); 248 248 249 249 pad->cd(6); 250 if (gPad->FindObject(Form(" ProfA_%p", this)))251 fSum->AzimuthProfile(Form(" ProfA_%p", this));250 if (gPad->FindObject(Form("%s;az", fName.Data()))) 251 fSum->AzimuthProfile(Form("%s;az", fName.Data())); 252 252 253 253 pad->cd(4); 254 254 gPad->cd(1); 255 MHCamera *cam = (MHCamera*)gPad->FindObject(Form(" Err_%p", this));255 MHCamera *cam = (MHCamera*)gPad->FindObject(Form("%s;err", fName.Data())); 256 256 if (cam) 257 257 cam->SetCamContent(*fSum, 1); … … 285 285 gPad->SetBorderMode(0); 286 286 gPad->SetPad(0.66, 0.5, 0.99, 0.99); 287 TH1 *h = fSum->Projection(Form(" Proj_%p", this), 50);287 TH1 *h = fSum->Projection(Form("%s;proj", fName.Data()), 50); 288 288 h->SetTitle("Projection"); 289 289 h->SetBit(kCanDelete); … … 300 300 301 301 MHCamera *cam = new MHCamera(*fSum->GetGeometry()); 302 cam->SetName(Form(" Err_%p", this));302 cam->SetName(Form("%s;err", fName.Data())); 303 303 cam->SetTitle(fSum->TestBit(MHCamera::kVariance)?"Variance":"Root Mean Squared (rms)"); 304 304 cam->SetYTitle(fSum->GetYaxis()->GetTitle()); … … 308 308 309 309 pad->cd(5); 310 h = (TH1*)fSum->RadialProfile(Form(" ProfR_%p", this), 20);310 h = (TH1*)fSum->RadialProfile(Form("%s;rad", fName.Data()), 20); 311 311 h->SetTitle("Radial Profile"); 312 312 h->SetBit(kCanDelete|TH1::kNoStats); … … 314 314 315 315 pad->cd(6); 316 h = (TH1*)fSum->AzimuthProfile(Form(" ProfA_%p", this), 30);316 h = (TH1*)fSum->AzimuthProfile(Form("%s;az", fName.Data()), 30); 317 317 h->SetTitle("Azimuth Profile"); 318 318 h->SetBit(kCanDelete|TH1::kNoStats);
Note:
See TracChangeset
for help on using the changeset viewer.