- Timestamp:
- 08/21/13 16:55:27 (11 years ago)
- Location:
- trunk/FACT++/gui/RawEventsViewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r17008 r17036 376 376 SetAutoRefresh(true); 377 377 runType = "unkown"; 378 379 380 } 381 382 void RawDataViewer::assignPixelMapFile(const string& map) 383 { 378 384 PixelMap mypMap; 379 if (!mypMap.Read("/swdev_nfs/FACT++/FACTmap111030.txt")) 380 { 381 cerr << "ERROR - Problems reading FACTmap111030.txt" << endl; 382 exit(-1); 385 if (map=="") 386 { 387 if (!mypMap.Read("/swdev_nfs/FACT++/FACTmap111030.txt")) 388 { 389 if (!mypMap.Read("./FACTmap111030.txt")) 390 { 391 cerr << "ERROR - Problems reading FACTmap111030.txt" << endl; 392 exit(-1); 393 } 394 } 395 } 396 else 397 { 398 if (!mypMap.Read(map)) 399 { 400 cerr << "ERROR - Problems reading " << map << endl; 401 exit(-1); 402 } 383 403 } 384 404 … … 395 415 396 416 _softwareOrdering = false; 397 398 417 } 399 418 /************************************************************ … … 2244 2263 RawDataViewer *canvas = GLWindow; 2245 2264 2265 if (conf.Has("mappingFile")) 2266 { 2267 canvas->assignPixelMapFile(conf.Get<string>("mappingFile")); 2268 } 2269 else 2270 canvas->assignPixelMapFile(""); 2271 2246 2272 if (conf.Has("color.range")) 2247 2273 { … … 2339 2365 ("file,f", var<string>(), "File to be loaded") 2340 2366 ("drs,d", var<string>(), "DRS calibration file to be loaded") 2367 ("mappingFile", var<string>(), "Which pixels mapping file to use") 2341 2368 ; 2342 2369 conf.AddOptions(configs); -
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h
r15279 r17036 59 59 const int roiTM); 60 60 int getCurrentPixel(){return selectedPixel;} 61 void assignPixelMapFile(const string& map=""); 61 62 public Q_SLOTS: 62 63 void plusEvent();
Note:
See TracChangeset
for help on using the changeset viewer.