Changeset 4389
- Timestamp:
- 07/15/04 13:51:02 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4384 r4389 19 19 20 20 -*-*- END OF LINE -*-*- 21 22 23 2004/07/15: Markus Gaug 24 25 * mcalib/MHCalibrationChargeCam.[h,cc] 26 - hard coded the reference lines for the DataCheck Display. Should be faster and 27 easier to read than the TArrayF's. 21 28 22 29 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r4340 r4389 156 156 const Float_t MHCalibrationChargeCam::fgTimeLowerLimit = 1.; 157 157 const Float_t MHCalibrationChargeCam::fgTimeUpperLimit = 2.; 158 const Int_t MHCalibrationChargeCam::gkNumRefColours = 7; 158 // 1Led Green, 1 LED blue, 5 LEDs blue, 10 LEDs blue, 10 LEDs UV, CT1, 5Leds Green 159 const Float_t MHCalibrationChargeCam::gkHiGainInnerRefLines[7] = { 245., 323. , 1065., 1467., 180., 211. , 533.5}; 160 const Float_t MHCalibrationChargeCam::gkHiGainOuterRefLines[7] = { 217., 307.5, 932. , 1405., 167., 183.5, 405.5}; 161 const Float_t MHCalibrationChargeCam::gkLoGainInnerRefLines[7] = { 20.8, 28.0 , 121. , 200.2, 16.5, 13.5 , 41.7 }; 162 const Float_t MHCalibrationChargeCam::gkLoGainOuterRefLines[7] = { 18.9, 26.0 , 108.3, 198. , 14.0, 11. , 42. }; 159 163 // -------------------------------------------------------------------------- 160 164 // … … 181 185 SetTimeUpperLimit(); 182 186 183 gkHiGainInnerRefLines.Set(gkNumRefColours);184 gkHiGainOuterRefLines.Set(gkNumRefColours);185 gkLoGainInnerRefLines.Set(gkNumRefColours);186 gkLoGainOuterRefLines.Set(gkNumRefColours);187 188 // 1 LED green189 gkHiGainInnerRefLines.AddAt(245. ,0);190 gkHiGainOuterRefLines.AddAt(217. ,0);191 gkLoGainInnerRefLines.AddAt(20.8 ,0);192 gkLoGainOuterRefLines.AddAt(18.9 ,0);193 194 // 1 LED blue195 gkHiGainInnerRefLines.AddAt(323. ,1);196 gkHiGainOuterRefLines.AddAt(307.5,1);197 gkLoGainInnerRefLines.AddAt(28.0 ,1);198 gkLoGainOuterRefLines.AddAt(26.0 ,1);199 200 // 5 LEDs blue201 gkHiGainInnerRefLines.AddAt(1065.,2);202 gkHiGainOuterRefLines.AddAt(932. ,2);203 gkLoGainInnerRefLines.AddAt(121. ,2);204 gkLoGainOuterRefLines.AddAt(108.3,2);205 206 // 10 LEDs blue207 gkHiGainInnerRefLines.AddAt(1467.,3);208 gkHiGainOuterRefLines.AddAt(1405.,3);209 gkLoGainInnerRefLines.AddAt(200.2,3);210 gkLoGainOuterRefLines.AddAt(198. ,3);211 212 // 10 LEDs UV213 gkHiGainInnerRefLines.AddAt(180.,4);214 gkHiGainOuterRefLines.AddAt(167.,4);215 gkLoGainInnerRefLines.AddAt(16.5,4);216 gkLoGainOuterRefLines.AddAt(14.0,4);217 218 // CT1219 gkHiGainInnerRefLines.AddAt(211.,5);220 gkHiGainOuterRefLines.AddAt(183.5,5);221 gkLoGainInnerRefLines.AddAt(13.5,5);222 gkLoGainOuterRefLines.AddAt(11.,5);223 224 // 5 LEDs green225 gkHiGainInnerRefLines.AddAt(533.5,6);226 gkHiGainOuterRefLines.AddAt(405.5,6);227 gkLoGainInnerRefLines.AddAt(41.7,6);228 gkLoGainOuterRefLines.AddAt(42.,6);229 187 230 188 } … … 1002 960 } 1003 961 1004 void MHCalibrationChargeCam::DrawDataCheckPixel(MHCalibrationChargePix &pix, const TArrayF &refline)962 void MHCalibrationChargeCam::DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[]) 1005 963 { 1006 964 … … 1050 1008 1051 1009 1052 void MHCalibrationChargeCam::DisplayRefLines(const TH2D *hist, const TArrayF &refline) const1053 { 1054 1055 TLine *green1 = new TLine(refline .At(0),0.,refline.At(0),hist->GetYaxis()->GetXmax());1010 void MHCalibrationChargeCam::DisplayRefLines(const TH2D *hist, const Float_t refline[]) const 1011 { 1012 1013 TLine *green1 = new TLine(refline[0],0.,refline[0],hist->GetYaxis()->GetXmax()); 1056 1014 green1->SetBit(kCanDelete); 1057 1015 green1->SetLineColor(kGreen); … … 1060 1018 green1->Draw(); 1061 1019 1062 TLine *green5 = new TLine(refline .At(6),0.,refline.At(6),hist->GetYaxis()->GetXmax());1020 TLine *green5 = new TLine(refline[6],0.,refline[6],hist->GetYaxis()->GetXmax()); 1063 1021 green5->SetBit(kCanDelete); 1064 1022 green5->SetLineColor(8); … … 1067 1025 green5->Draw(); 1068 1026 1069 TLine *blue1 = new TLine(refline .At(1),0.,refline.At(1),hist->GetYaxis()->GetXmax());1027 TLine *blue1 = new TLine(refline[1],0.,refline[1],hist->GetYaxis()->GetXmax()); 1070 1028 blue1->SetBit(kCanDelete); 1071 1029 blue1->SetLineColor(007); … … 1074 1032 blue1->Draw(); 1075 1033 1076 TLine *blue5 = new TLine(refline .At(2),0.,refline.At(2),hist->GetYaxis()->GetXmax());1034 TLine *blue5 = new TLine(refline[2],0.,refline[2],hist->GetYaxis()->GetXmax()); 1077 1035 blue5->SetBit(kCanDelete); 1078 1036 blue5->SetLineColor(062); … … 1081 1039 blue5->Draw(); 1082 1040 1083 TLine *blue10 = new TLine(refline .At(3),0.,refline.At(3),hist->GetYaxis()->GetXmax());1041 TLine *blue10 = new TLine(refline[3],0.,refline[3],hist->GetYaxis()->GetXmax()); 1084 1042 blue10->SetBit(kCanDelete); 1085 1043 blue10->SetLineColor(004); … … 1088 1046 blue10->Draw(); 1089 1047 1090 TLine *uv10 = new TLine(refline .At(4),0.,refline.At(4),hist->GetYaxis()->GetXmax());1048 TLine *uv10 = new TLine(refline[4],0.,refline[4],hist->GetYaxis()->GetXmax()); 1091 1049 uv10->SetBit(kCanDelete); 1092 1050 uv10->SetLineColor(106); … … 1095 1053 uv10->Draw(); 1096 1054 1097 TLine *ct1 = new TLine(refline .At(5),0.,refline.At(5),hist->GetYaxis()->GetXmax());1055 TLine *ct1 = new TLine(refline[5],0.,refline[5],hist->GetYaxis()->GetXmax()); 1098 1056 ct1->SetBit(kCanDelete); 1099 1057 ct1->SetLineColor(006); -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h
r4326 r4389 23 23 static const Float_t fgTimeLowerLimit; //! Default for fTimeLowerLimit (now set to: 1.) 24 24 static const Float_t fgTimeUpperLimit; //! Default for fTimeUpperLimit (now set to: 2.) 25 static const Int_t gkNumRefColours;26 25 27 TArrayF gkHiGainInnerRefLines;28 TArrayF gkHiGainOuterRefLines;29 TArrayF gkLoGainInnerRefLines;30 TArrayF gkLoGainOuterRefLines;26 static const Float_t gkHiGainInnerRefLines[7]; 27 static const Float_t gkHiGainOuterRefLines[7]; 28 static const Float_t gkLoGainInnerRefLines[7]; 29 static const Float_t gkLoGainOuterRefLines[7]; 31 30 32 31 Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices) … … 48 47 void FinalizeBadPixels(); 49 48 50 void DrawDataCheckPixel(MHCalibrationChargePix &pix, const TArrayF &refline);51 void DisplayRefLines(const TH2D *hist, const TArrayF &refline) const;49 void DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[]); 50 void DisplayRefLines(const TH2D *hist, const Float_t refline[]) const; 52 51 53 52 public:
Note:
See TracChangeset
for help on using the changeset viewer.