[Bio] / MExplorer / MExplorer.cc Repository:
ViewVC logotype

Diff of /MExplorer/MExplorer.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2, Thu Jan 30 00:13:12 2003 UTC revision 1.3, Thu May 8 18:11:53 2003 UTC
# Line 10  Line 10 
10  #include "RecoReadout/RecoElem.hh"  #include "RecoReadout/RecoElem.hh"
11  #include "RecoReadout/Reaction.hh"  #include "RecoReadout/Reaction.hh"
12    
 #include "RecoReadoutOracle/EFRecoElemImpl.hh"  
13  #include "RecoReadoutOracle/OracleMgr.hh"  #include "RecoReadoutOracle/OracleMgr.hh"
14    #include "RecoReadoutOracle/BssFactory.hh"
15    
16  void printKids( RecoElem& r );  void printKids( RecoElem& r );
17    
# Line 27  Line 27 
27    // to mess with.    // to mess with.
28    
29    OracleMgr::mgr().startJob();    OracleMgr::mgr().startJob();
30    RecoElem recoTop( new EFRecoElemImpl(  "E. coli top", 10000) );    BssFactory  bssFactory;
31      RecoElem* recoTop = bssFactory.getRecoElemById( 10000 );
32    
33    // OK.  Mess with it.  Get its kids and print them out.    // OK.  Mess with it.  Get its kids and print them out.
34    
35    printKids( recoTop );    printKids( *recoTop );
36    
37    // Now go into loop letting person choose a kid to be the new    // Now go into loop letting person choose a kid to be the new
38    // location in the tree.    // location in the tree.
39    
40    unsigned int selected = 1;    unsigned int selected = 1;
41    RecoElem* loc = &recoTop;    RecoElem* loc = recoTop;
42    
43    while ( -1 != selected ) {    while ( -1 != selected ) {
44      cout << endl << "Choose number of child to expand (-1 to exit)." << endl;      cout << endl << "Choose number of child to expand (-1 to exit)." << endl;
# Line 56  Line 57 
57    
58    
59    OracleMgr::mgr().endJob();    OracleMgr::mgr().endJob();
60      delete recoTop;
61    return 0;    return 0;
62  }  }
63    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3