3 #include <mvtx/MvtxDefs.h>
58 clusters_ = findNode::getClass<TrkrClusterContainer>(topNode,
"TRKR_CLUSTER");
61 cout <<
PHWHERE <<
"ERROR: Can't find node TRKR_CLUSTER" << endl;
70 iter != clusrange.second;
86 cout <<
" applying alignment to " << endl;
91 clus->
setX(clus->
getX() - (aligniter->second).dx);
92 clus->
setY(clus->
getY() - (aligniter->second).
dy);
93 clus->
setZ(clus->
getZ() - (aligniter->second).
dz);
117 cout <<
PHWHERE <<
" WARNING: overwriting existing misalignment for"
118 <<
" key:0x" << hex << key << dec << endl;
120 (iter->second).dx = dx;
121 (iter->second).dy = dy;
122 (iter->second).dz = dz;
135 cout <<
PHWHERE <<
" Added alignment pars:"
136 <<
" key:0x" << hex << key << dec
150 os <<
"=============================================================" << endl;
151 os <<
"== " <<
PHWHERE <<
"==" << endl;
152 os <<
"=============================================================" << endl;
158 os <<
" key:0x" << hex << iter->first << dec
159 <<
" dx:" << (iter->second).dx
160 <<
" dy:" << (iter->second).dy
161 <<
" dz:" << (iter->second).
dz
165 os <<
"=============================================================" << endl;
171 string flname(
fdir_);
175 sprintf(fname,
"beamcenter_%08d.txt",
runnumber_);
186 cout <<
PHWHERE <<
" Reading alignment parameters from " << flname << endl;
194 while ( getline(fin, line) )
199 sscanf(line.c_str(),
"%d %d %f %f %f", &lyr, &stave, &bcx, &bcy, &bcz);
213 for (
int chip = 0; chip < 9; ++chip )
217 double(bcx),
double(bcy),
double(bcz));
223 cout <<
PHWHERE <<
"ERROR: Unable to open file " << flname << endl;