3 #include <mvtx/MvtxDefUtil.h>
55 clusters_ = findNode::getClass<TrkrClusterContainer>(topNode,
"TrkrClusterContainer");
58 cout <<
PHWHERE <<
"ERROR: Can't find node TrkrClusterContainer" << endl;
69 iter != clusrange.second;
85 cout <<
" applying alignment to " << endl;
90 clus->SetX(clus->GetX() + (aligniter->second).dx);
91 clus->SetY(clus->GetY() + (aligniter->second).
dy);
92 clus->SetZ(clus->GetZ() + (aligniter->second).
dz);
116 cout <<
PHWHERE <<
" WARNING: overwriting existing misalignment for"
117 <<
" key:0x" << hex << key << dec << endl;
119 (iter->second).dx = dx;
120 (iter->second).dy = dy;
121 (iter->second).dz = dz;
134 cout <<
PHWHERE <<
" Added alignment pars:"
135 <<
" key:0x" << hex << key << dec
149 os <<
"=============================================================" << endl;
150 os <<
"== " <<
PHWHERE <<
"==" << endl;
151 os <<
"=============================================================" << endl;
157 os <<
" key:0x" << hex << iter->first << dec
158 <<
" dx:" << (iter->second).dx
159 <<
" dy:" << (iter->second).dy
160 <<
" dz:" << (iter->second).
dz
164 os <<
"=============================================================" << endl;
177 cout <<
PHWHERE <<
" Reading alignment parameters from " << fname << endl;
181 static bool is_first =
true;
185 while ( getline(fin, line) )
187 int lyr, stave, chip;
190 sscanf(line.c_str(),
"%d %d %d %f %f %f", &lyr, &stave, &chip, &bcx, &bcy, &bcz);
200 double dx = bc0_x - bcx;
201 double dy = bc0_y - bcy;
202 double dz = bc0_z - bcz;
205 util.GenHitSetKey(lyr, stave, chip),
211 cout <<
PHWHERE <<
"ERROR: Unable to open file " << fname << endl;