32 vector<double>& yvec )
const {
34 case 'A': xvec =
ax_; yvec =
ay_;
break;
35 case 'B': xvec =
bx_; yvec =
by_;
break;
36 case 'C': xvec =
cx_; yvec =
cy_;
break;
37 case 'D': xvec =
dx_; yvec =
dy_;
break;
38 case 'E': xvec =
ex_; yvec =
ey_;
break;
39 case 'F': xvec =
fx_; yvec =
fy_;
break;
40 case 'G': xvec =
gx_; yvec =
gy_;
break;
41 case 'H': xvec =
hx_; yvec =
hy_;
break;
43 cerr <<
"Unrecognized chamber character " << chamberch << endl;
49 const vector<double>& xvec,
50 const vector<double>& yvec ) {
52 case 'A':
ax_ = xvec;
ay_ = yvec;
break;
53 case 'B':
bx_ = xvec;
by_ = yvec;
break;
54 case 'C':
cx_ = xvec;
cy_ = yvec;
break;
55 case 'D':
dx_ = xvec;
dy_ = yvec;
break;
56 case 'E':
ex_ = xvec;
ey_ = yvec;
break;
57 case 'F':
fx_ = xvec;
fy_ = yvec;
break;
58 case 'G':
gx_ = xvec;
gy_ = yvec;
break;
59 case 'H':
hx_ = xvec;
hy_ = yvec;
break;
61 cerr <<
"Unrecognized chamber character " << chamberch << endl;
80 snprintf (str,180,
"HF Table (X,Y,V) = (%f,%f,%f)\n",
84 snprintf (str, 180,
"HB/HE Table (eta,phi) = (%f,%f)\n",
88 vector<double> xvec, yvec;
89 vector<double>::const_iterator
j;
94 for (j=xvec.begin(); j!=xvec.end(); j++) {
95 if (j!=xvec.begin()) s <<
", ";
101 for (j=yvec.begin(); j!=yvec.end(); j++) {
102 if (j!=yvec.begin()) s <<
", ";
110 for (j=xvec.begin(); j!=xvec.end(); j++) {
111 if (j!=xvec.begin()) s <<
", ";
117 for (j=yvec.begin(); j!=yvec.end(); j++) {
118 if (j!=yvec.begin()) s <<
", ";
126 for (j=xvec.begin(); j!=xvec.end(); j++) {
127 if (j!=xvec.begin()) s <<
", ";
133 for (j=yvec.begin(); j!=yvec.end(); j++) {
134 if (j!=yvec.begin()) s <<
", ";
142 for (j=xvec.begin(); j!=xvec.end(); j++) {
143 if (j!=xvec.begin()) s <<
", ";
149 for (j=yvec.begin(); j!=yvec.end(); j++) {
150 if (j!=yvec.begin()) s <<
", ";
158 for (j=xvec.begin(); j!=xvec.end(); j++) {
159 if (j!=xvec.begin()) s <<
", ";
165 for (j=yvec.begin(); j!=yvec.end(); j++) {
166 if (j!=yvec.begin()) s <<
", ";
174 for (j=xvec.begin(); j!=xvec.end(); j++) {
175 if (j!=xvec.begin()) s <<
", ";
181 for (j=yvec.begin(); j!=yvec.end(); j++) {
182 if (j!=yvec.begin()) s <<
", ";
190 for (j=xvec.begin(); j!=xvec.end(); j++) {
191 if (j!=xvec.begin()) s <<
", ";
197 for (j=yvec.begin(); j!=yvec.end(); j++) {
198 if (j!=yvec.begin()) s <<
", ";
206 for (j=xvec.begin(); j!=xvec.end(); j++) {
207 if (j!=xvec.begin()) s <<
", ";
213 for (j=yvec.begin(); j!=yvec.end(); j++) {
214 if (j!=yvec.begin()) s <<
", ";
std::vector< double > gx_
std::vector< double > ex_
void setChamberHits(char chamberch, const std::vector< double > &xvec, const std::vector< double > &yvec)
std::vector< double > dx_
std::vector< double > by_
std::ostream & operator<<(std::ostream &out, const ALILine &li)
std::vector< double > hy_
double hfTableY() const
Get the Y position (mm) of the HF table (if present in this run)
void setHBHEtableCoords(double eta, double phi)
std::vector< double > fy_
std::vector< double > cx_
std::vector< double > hx_
double hfTableV() const
Get the V position of the HF table (if present in this run)
std::vector< double > ey_
std::vector< double > dy_
double hbheTableEta() const
Get the eta (not ieta) position of the HB/HE/HO table (if present in this run)
std::vector< double > bx_
std::vector< double > ax_
void setHFtableCoords(double x, double y, double v)
void getChamberHits(char chamberch, std::vector< double > &xvec, std::vector< double > &yvec) const
Get the wire chamber hits for the specified chamber For HB/HE/HO running, chambers A...
std::vector< double > cy_
HcalTBEventPosition()
Null constructor.
double hbheTablePhi() const
Get the phi (not iphi) position of the HB/HE/HO table (if present in this run)
std::vector< double > gy_
std::vector< double > fx_
std::vector< double > ay_
double hfTableX() const
Get the X position (mm) of the HF table (if present in this run)