Changeset 3238 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 02/19/04 10:39:30 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r3143 r3238 47 47 #include "MStatusDisplay.h" 48 48 49 #include "MGeomCam.h" 49 50 #include "MHCamera.h" 50 51 #include "MPedestalCam.h" … … 114 115 obj2->Draw(); 115 116 obj2->SetBit(kCanDelete); 117 gPad->SetLogy(); 118 119 if (obj1->GetGeomCam().InheritsFrom("MGeomCamMagic")) 120 { 121 // Just to get the right (maximum) binning 122 TH1D *half[2]; 123 half[0] = obj1->Projection("Sector 6-1-2"); 124 half[1] = obj1->Projection("Sector 3-4-5"); 125 126 half[0]->Reset(); 127 half[1]->Reset(); 128 129 TH1D *dummy = obj1->Projection("Dummy"); 130 131 for (int i=1; i<7/*obj1->GetGeomCam().GetNumSectors()*/; i++) 132 half[(i/3)%2]->Add(obj1->ProjectionS(i, "Dummy")); 133 134 for (int i=0; i<2; i++) 135 { 136 half[i]->SetLineColor(kRed+i); 137 half[i]->SetDirectory(0); 138 half[i]->SetBit(kCanDelete); 139 half[i]->Draw("same"); 140 } 141 142 delete dummy; 143 } 116 144 117 145 const Double_t min = obj2->GetBinCenter(obj2->GetXaxis()->GetFirst()); … … 209 237 // 210 238 MHCamera disp0(geomcam, "MPedestalCam;ped", "Pedestals"); 211 MHCamera disp1(geomcam, "MPedestalCam; rms", "Pedestal RMS");239 MHCamera disp1(geomcam, "MPedestalCam;var", "Sigma Pedestal"); 212 240 213 241 disp0.SetCamContent(fPedestalCam, 0); … … 218 246 219 247 disp0.SetYTitle("P [fadc/slice]"); 220 disp1.SetYTitle(" P_{RMS} [fadc/slice]");248 disp1.SetYTitle("\\sigma_{P} [fadc/slice]"); 221 249 222 250 //
Note:
See TracChangeset
for help on using the changeset viewer.