23 for (
int stationCounter = 0; stationCounter < 4; stationCounter++) {
24 for (
int sectorCounter = 0; sectorCounter < 14; sectorCounter++) {
25 if (
chambers[stationCounter][sectorCounter]->getNumberPoints() > 2) {
37 for (
int cont_stat = 0; cont_stat < 4; cont_stat++) {
39 for (
int cont_sect = 0; cont_sect < 14; cont_sect++) {
50 file >> code >> x >> y >> z >> rms >> dx >> dy >>
dz;
60 station = code / 10000 - 1;
61 sector = (code - (station + 1) * 10000) / 100 - 1;
75 GlobalPoint rt(
r(0, 0) - disp(0, 0),
r(1, 0) - disp(1, 0),
r(2, 0) - disp(2, 0));
80 TMatrixD rLocal(3, 1);
81 rLocal(0, 0) = rl.
x();
82 rLocal(1, 0) = rl.
y();
83 rLocal(2, 0) = rl.
z();
88 TMatrixD
diff = rLocal - rTeo;
123 wheeltowheel >> zOffset >> deltax >> deltay >> deltaz >> alpha >> beta >>
gamma;
124 wheeltowheel.close();
129 delta.ResizeTo(3, 1);
130 delta(0, 0) = deltax / 10.0;
131 delta(1, 0) = deltay / 10.0;
132 delta(2, 0) = deltaz / 10.0;
136 TMatrixD alpha_m(3, 3);
137 TMatrixD beta_m(3, 3);
138 TMatrixD gamma_m(3, 3);
142 for (
int k = 0;
k < 3;
k++) {
150 alpha_m(1, 1) =
cos(alpha);
151 alpha_m(1, 2) =
sin(alpha);
152 alpha_m(2, 1) = -
sin(alpha);
153 alpha_m(2, 2) =
cos(alpha);
154 beta_m(0, 0) =
cos(beta);
155 beta_m(0, 2) = -
sin(beta);
156 beta_m(2, 0) =
sin(beta);
157 beta_m(2, 2) =
cos(beta);
158 gamma_m(0, 0) =
cos(gamma);
159 gamma_m(0, 1) =
sin(gamma);
160 gamma_m(1, 0) = -
sin(gamma);
161 gamma_m(1, 1) =
cos(gamma);
162 Rot = alpha_m * beta_m * gamma_m;
166 for (
int stationCounter = 0; stationCounter < 4; stationCounter++) {
167 for (
int sectorCounter = 0; sectorCounter < 14; sectorCounter++) {
std::ostream & operator<<(std::ostream &flux, const DTSurvey &obj)
void ReadChambers(edm::ESHandle< DTGeometry >)
Sin< T >::type sin(const T &t)
constexpr uint32_t rawId() const
get the raw id
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
int getNumberPoints() const
std::string nameOfWheelInfoFile
const DTSurveyChamber * getChamber(int, int) const
Cos< T >::type cos(const T &t)
DTSurveyChamber *** chambers
void addPoint(int, const TMatrixD &, const TMatrixD &, const TMatrixD &)
std::string nameOfChamberInfoFile
DTSurvey(const std::string &, const std::string &, int)
const GeomDet * idToDet(DetId) const override
static char chambers[264][20]