7#include "calibUtil/StripSrv.h"
8#include "facilities/Util.h"
21 unsigned int tray,
bool top,
22 int badness,
bool allBad,
23 const StripCol& strips);
26int main(
int argc,
char* argv[]) {
29 std::string name =
"$(CALIBUTILROOT)/xml/test/testHot.xml";
32 name = std::string((argv[1]));
38 std::vector<StripSrv::towerRC> trc;
39 ssObj.getBadTowers(trc);
40 for (
unsigned int i = 0; i < trc.size(); i++ ) {
41 std::cout <<
"Tower id is (" << trc[i].row <<
", " << trc[i].col;
42 std::cout <<
")" << std::endl;
45 std::cout << std::endl;
47 std::cout<<
"Bad type is " << (int) ssObj.getBadType() << std::endl;
49 std::cout <<
"calType name is " << ssObj.getCalType() << std::endl;
52 ssObj.traverseInfo(&cli);
62 std::cout <<
"MyObject::badTower called back for tower (" << row
63 <<
", " << col <<
") badness = " << badness << std::endl;
68 unsigned int tray,
bool top,
69 int badness,
bool allBad,
72 std::cout <<
"MyObject::badPlane called back for tower (" << row
73 <<
", " << col <<
") tray = " << tray <<
" top = "
75 std::cout <<
"badness = " << badness <<
" allBad = " << allBad << std::endl;
76 std::cout <<
"#strips in strip collection = " << strips.size() << std::endl;
static int expandEnvVar(std::string *toExpand, const std::string &openDel=std::string("$("), const std::string &closeDel=std::string(")"))
std::vector< unsigned short int > StripCol