Changeset 6065 for trunk/MagicSoft/Mars
- Timestamp:
- 01/27/05 20:44:17 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r6031 r6065 101 101 #include <TPaveText.h> 102 102 #include <TPaveStats.h> 103 #include <TEnv.h> 103 104 104 105 #include "MLog.h" … … 175 176 const Int_t MJCalibration::gkSpecialPixelsContInstallation = 34057; 176 177 const Int_t MJCalibration::gkThirdBlindPixelInstallation = 43308; 177 178 const Double_t MJCalibration::fgConvFADC2PheMin = 0.; 179 const Double_t MJCalibration::fgConvFADC2PheMax = 1.5; 180 const Double_t MJCalibration::fgConvFADC2PhotMin = 0.; 181 const Double_t MJCalibration::fgConvFADC2PhotMax = 10.; 182 const Double_t MJCalibration::fgQEMin = 0.; 183 const Double_t MJCalibration::fgQEMax = 0.3; 184 const Double_t MJCalibration::fgArrivalTimeMin = 1.; 185 const Double_t MJCalibration::fgArrivalTimeMax = 10.; 186 187 const Float_t MJCalibration::fgRefConvFADC2PheInner = 0.14; 188 const Float_t MJCalibration::fgRefConvFADC2PheOuter = 0.4; 189 const Float_t MJCalibration::fgRefConvFADC2PhotInner = 0.8; 190 const Float_t MJCalibration::fgRefConvFADC2PhotOuter = 3.8; 191 const Float_t MJCalibration::fgRefQEInner = 0.18; 192 const Float_t MJCalibration::fgRefQEOuter = 0.12; 193 const Float_t MJCalibration::fgRefArrivalTimeInner = 4.5; 194 const Float_t MJCalibration::fgRefArrivalTimeOuter = 5.0; 195 const Float_t MJCalibration::fgRefArrivalTimeRmsInner = 0.5; 196 const Float_t MJCalibration::fgRefArrivalTimeRmsOuter = 0.5; 178 const TString MJCalibration::fgReferenceFile = "mjobs/calibrationref.rc"; 197 179 // -------------------------------------------------------------------------- 198 180 // … … 224 206 SetNoStorage(kFALSE); 225 207 SetHistsStorage(kFALSE); 208 209 SetReferenceFile(); 210 211 fConvFADC2PheMin = 0.; 212 fConvFADC2PheMax = 1.5; 213 fConvFADC2PhotMin = 0.; 214 fConvFADC2PhotMax = 10.; 215 fQEMin = 0.; 216 fQEMax = 0.3; 217 fArrivalTimeMin = 1.; 218 fArrivalTimeMax = 10.; 219 220 fRefConvFADC2PheInner = 0.14; 221 fRefConvFADC2PheOuter = 0.4; 222 fRefConvFADC2PhotInner = 0.8; 223 fRefConvFADC2PhotOuter = 3.8; 224 fRefQEInner = 0.18; 225 fRefQEOuter = 0.12; 226 fRefArrivalTimeInner = 4.5; 227 fRefArrivalTimeOuter = 5.0; 228 fRefArrivalTimeRmsInner = 0.5; 229 fRefArrivalTimeRmsOuter = 0.5; 230 226 231 } 227 232 … … 526 531 // for the datacheck, fix the ranges!! 527 532 // 528 // obj1->SetMinimum(f gChargeMin);529 // obj1->SetMaximum(f gChargeMax);533 // obj1->SetMinimum(fChargeMin); 534 // obj1->SetMaximum(fChargeMax); 530 535 // 531 536 // Set the datacheck sizes: … … 591 596 // 592 597 // obj3->SetMinimum(0.); 593 // obj3->SetMaximum(f gChargeMax);598 // obj3->SetMaximum(fChargeMax); 594 599 // 595 600 // Set the datacheck sizes: … … 623 628 // for the datacheck, fix the ranges!! 624 629 // 625 // obj3->SetMinimum(f gChargeMin);626 // obj3->SetMaximum(f gChargeMax);630 // obj3->SetMinimum(fChargeMin); 631 // obj3->SetMaximum(fChargeMax); 627 632 // 628 633 // Set the datacheck sizes: … … 658 663 // for the datacheck, fix the ranges!! 659 664 // 660 obj5->SetMinimum(f gConvFADC2PheMin);661 obj5->SetMaximum(f gConvFADC2PheMax);665 obj5->SetMinimum(fConvFADC2PheMin); 666 obj5->SetMaximum(fConvFADC2PheMax); 662 667 // 663 668 // Set the datacheck sizes: … … 690 695 // for the datacheck, fix the ranges!! 691 696 // 692 obj6->SetMinimum(f gQEMin);693 obj6->SetMaximum(f gQEMax);697 obj6->SetMinimum(fQEMin); 698 obj6->SetMaximum(fQEMax); 694 699 // 695 700 // Set the datacheck sizes: … … 723 728 // for the datacheck, fix the ranges!! 724 729 // 725 obj7->SetMinimum(f gConvFADC2PhotMin);726 obj7->SetMaximum(f gConvFADC2PhotMax);730 obj7->SetMinimum(fConvFADC2PhotMin); 731 obj7->SetMaximum(fConvFADC2PhotMax); 727 732 // 728 733 // Set the datacheck sizes: … … 757 762 // for the datacheck, fix the ranges!! 758 763 // 759 obj10->SetMinimum(f gArrivalTimeMin);760 obj10->SetMaximum(f gArrivalTimeMax);764 obj10->SetMinimum(fArrivalTimeMin); 765 obj10->SetMaximum(fArrivalTimeMax); 761 766 // 762 767 // Set the datacheck sizes: … … 789 794 // for the datacheck, fix the ranges!! 790 795 // 791 // obj11->SetMinimum(f gArrivalTimeMin);792 // obj11->SetMaximum(f gArrivalTimeMax);796 // obj11->SetMinimum(fArrivalTimeMin); 797 // obj11->SetMaximum(fArrivalTimeMax); 793 798 // 794 799 // Set the datacheck sizes: … … 971 976 // for the datacheck, fix the ranges!! 972 977 // 973 // obj10->SetMinimum(f gConvFADC2PheMin);974 // obj10->SetMaximum(f gConvFADC2PheMax);978 // obj10->SetMinimum(fConvFADC2PheMin); 979 // obj10->SetMaximum(fConvFADC2PheMax); 975 980 // 976 981 // Set the datacheck sizes: … … 1003 1008 // for the datacheck, fix the ranges!! 1004 1009 // 1005 // obj11->SetMinimum(f gQEMin);1006 // obj11->SetMaximum(f gQEMax);1010 // obj11->SetMinimum(fQEMin); 1011 // obj11->SetMaximum(fQEMax); 1007 1012 // 1008 1013 // Set the datacheck sizes: … … 1231 1236 1232 1237 if (what == 0) 1233 l1 = line.DrawLine(0, f gRefQEInner, x, fgRefQEInner);1238 l1 = line.DrawLine(0, fRefQEInner, x, fRefQEInner); 1234 1239 else if (what == 1) 1235 l1 = line.DrawLine(0, f gRefConvFADC2PhotInner, x, fgRefConvFADC2PhotInner);1240 l1 = line.DrawLine(0, fRefConvFADC2PhotInner, x, fRefConvFADC2PhotInner); 1236 1241 else if (what == 2) 1237 l1 = line.DrawLine(0, f gRefConvFADC2PheInner, x, fgRefConvFADC2PheInner );1242 l1 = line.DrawLine(0, fRefConvFADC2PheInner, x, fRefConvFADC2PheInner ); 1238 1243 else if (what == 3) 1239 l1 = line.DrawLine(0, f gRefArrivalTimeInner, x, fgRefArrivalTimeInner );1244 l1 = line.DrawLine(0, fRefArrivalTimeInner, x, fRefArrivalTimeInner ); 1240 1245 else if (what == 4) 1241 l1 = line.DrawLine(0, f gRefArrivalTimeRmsInner, x, fgRefArrivalTimeRmsInner );1246 l1 = line.DrawLine(0, fRefArrivalTimeRmsInner, x, fRefArrivalTimeRmsInner ); 1242 1247 1243 1248 if (geom->InheritsFrom("MGeomCamMagic")) … … 1248 1253 { 1249 1254 case 0: 1250 line.DrawLine(x2, f gRefQEOuter, 398, fgRefQEOuter);1255 line.DrawLine(x2, fRefQEOuter, 398, fRefQEOuter); 1251 1256 break; 1252 1257 case 1: 1253 line.DrawLine(x2, f gRefConvFADC2PhotOuter, 398, fgRefConvFADC2PhotOuter );1258 line.DrawLine(x2, fRefConvFADC2PhotOuter, 398, fRefConvFADC2PhotOuter ); 1254 1259 break; 1255 1260 case 2: 1256 line.DrawLine(x2, f gRefConvFADC2PheOuter, 398, fgRefConvFADC2PheOuter);1261 line.DrawLine(x2, fRefConvFADC2PheOuter, 398, fRefConvFADC2PheOuter); 1257 1262 break; 1258 1263 case 3: 1259 line.DrawLine(x2, f gRefArrivalTimeOuter, 398, fgRefArrivalTimeOuter);1264 line.DrawLine(x2, fRefArrivalTimeOuter, 398, fRefArrivalTimeOuter); 1260 1265 break; 1261 1266 case 4: 1262 line.DrawLine(x2, f gRefArrivalTimeRmsOuter, 398, fgRefArrivalTimeRmsOuter);1267 line.DrawLine(x2, fRefArrivalTimeRmsOuter, 398, fRefArrivalTimeRmsOuter); 1263 1268 break; 1264 1269 } … … 1382 1387 SetGeometry(GetEnv("Geometry", fGeometry)); 1383 1388 1384 return kTRUE; 1389 fReferenceFile = GetEnv("ReferenceFile",fReferenceFile.Data()); 1390 1391 TEnv refenv(fReferenceFile); 1392 1393 fConvFADC2PheMin = refenv.GetValue("ConvFADC2PheMin",fConvFADC2PheMin); 1394 fConvFADC2PheMax = refenv.GetValue("ConvFADC2PheMax",fConvFADC2PheMax); 1395 fConvFADC2PhotMin = refenv.GetValue("ConvFADC2PhotMin",fConvFADC2PhotMin); 1396 fConvFADC2PhotMax = refenv.GetValue("ConvFADC2PhotMax",fConvFADC2PhotMax); 1397 fQEMin = refenv.GetValue("QEMin",fQEMin); 1398 fQEMax = refenv.GetValue("QEMax",fQEMax); 1399 fArrivalTimeMin = refenv.GetValue("ArrivalTimeMin",fArrivalTimeMin); 1400 fArrivalTimeMax = refenv.GetValue("ArrivalTimeMax",fArrivalTimeMax); 1401 1402 fRefConvFADC2PheInner = refenv.GetValue("RefConvFADC2PheInner",fRefConvFADC2PheInner); 1403 fRefConvFADC2PheOuter = refenv.GetValue("RefConvFADC2PheOuter",fRefConvFADC2PheOuter); 1404 fRefConvFADC2PhotInner = refenv.GetValue("RefConvFADC2PhotInner",fRefConvFADC2PhotInner); 1405 fRefConvFADC2PhotOuter = refenv.GetValue("RefConvFADC2PhotOuter",fRefConvFADC2PhotOuter); 1406 fRefQEInner = refenv.GetValue("RefQEInner",fRefQEInner); 1407 fRefQEOuter = refenv.GetValue("RefQEOuter",fRefQEOuter); 1408 fRefArrivalTimeInner = refenv.GetValue("RefArrivalTimeInner",fRefArrivalTimeInner); 1409 fRefArrivalTimeOuter = refenv.GetValue("RefArrivalTimeOuter",fRefArrivalTimeOuter); 1410 fRefArrivalTimeRmsInner = refenv.GetValue("RefArrivalTimeRmsInner",fRefArrivalTimeRmsInner); 1411 fRefArrivalTimeRmsOuter = refenv.GetValue("RefArrivalTimeRmsOuter",fRefArrivalTimeRmsOuter); 1412 1413 return kTRUE; 1385 1414 } 1386 1415 -
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r5561 r6065 64 64 static const Int_t gkThirdBlindPixelInstallation; //! Run number upon which third blind pixel was installed 65 65 66 static const Double_t fgConvFADC2PheMin; //! Histogram minimum for conversion factor to phes 67 static const Double_t fgConvFADC2PheMax; //! Histogram maximum for conversion factor to phes 68 static const Double_t fgConvFADC2PhotMin; //! Histogram minimum for conversion factor to phs 69 static const Double_t fgConvFADC2PhotMax; //! Histogram maixmum for conversion factor to phs 70 static const Double_t fgQEMin; //! Histogram minimum for quantum efficiency 71 static const Double_t fgQEMax; //! Histogram maximum for quantum efficiency 72 static const Double_t fgArrivalTimeMin; //! Histogram minimum for arrival times 73 static const Double_t fgArrivalTimeMax; //! Histogram maximum for arrival times 74 75 static const Float_t fgRefConvFADC2PheInner; //! Reference value for the conversion factor to phes - inner 76 static const Float_t fgRefConvFADC2PheOuter; //! Reference value for the conversion factor to phes - outer 77 static const Float_t fgRefConvFADC2PhotInner; //! Reference value for the conversion factor to phs - inner 78 static const Float_t fgRefConvFADC2PhotOuter; //! Reference value for the conversion factor to phs - outer 79 static const Float_t fgRefQEInner; //! Reference value for the quantum eff. cascades - inner 80 static const Float_t fgRefQEOuter; //! Reference value for the quantum eff. cascades - outer 81 static const Float_t fgRefArrivalTimeInner; //! Reference value for the arrival time - inner 82 static const Float_t fgRefArrivalTimeOuter; //! Reference value for the arrival time - outer 83 static const Float_t fgRefArrivalTimeRmsInner; //! Reference value for the arrival time - inner 84 static const Float_t fgRefArrivalTimeRmsOuter; //! Reference value for the arrival time - outer 66 static const TString fgReferenceFile; //! default for fReferenceFile ("mjobs/calibrationref.rc") 67 68 Double_t fConvFADC2PheMin; //! Histogram minimum for conversion factor to phes 69 Double_t fConvFADC2PheMax; //! Histogram maximum for conversion factor to phes 70 Double_t fConvFADC2PhotMin; //! Histogram minimum for conversion factor to phs 71 Double_t fConvFADC2PhotMax; //! Histogram maixmum for conversion factor to phs 72 Double_t fQEMin; //! Histogram minimum for quantum efficiency 73 Double_t fQEMax; //! Histogram maximum for quantum efficiency 74 Double_t fArrivalTimeMin; //! Histogram minimum for arrival times 75 Double_t fArrivalTimeMax; //! Histogram maximum for arrival times 76 77 Float_t fRefConvFADC2PheInner; //! Reference value for the conversion factor to phes - inner 78 Float_t fRefConvFADC2PheOuter; //! Reference value for the conversion factor to phes - outer 79 Float_t fRefConvFADC2PhotInner; //! Reference value for the conversion factor to phs - inner 80 Float_t fRefConvFADC2PhotOuter; //! Reference value for the conversion factor to phs - outer 81 Float_t fRefQEInner; //! Reference value for the quantum eff. cascades - inner 82 Float_t fRefQEOuter; //! Reference value for the quantum eff. cascades - outer 83 Float_t fRefArrivalTimeInner; //! Reference value for the arrival time - inner 84 Float_t fRefArrivalTimeOuter; //! Reference value for the arrival time - outer 85 Float_t fRefArrivalTimeRmsInner; //! Reference value for the arrival time - inner 86 Float_t fRefArrivalTimeRmsOuter; //! Reference value for the arrival time - outer 87 88 TString fReferenceFile; // File name containing the reference values 85 89 86 90 MRunIter *fRuns; // Calibration files … … 213 217 void SetHistsStorage ( const Bool_t b=kTRUE ) { b ? SETBIT(fStorage,kHistsStorage) : CLRBIT(fStorage,kHistsStorage); } 214 218 219 void SetReferenceFile( const TString ref=fgReferenceFile ) { fReferenceFile = ref; } 220 215 221 // Precessing 216 222 Bool_t ReadCalibrationCam();
Note:
See TracChangeset
for help on using the changeset viewer.