- Timestamp:
- 04/08/13 13:07:15 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r15241 r15278 260 260 void RawDataViewer::drawPixelCurve() 261 261 { 262 float xZoom, yZoom;263 xZoom = yZoom = 1.0f;264 262 float xRange = bboxMax[0] - bboxMin[0]; 265 263 float yRange = bboxMax[1] - bboxMin[1]; … … 377 375 fIsDrsCalibration = false; 378 376 SetAutoRefresh(true); 379 377 runType = "unkown"; 380 378 PixelMap mypMap; 381 379 if (!mypMap.Read("/swdev_nfs/FACT++/FACTmap111030.txt")) … … 597 595 runNumber = inputFile->HasKey("RUNID") ? inputFile->GetInt("RUNID") : -1; 598 596 nTM = inputFile->HasKey("NTMARK") ? inputFile->GetInt("NTMARK") : 0; 599 runType = inputFile->HasKey("RUNTYPE") ? inputFile->GetInt("RUNTYPE") : -1; 597 598 runType = "unkown"; 599 if (inputFile->HasKey("RUNTYPE")) 600 { 601 runType = inputFile->GetStr("RUNTYPE"); 602 if (runType == "") 603 runType = "unkown"; 604 } 600 605 firstDataTime = inputFile->HasKey("TSTART") ? inputFile->GetInt("TSTART") : -1; 601 606 lastDataTime = inputFile->HasKey("TSTOP") ? inputFile->GetInt("TSTOP"): -1; … … 751 756 catch (const runtime_error &e) 752 757 { 753 msg = e.what(); 754 } 755 758 msg = string("Something went wrong while loading Drs Calib: ") + e.what() + string(".. Aborting file loading"); 759 } 756 760 cerr << msg << endl; 757 761 fDrsCalib.Clear(); -
trunk/Mars/mcore/DrsCalib.h
r15013 r15278 1037 1037 fNumTm = file.HasKey("NTM") ? file.GetUInt("NTM") : 0; 1038 1038 1039 fDateObs = file.GetStr("DATE-OBS"); 1040 fDateEnd = file.GetStr("DATE-END"); 1041 1042 fDateRunBeg[0]= file.GetStr("RUN0-BEG"); 1043 fDateRunBeg[1]= file.GetStr("RUN1-BEG"); 1044 fDateRunBeg[2]= file.GetStr("RUN2-BEG"); 1045 fDateRunEnd[0]= file.GetStr("RUN0-END"); 1046 fDateRunEnd[1]= file.GetStr("RUN1-END"); 1047 fDateRunEnd[2]= file.GetStr("RUN2-END"); 1039 if (file.HasKey("DATE-OBS")) 1040 fDateObs = file.GetStr("DATE-OBS"); 1041 if (file.HasKey("DATE-END")) 1042 fDateEnd = file.GetStr("DATE-END"); 1043 1044 if (file.HasKey("RUN0-BEG")) 1045 fDateRunBeg[0]= file.GetStr("RUN0-BEG"); 1046 if (file.HasKey("RUN1-BEG")) 1047 fDateRunBeg[1]= file.GetStr("RUN1-BEG"); 1048 if (file.HasKey("RUN2-BEG")) 1049 fDateRunBeg[2]= file.GetStr("RUN2-BEG"); 1050 if (file.HasKey("RUN0-END")) 1051 fDateRunEnd[0]= file.GetStr("RUN0-END"); 1052 if (file.HasKey("RUN1-END")) 1053 fDateRunEnd[1]= file.GetStr("RUN1-END"); 1054 if (file.HasKey("RUN2-END")) 1055 fDateRunEnd[2]= file.GetStr("RUN2-END"); 1048 1056 /* 1049 1057 fDAC[0] = file.GetUInt("DAC_A");
Note:
See TracChangeset
for help on using the changeset viewer.