CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
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

◆ main()

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

Definition at line 26 of file test_strips.cxx.

26 {
28
29 std::string name = "$(CALIBUTILROOT)/xml/test/testHot.xml";
30
31 if (argc > 1) {
32 name = std::string((argv[1]));
33 }
35
36 StripSrv ssObj(name);
37
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;
43
44 }
45 std::cout << std::endl;
46
47 std::cout<< "Bad type is " << (int) ssObj.getBadType() << std::endl;
48
49 std::cout << "calType name is " << ssObj.getCalType() << std::endl;
50
51 MyObject cli;
52 ssObj.traverseInfo(&cli);
53
54 return(0);
55
56} /* end of main */
file for sample client
Definition: MyObject.h:10
static int expandEnvVar(std::string *toExpand, const std::string &openDel=std::string("$("), const std::string &closeDel=std::string(")"))