CMS 3D CMS Logo

Functions
HcalTBEventPosition.cc File Reference
#include "TBDataFormats/HcalTBObjects/interface/HcalTBEventPosition.h"
#include <cstdio>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &s, const HcalTBEventPosition &htbep)
 

Function Documentation

◆ operator<<()

ostream& operator<< ( ostream &  s,
const HcalTBEventPosition htbep 
)

Definition at line 120 of file HcalTBEventPosition.cc.

120  {
121  s << "HF Table (X,Y,V) = (" << htbep.hfTableX() << "," << htbep.hfTableY() << "," << htbep.hfTableV() << ")"
122  << std::endl;
123  s << "HB/HE Table (eta,phi) = (" << htbep.hbheTableEta() << "," << htbep.hbheTablePhi() << ")" << std::endl;
124 
125  vector<double> xvec, yvec;
126  vector<double>::const_iterator j;
127 
128  htbep.getChamberHits('A', xvec, yvec);
129 
130  s << "WC Ax: ";
131  for (j = xvec.begin(); j != xvec.end(); j++) {
132  if (j != xvec.begin())
133  s << ", ";
134  s << *j;
135  }
136  s << endl;
137 
138  s << "WC Ay: ";
139  for (j = yvec.begin(); j != yvec.end(); j++) {
140  if (j != yvec.begin())
141  s << ", ";
142  s << *j;
143  }
144  s << endl;
145 
146  htbep.getChamberHits('B', xvec, yvec);
147 
148  s << "WC Bx: ";
149  for (j = xvec.begin(); j != xvec.end(); j++) {
150  if (j != xvec.begin())
151  s << ", ";
152  s << *j;
153  }
154  s << endl;
155 
156  s << "WC By: ";
157  for (j = yvec.begin(); j != yvec.end(); j++) {
158  if (j != yvec.begin())
159  s << ", ";
160  s << *j;
161  }
162  s << endl;
163 
164  htbep.getChamberHits('C', xvec, yvec);
165 
166  s << "WC Cx: ";
167  for (j = xvec.begin(); j != xvec.end(); j++) {
168  if (j != xvec.begin())
169  s << ", ";
170  s << *j;
171  }
172  s << endl;
173 
174  s << "WC Cy: ";
175  for (j = yvec.begin(); j != yvec.end(); j++) {
176  if (j != yvec.begin())
177  s << ", ";
178  s << *j;
179  }
180  s << endl;
181 
182  htbep.getChamberHits('D', xvec, yvec);
183 
184  s << "WC Dx: ";
185  for (j = xvec.begin(); j != xvec.end(); j++) {
186  if (j != xvec.begin())
187  s << ", ";
188  s << *j;
189  }
190  s << endl;
191 
192  s << "WC Dy: ";
193  for (j = yvec.begin(); j != yvec.end(); j++) {
194  if (j != yvec.begin())
195  s << ", ";
196  s << *j;
197  }
198  s << endl;
199 
200  htbep.getChamberHits('E', xvec, yvec);
201 
202  s << "WC Ex: ";
203  for (j = xvec.begin(); j != xvec.end(); j++) {
204  if (j != xvec.begin())
205  s << ", ";
206  s << *j;
207  }
208  s << endl;
209 
210  s << "WC Ey: ";
211  for (j = yvec.begin(); j != yvec.end(); j++) {
212  if (j != yvec.begin())
213  s << ", ";
214  s << *j;
215  }
216  s << endl;
217 
218  htbep.getChamberHits('F', xvec, yvec);
219 
220  s << "WC Fx: ";
221  for (j = xvec.begin(); j != xvec.end(); j++) {
222  if (j != xvec.begin())
223  s << ", ";
224  s << *j;
225  }
226  s << endl;
227 
228  s << "WC Fy: ";
229  for (j = yvec.begin(); j != yvec.end(); j++) {
230  if (j != yvec.begin())
231  s << ", ";
232  s << *j;
233  }
234  s << endl;
235 
236  htbep.getChamberHits('G', xvec, yvec);
237 
238  s << "WC Gx: ";
239  for (j = xvec.begin(); j != xvec.end(); j++) {
240  if (j != xvec.begin())
241  s << ", ";
242  s << *j;
243  }
244  s << endl;
245 
246  s << "WC Gy: ";
247  for (j = yvec.begin(); j != yvec.end(); j++) {
248  if (j != yvec.begin())
249  s << ", ";
250  s << *j;
251  }
252  s << endl;
253 
254  htbep.getChamberHits('H', xvec, yvec);
255 
256  s << "WC Hx: ";
257  for (j = xvec.begin(); j != xvec.end(); j++) {
258  if (j != xvec.begin())
259  s << ", ";
260  s << *j;
261  }
262  s << endl;
263 
264  s << "WC Hy: ";
265  for (j = yvec.begin(); j != yvec.end(); j++) {
266  if (j != yvec.begin())
267  s << ", ";
268  s << *j;
269  }
270  s << endl;
271 
272  return s;
273 }

References HcalTBEventPosition::getChamberHits(), HcalTBEventPosition::hbheTableEta(), HcalTBEventPosition::hbheTablePhi(), HcalTBEventPosition::hfTableV(), HcalTBEventPosition::hfTableX(), HcalTBEventPosition::hfTableY(), dqmiolumiharvest::j, and alignCSCRings::s.

HcalTBEventPosition::hbheTableEta
double hbheTableEta() const
Get the eta (not ieta) position of the HB/HE/HO table (if present in this run)
Definition: HcalTBEventPosition.h:30
HcalTBEventPosition::hfTableX
double hfTableX() const
Get the X position (mm) of the HF table (if present in this run)
Definition: HcalTBEventPosition.h:24
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalTBEventPosition::getChamberHits
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,...
Definition: HcalTBEventPosition.cc:29
HcalTBEventPosition::hfTableV
double hfTableV() const
Get the V position of the HF table (if present in this run)
Definition: HcalTBEventPosition.h:28
HcalTBEventPosition::hbheTablePhi
double hbheTablePhi() const
Get the phi (not iphi) position of the HB/HE/HO table (if present in this run)
Definition: HcalTBEventPosition.h:32
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
HcalTBEventPosition::hfTableY
double hfTableY() const
Get the Y position (mm) of the HF table (if present in this run)
Definition: HcalTBEventPosition.h:26