FACT++  1.0
void RawDataViewer::assignPixelMapFile ( const string &  map = "")

Definition at line 382 of file RawEventsViewer.cc.

References _softwareOrdering, BasicGlCamera::assignPixelMap(), color(), fZeroArray, i, patchesColor, and PixelMap::Read().

Referenced by getCurrentPixel(), and UIConnector::SetupConfiguration().

383 {
384  PixelMap mypMap;
385  if (map.empty())
386  {
387  if (!mypMap.Read("FACTmap111030.txt"))
388  {
389  if (!mypMap.Read("/swdev_nfs/FACT++/FACTmap111030.txt"))
390  {
391  if (!mypMap.Read("./FACTmap111030.txt"))
392  {
393  cerr << "ERROR - Problems reading FACTmap111030.txt" << endl;
394  exit(-1);
395  }
396  }
397  }
398  }
399  else
400  {
401  if (!mypMap.Read(map))
402  {
403  cerr << "ERROR - Problems reading mapping file '" << map << "'" << endl;
404  exit(-1);
405  }
406  }
407 
408  assignPixelMap(mypMap);
409 
410  for (int i=0;i<160;i++)
411  {
412  const float color[3] = { 0.5, 0.5, 0.3 };
413 
414  for (int j=0;j<3;j++)
415  patchesColor[i][j] = color[j];
416  }
417  fZeroArray = NULL;
418 
419  _softwareOrdering = false;
420 }
int i
Definition: db_dim_client.c:21
void assignPixelMap(const PixelMap &)
function color(col)
Definition: color.js:31
GLfloat patchesColor[160][3]
bool Read(const std::string &fname)
Definition: PixelMap.h:56

+ Here is the call graph for this function:

+ Here is the caller graph for this function: