Changeset 4301
- Timestamp:
- 06/17/04 10:49:08 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4300 r4301 27 27 Previously, only a Fill(x,y,w) was public, with x and y positions 28 28 in the camera. 29 30 * mjobs/MJPedestal.[h,cc] 31 - updated the data-check display 29 32 30 33 -
trunk/MagicSoft/Mars/mcalib/Makefile
r3980 r4301 20 20 # 21 21 INCLUDES = -I. -I../mbase -I../mhbase -I../mgui -I../mgeom \ 22 -I../manalysis -I../mraw -I../mtools -I../mmc \22 -I../manalysis -I../mraw -I../mtools -I../mmc -I../mhist \ 23 23 -I../mimage -I../msignal -I../mbadpixels -I../mpedestal 24 24 -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r4282 r4301 69 69 #include <TF1.h> 70 70 #include <TCanvas.h> 71 #include <TLegend.h> 71 72 72 73 #include "MLog.h" … … 1664 1665 // 6: Fit Inner and Outer pixels separately by a single Gaussian and display 1665 1666 // additionally the two camera halfs separately (for MAGIC camera) 1667 // 7: Single Gauss with TLegend to show the meaning of the colours 1666 1668 // 1667 1669 // … … 1708 1710 inout[0]->SetDirectory(NULL); 1709 1711 inout[1]->SetDirectory(NULL); 1710 1712 1711 1713 for (int i=0; i<2; i++) 1712 1714 { … … 1716 1718 inout[i]->Draw(); 1717 1719 inout[i]->Fit("gaus","Q"); 1718 /* 1719 gPad->Modified(); 1720 gPad->Update(); 1721 gPad->SaveAs(Form("%s%s%i%s",GetName(),"AreaIdx",i,".eps")); 1722 */ 1720 1721 1723 1722 if (fit == 6) 1724 1723 { … … 1778 1777 halfInOut[2] = ProjectionS(s0, outer, "Sector 6-1-2 Outer"); 1779 1778 halfInOut[3] = ProjectionS(s1, outer, "Sector 3-4-5 Outer"); 1779 1780 TLegend *leg = new TLegend(0.05,0.65,0.35,0.9); 1780 1781 1781 1782 for (int i=0; i<4; i++) … … 1785 1786 halfInOut[i]->SetBit(kCanDelete); 1786 1787 halfInOut[i]->Draw("same"); 1788 leg->AddEntry(halfInOut[i],halfInOut[i]->GetTitle(),"l"); 1787 1789 } 1790 1791 if (fit==7) 1792 leg->Draw(); 1793 1794 gPad->Modified(); 1795 gPad->Update(); 1788 1796 } 1789 1797 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r4189 r4301 63 63 64 64 using namespace std; 65 66 const Double_t MJPedestal::fgPedestalMin = 4.; 67 const Double_t MJPedestal::fgPedestalMax = 16.; 68 const Double_t MJPedestal::fgPedRmsMin = 0.; 69 const Double_t MJPedestal::fgPedRmsMax = 20.; 65 70 // -------------------------------------------------------------------------- 66 71 // … … 147 152 // Create container to display 148 153 // 149 MHCamera disp0(geomcam, "MPedestalCam;ped", " Pedestal");150 MHCamera disp1(geomcam, "MPedestalCam;RMS", "Ped .RMS");154 MHCamera disp0(geomcam, "MPedestalCam;ped", "Mean Pedestal"); 155 MHCamera disp1(geomcam, "MPedestalCam;RMS", "Pedestal RMS"); 151 156 152 157 disp0.SetCamContent(fPedestalCam, 0); … … 159 164 disp1.SetYTitle("\\sigma_{P} [fadc/slice]"); 160 165 166 161 167 // 162 168 // Display data … … 165 171 c3.Divide(2,3); 166 172 167 disp0.CamDraw(c3, 1, 2, 1); 168 disp1.CamDraw(c3, 2, 2, 6); 173 if (fDataCheck) 174 { 175 c3.cd(1); 176 gPad->SetBorderMode(0); 177 gPad->SetTicks(); 178 MHCamera *obj1=(MHCamera*)disp0.DrawCopy("hist"); 179 obj1->SetDirectory(NULL); 180 obj1->SetMinimum(fgPedestalMin); 181 obj1->SetMaximum(fgPedestalMax); 182 gPad->Modified(); 183 gPad->Update(); 184 185 c3.cd(3); 186 gPad->SetBorderMode(0); 187 obj1->SetPrettyPalette(); 188 obj1->Draw(); 189 190 c3.cd(5); 191 gPad->SetBorderMode(0); 192 gPad->SetTicks(); 193 disp0.DrawProjection(7); 194 gPad->Modified(); 195 gPad->Update(); 196 197 c3.cd(2); 198 gPad->SetBorderMode(0); 199 gPad->SetTicks(); 200 MHCamera *obj2=(MHCamera*)disp1.DrawCopy("hist"); 201 obj2->SetDirectory(NULL); 202 obj2->SetMinimum(fgPedRmsMin); 203 obj2->SetMaximum(fgPedRmsMax); 204 gPad->Modified(); 205 gPad->Update(); 206 207 c3.cd(4); 208 gPad->SetBorderMode(0); 209 obj2->SetPrettyPalette(); 210 obj2->Draw(); 211 212 c3.cd(6); 213 gPad->SetBorderMode(0); 214 gPad->SetTicks(); 215 disp1.DrawProjection(6); 216 217 } 218 else 219 { 220 disp0.CamDraw(c3, 1, 2, 1); 221 disp1.CamDraw(c3, 2, 2, 6); 222 } 169 223 } 170 224 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r4189 r4301 17 17 { 18 18 private: 19 20 static const Double_t fgPedestalMin; 21 static const Double_t fgPedestalMax; 22 static const Double_t fgPedRmsMin; 23 static const Double_t fgPedRmsMax; 19 24 20 25 TString fOutputPath; … … 41 46 42 47 const char* GetOutputFile() const; 48 const Bool_t IsDataCheck() const { return fDataCheck; } 43 49 44 50 Bool_t Process();
Note:
See TracChangeset
for help on using the changeset viewer.