Changeset 11077 for fact/FADctrl


Ignore:
Timestamp:
06/19/11 14:12:42 (13 years ago)
Author:
ogrimm
Message:
Fixed bug in active board selection for data writing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FAD.cc

    r10980 r11077  
    847847  vector<unsigned long> EventNumbers(Boards.size());
    848848  vector<bool> AcalibDone(Boards.size());
    849   map<unsigned int, class FADBoard *> ActiveBoards;
     849  vector<class FADBoard *> ActiveBoards;
    850850  double Temp;
    851851  string IDString;
     
    912912        if (Mode == idle) {
    913913          ActiveBoards.clear();
    914           for (unsigned int i=0; i<Boards.size(); i++) if (Boards[i]->Active) ActiveBoards[i] = Boards[i];
     914          for (unsigned int i=0; i<Boards.size(); i++) if (Boards[i]->Active) ActiveBoards.push_back(Boards[i]);
    915915          RHeader->NBoards = ActiveBoards.size();
    916916         
     
    949949        // Check all boards that have new data
    950950        for (unsigned int Brd=0; Brd<ActiveBoards.size(); Brd++) {
    951           if (IDString.find(string("EVENT")+Boards[Brd]->Name) == string::npos) continue;
     951          if (IDString.find(string("EVENT")+ActiveBoards[Brd]->Name) == string::npos) continue;
    952952
    953953          // Fill M0 BoardStructure             
Note: See TracChangeset for help on using the changeset viewer.