CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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 alignCSCRings::s.

77  {
78  s << "HF Table (X,Y,V) = (" << htbep.hfTableX() << "," << htbep.hfTableY() << "," << htbep.hfTableV() << ")" << std::endl;
79  s << "HB/HE Table (eta,phi) = (" << htbep.hbheTableEta() << "," << htbep.hbheTablePhi() << ")" << std::endl;
80 
81  vector<double> xvec, yvec;
82  vector<double>::const_iterator j;
83 
84  htbep.getChamberHits('A', xvec, yvec);
85 
86  s << "WC Ax: ";
87  for (j=xvec.begin(); j!=xvec.end(); j++) {
88  if (j!=xvec.begin()) s << ", ";
89  s << *j;
90  }
91  s << endl;
92 
93  s << "WC Ay: ";
94  for (j=yvec.begin(); j!=yvec.end(); j++) {
95  if (j!=yvec.begin()) s << ", ";
96  s << *j;
97  }
98  s << endl;
99 
100  htbep.getChamberHits('B', xvec, yvec);
101 
102  s << "WC Bx: ";
103  for (j=xvec.begin(); j!=xvec.end(); j++) {
104  if (j!=xvec.begin()) s << ", ";
105  s << *j;
106  }
107  s << endl;
108 
109  s << "WC By: ";
110  for (j=yvec.begin(); j!=yvec.end(); j++) {
111  if (j!=yvec.begin()) s << ", ";
112  s << *j;
113  }
114  s << endl;
115 
116  htbep.getChamberHits('C', xvec, yvec);
117 
118  s << "WC Cx: ";
119  for (j=xvec.begin(); j!=xvec.end(); j++) {
120  if (j!=xvec.begin()) s << ", ";
121  s << *j;
122  }
123  s << endl;
124 
125  s << "WC Cy: ";
126  for (j=yvec.begin(); j!=yvec.end(); j++) {
127  if (j!=yvec.begin()) s << ", ";
128  s << *j;
129  }
130  s << endl;
131 
132  htbep.getChamberHits('D', xvec, yvec);
133 
134  s << "WC Dx: ";
135  for (j=xvec.begin(); j!=xvec.end(); j++) {
136  if (j!=xvec.begin()) s << ", ";
137  s << *j;
138  }
139  s << endl;
140 
141  s << "WC Dy: ";
142  for (j=yvec.begin(); j!=yvec.end(); j++) {
143  if (j!=yvec.begin()) s << ", ";
144  s << *j;
145  }
146  s << endl;
147 
148  htbep.getChamberHits('E', xvec, yvec);
149 
150  s << "WC Ex: ";
151  for (j=xvec.begin(); j!=xvec.end(); j++) {
152  if (j!=xvec.begin()) s << ", ";
153  s << *j;
154  }
155  s << endl;
156 
157  s << "WC Ey: ";
158  for (j=yvec.begin(); j!=yvec.end(); j++) {
159  if (j!=yvec.begin()) s << ", ";
160  s << *j;
161  }
162  s << endl;
163 
164  htbep.getChamberHits('F', xvec, yvec);
165 
166  s << "WC Fx: ";
167  for (j=xvec.begin(); j!=xvec.end(); j++) {
168  if (j!=xvec.begin()) s << ", ";
169  s << *j;
170  }
171  s << endl;
172 
173  s << "WC Fy: ";
174  for (j=yvec.begin(); j!=yvec.end(); j++) {
175  if (j!=yvec.begin()) s << ", ";
176  s << *j;
177  }
178  s << endl;
179 
180  htbep.getChamberHits('G', xvec, yvec);
181 
182  s << "WC Gx: ";
183  for (j=xvec.begin(); j!=xvec.end(); j++) {
184  if (j!=xvec.begin()) s << ", ";
185  s << *j;
186  }
187  s << endl;
188 
189  s << "WC Gy: ";
190  for (j=yvec.begin(); j!=yvec.end(); j++) {
191  if (j!=yvec.begin()) s << ", ";
192  s << *j;
193  }
194  s << endl;
195 
196  htbep.getChamberHits('H', xvec, yvec);
197 
198  s << "WC Hx: ";
199  for (j=xvec.begin(); j!=xvec.end(); j++) {
200  if (j!=xvec.begin()) s << ", ";
201  s << *j;
202  }
203  s << endl;
204 
205  s << "WC Hy: ";
206  for (j=yvec.begin(); j!=yvec.end(); j++) {
207  if (j!=yvec.begin()) s << ", ";
208  s << *j;
209  }
210  s << endl;
211 
212  return s;
213  }
double hfTableY() const
Get the Y position (mm) of the HF table (if present in this run)
int j
Definition: DBlmapReader.cc:9
double hfTableV() const
Get the V position of the HF table (if present in this run)
double hbheTableEta() const
Get the eta (not ieta) position of the HB/HE/HO table (if present in this run)
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...
double hbheTablePhi() const
Get the phi (not iphi) position of the HB/HE/HO table (if present in this run)
double hfTableX() const
Get the X position (mm) of the HF table (if present in this run)