Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 14 of file test_anodeplane.cxx.
23 auto iap = Factory::find_tn<IAnodePlane>(anode_tn);
24 auto chans = iap->channels();
25 cerr <<
"Anode " << anode_tn <<
" with " << chans.size() <<
" channels:\n";
27 for (
auto face : iap->faces()) {
28 cerr <<
"face: " << face->ident() <<
"\n";
29 std::vector<float> originx;
30 for (
auto plane : face->planes()) {
31 cerr <<
"\tplane: " << plane->ident() <<
"\n";
33 auto pimpos = plane->pimpos();
35 for (
int axis : {0,1,2}) {
42 float diff =
std::abs(originx.front() - originx.back());
44 cerr <<
"ERROR, field response and wire location data do not match: diff = " << diff/
units::mm <<
"mm\n";
45 cerr <<
"front: " << originx.front()/
units::mm <<
"mm, back=" << originx.back()/
units::mm<<
"mm out of " << originx.size() <<
endl;
boost::error_info< struct tag_errmsg, std::string > errmsg
const Point & origin() const
Return given 3-point origin for plane pitch.
std::vector< std::string > anode_loader(std::string detector)
Thrown when a wrong value has been encountered.
Pimpos pimpos(nwires, min_wire_pitch, max_wire_pitch)
const Vector & axis(int i) const
QTextStream & endl(QTextStream &s)