Changeset 3456 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 03/10/04 17:07:23 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r3445 r3456 46 46 47 47 #include "MHCamera.h" 48 #include "MGeomCam.h" 48 49 49 50 #include "MPedestalCam.h" … … 83 84 obj2->Draw(); 84 85 obj2->SetBit(kCanDelete); 86 87 if (obj1->GetGeomCam().InheritsFrom("MGeomCamMagic")) 88 { 89 TArrayI s0(3); 90 s0[0] = 6; 91 s0[1] = 1; 92 s0[2] = 2; 93 94 TArrayI s1(3); 95 s1[0] = 3; 96 s1[1] = 4; 97 s1[2] = 5; 98 99 TArrayI inner(1); 100 inner[0] = 0; 101 102 TArrayI outer(1); 103 outer[0] = 1; 104 105 // Just to get the right (maximum) binning 106 TH1D *half[4]; 107 half[0] = obj1->ProjectionS(s0, inner, "Sector 6-1-2 Inner"); 108 half[1] = obj1->ProjectionS(s1, inner, "Sector 3-4-5 Inner"); 109 half[2] = obj1->ProjectionS(s0, outer, "Sector 6-1-2 Outer"); 110 half[3] = obj1->ProjectionS(s1, outer, "Sector 3-4-5 Outer"); 111 112 for (int i=0; i<4; i++) 113 { 114 half[i]->SetLineColor(kRed+i); 115 half[i]->SetDirectory(0); 116 half[i]->SetBit(kCanDelete); 117 half[i]->Draw("same"); 118 } 119 } 85 120 86 121 const Double_t min = obj2->GetBinCenter(obj2->GetXaxis()->GetFirst()); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r3400 r3456 132 132 inner[0] = 0; 133 133 134 TArrayI outer(1); 135 outer[0] = 1; 136 134 137 // Just to get the right (maximum) binning 135 TH1D *half[2]; 136 half[0] = obj1->ProjectionS(s0, inner, "Sector 6-1-2"); 137 half[1] = obj1->ProjectionS(s0, inner, "Sector 3-4-5"); 138 TH1D *half[4]; 139 half[0] = obj1->ProjectionS(s0, inner, "Sector 6-1-2 Inner"); 140 half[1] = obj1->ProjectionS(s1, inner, "Sector 3-4-5 Inner"); 141 half[2] = obj1->ProjectionS(s0, outer, "Sector 6-1-2 Outer"); 142 half[3] = obj1->ProjectionS(s1, outer, "Sector 3-4-5 Outer"); 138 143 /* 139 144 half[0]->Reset(); … … 145 150 half[(i/3)%2]->Add(obj1->ProjectionS(i, "Dummy")); 146 151 */ 147 for (int i=0; i< 2; i++)152 for (int i=0; i<4; i++) 148 153 { 149 154 half[i]->SetLineColor(kRed+i);
Note:
See TracChangeset
for help on using the changeset viewer.