#include "TBDataFormats/HcalTBObjects/interface/HcalTBEventPosition.h"
#include <cstdio>
Go to the source code of this file.
Functions | |
ostream & | operator<< (ostream &s, const HcalTBEventPosition &htbep) |
ostream& operator<< | ( | ostream & | s, |
const HcalTBEventPosition & | htbep | ||
) |
Definition at line 77 of file HcalTBEventPosition.cc.
References HcalTBEventPosition::getChamberHits(), HcalTBEventPosition::hbheTableEta(), HcalTBEventPosition::hbheTablePhi(), HcalTBEventPosition::hfTableV(), HcalTBEventPosition::hfTableX(), HcalTBEventPosition::hfTableY(), j, and asciidump::s.
{ char str[180]; snprintf (str,180, "HF Table (X,Y,V) = (%f,%f,%f)\n", htbep.hfTableX(),htbep.hfTableY(),htbep.hfTableV()); s << str; snprintf (str, 180, "HB/HE Table (eta,phi) = (%f,%f)\n", htbep.hbheTableEta(),htbep.hbheTablePhi()); s << str; vector<double> xvec, yvec; vector<double>::const_iterator j; htbep.getChamberHits('A', xvec, yvec); s << "WC Ax: "; for (j=xvec.begin(); j!=xvec.end(); j++) { if (j!=xvec.begin()) s << ", "; s << *j; } s << endl; s << "WC Ay: "; for (j=yvec.begin(); j!=yvec.end(); j++) { if (j!=yvec.begin()) s << ", "; s << *j; } s << endl; htbep.getChamberHits('B', xvec, yvec); s << "WC Bx: "; for (j=xvec.begin(); j!=xvec.end(); j++) { if (j!=xvec.begin()) s << ", "; s << *j; } s << endl; s << "WC By: "; for (j=yvec.begin(); j!=yvec.end(); j++) { if (j!=yvec.begin()) s << ", "; s << *j; } s << endl; htbep.getChamberHits('C', xvec, yvec); s << "WC Cx: "; for (j=xvec.begin(); j!=xvec.end(); j++) { if (j!=xvec.begin()) s << ", "; s << *j; } s << endl; s << "WC Cy: "; for (j=yvec.begin(); j!=yvec.end(); j++) { if (j!=yvec.begin()) s << ", "; s << *j; } s << endl; htbep.getChamberHits('D', xvec, yvec); s << "WC Dx: "; for (j=xvec.begin(); j!=xvec.end(); j++) { if (j!=xvec.begin()) s << ", "; s << *j; } s << endl; s << "WC Dy: "; for (j=yvec.begin(); j!=yvec.end(); j++) { if (j!=yvec.begin()) s << ", "; s << *j; } s << endl; htbep.getChamberHits('E', xvec, yvec); s << "WC Ex: "; for (j=xvec.begin(); j!=xvec.end(); j++) { if (j!=xvec.begin()) s << ", "; s << *j; } s << endl; s << "WC Ey: "; for (j=yvec.begin(); j!=yvec.end(); j++) { if (j!=yvec.begin()) s << ", "; s << *j; } s << endl; htbep.getChamberHits('F', xvec, yvec); s << "WC Fx: "; for (j=xvec.begin(); j!=xvec.end(); j++) { if (j!=xvec.begin()) s << ", "; s << *j; } s << endl; s << "WC Fy: "; for (j=yvec.begin(); j!=yvec.end(); j++) { if (j!=yvec.begin()) s << ", "; s << *j; } s << endl; htbep.getChamberHits('G', xvec, yvec); s << "WC Gx: "; for (j=xvec.begin(); j!=xvec.end(); j++) { if (j!=xvec.begin()) s << ", "; s << *j; } s << endl; s << "WC Gy: "; for (j=yvec.begin(); j!=yvec.end(); j++) { if (j!=yvec.begin()) s << ", "; s << *j; } s << endl; htbep.getChamberHits('H', xvec, yvec); s << "WC Hx: "; for (j=xvec.begin(); j!=xvec.end(); j++) { if (j!=xvec.begin()) s << ", "; s << *j; } s << endl; s << "WC Hy: "; for (j=yvec.begin(); j!=yvec.end(); j++) { if (j!=yvec.begin()) s << ", "; s << *j; } s << endl; return s; }