BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
test_strips.cxx File Reference
#include "calibUtil/StripSrv.h"
#include "facilities/Util.h"
#include <fstream>
#include <iostream>
#include <string>

Go to the source code of this file.

Classes

class  MyObject
 file for sample client More...

Typedefs

typedef std::vector< unsigned short int > StripCol

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.

Typedef Documentation

◆ StripCol

typedef std::vector< unsigned short int > calibUtil::StripCol

Function Documentation

◆ main()

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

Definition at line 25 of file test_strips.cxx.

25 {
27
28 std::string name = "$(CALIBUTILROOT)/xml/test/testHot.xml";
29
30 if ( argc > 1 ) { name = std::string( ( argv[1] ) ); }
32
33 StripSrv ssObj( name );
34
35 std::vector<StripSrv::towerRC> trc;
36 ssObj.getBadTowers( trc );
37 for ( unsigned int i = 0; i < trc.size(); i++ )
38 {
39 std::cout << "Tower id is (" << trc[i].row << ", " << trc[i].col;
40 std::cout << ")" << std::endl;
41 }
42 std::cout << std::endl;
43
44 std::cout << "Bad type is " << (int)ssObj.getBadType() << std::endl;
45
46 std::cout << "calType name is " << ssObj.getCalType() << std::endl;
47
48 MyObject cli;
49 ssObj.traverseInfo( &cli );
50
51 return ( 0 );
52
53} /* end of main */
file for sample client
Definition MyObject.h:11
static int expandEnvVar(std::string *toExpand, const std::string &openDel=std::string("$("), const std::string &closeDel=std::string(")"))