/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Calibration/calibUtil/calibUtil-00-00-43/src/test/test_strips.cxx File Reference

#include "calibUtil/StripSrv.h"
#include "facilities/Util.h"
#include <string>
#include <iostream>
#include <fstream>

Go to the source code of this file.

Classes

class  MyObject
 file for sample client More...

Functions

int main (int argc, char *argv[])


Detailed Description

Sample program to exercise low-level calibration strip services. Optional argument is path to file using badStrips.dtd. If omitted, use file $CALIBUTILROOT/xml/test/testHot.xml

Definition in file test_strips.cxx.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 26 of file test_strips.cxx.

References genRecEmupikp::i, and deljobs::string.

00026                                  {
00027   using calibUtil::StripSrv;
00028 
00029   std::string name = "$(CALIBUTILROOT)/xml/test/testHot.xml";
00030   
00031   if (argc > 1) {
00032     name = std::string((argv[1]));
00033   }
00034   facilities::Util::expandEnvVar(&name);
00035 
00036   StripSrv ssObj(name);
00037 
00038   std::vector<StripSrv::towerRC> trc;
00039   ssObj.getBadTowers(trc);   
00040   for (unsigned int i = 0; i < trc.size(); i++ ) {
00041     std::cout << "Tower id is (" << trc[i].row << ", " << trc[i].col;
00042     std::cout << ")" << std::endl;
00043 
00044   }
00045   std::cout << std::endl;
00046 
00047   std::cout<< "Bad type is " << (int) ssObj.getBadType() << std::endl;
00048 
00049   std::cout << "calType name is " << ssObj.getCalType() << std::endl;
00050 
00051   MyObject cli;
00052   ssObj.traverseInfo(&cli);
00053 
00054   return(0);
00055 
00056 } /* end of main */


Generated on Tue Nov 29 23:14:52 2016 for BOSS_7.0.2 by  doxygen 1.4.7