Changeset 8518 for trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
- Timestamp:
- 05/16/07 14:48:37 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r8504 r8518 2024 2024 } 2025 2025 2026 if (fDisplay) 2027 cont.Add(fDisplay); 2028 2026 2029 return WriteContainer(cont, GetOutputFileName(), "UPDATE"); 2027 2030 } … … 2029 2032 void MJCalibration::DisplayDoubleProject(MHCamera *cam, const char* whatsmall, const char* whatbig) const 2030 2033 { 2031 2034 2032 2035 TArrayI inner(1); 2033 2036 inner[0] = 0; 2034 2037 2035 2038 TArrayI outer(1); 2036 2039 outer[0] = 1; 2037 2040 2038 2041 TArrayI s1(3); 2039 2042 s1[0] = 6; 2040 2043 s1[1] = 1; 2041 2044 s1[2] = 2; 2042 2045 2043 2046 TArrayI s2(3); 2044 2047 s2[0] = 3; 2045 2048 s2[1] = 4; 2046 2049 s2[2] = 5; 2047 2050 2048 2051 TVirtualPad *pad = gPad; 2049 2052 pad->Divide(2,1); 2050 2053 2051 2054 TH1D *inout[2]; 2052 2055 … … 2056 2059 gPad->SetBorderMode(0); 2057 2060 gPad->SetTicks(); 2058 2061 2059 2062 inout[i] = cam->ProjectionS(TArrayI(), TArrayI(1,&i), i==0 ? "Inner" : "Outer"); 2060 2063 FixDataCheckHist(inout[i]); … … 2081 2084 2082 2085 TLegend *leg2 = new TLegend(0.55,0.4,0.99,0.6); 2083 2086 2084 2087 // 2085 2088 // Display the two half of the camera separately … … 2088 2091 half[0] = cam->ProjectionS(s1, TArrayI(1,&i), "Sector 6-1-2"); 2089 2092 half[1] = cam->ProjectionS(s2, TArrayI(1,&i), "Sector 3-4-5"); 2090 2093 2091 2094 for (int j=0; j<2; j++) 2092 2095 {
Note:
See TracChangeset
for help on using the changeset viewer.