29 for(
int stationCounter = 0; stationCounter < 4; stationCounter++) {
30 for(
int sectorCounter = 0; sectorCounter < 14; sectorCounter++) {
31 if(
chambers[stationCounter][sectorCounter]->getNumberPoints() > 2) {
45 for (
int cont_stat = 0; cont_stat < 4; cont_stat++) {
47 for(
int cont_sect = 0; cont_sect < 14; cont_sect++) {
58 file >> code >> x >> y >> z >> rms >> dx >> dy >>
dz;
60 x = x/10.0; y=y/10.0; z=z/10.0; dx=dx/10.0; dy=dy/10.0; dz=dz/10.0;rms=rms/10.0;
61 station = code/10000 - 1;
62 sector = (code-(station+1)*10000)/100 - 1;
67 disp(0,0) =
dx; disp(1,0) =
dy; disp(2,0) =
dz;
72 GlobalPoint rt(
r(0,0)-disp(0,0),
r(1,0)-disp(1,0),
r(2,0)-disp(2,0));
78 rLocal(0,0) = rl.
x(); rLocal(1,0) = rl.
y(); rLocal(2,0) = rl.
z();
80 rTeo(0,0) = rtl.
x(); rTeo(1,0) = rtl.
y(); rTeo(2,0) = rtl.
z();
81 TMatrixD
diff = rLocal-rTeo;
115 wheeltowheel >> zOffset >> deltax >> deltay >> deltaz >> alpha >> beta >>
gamma;
116 wheeltowheel.close();
122 delta(0,0) = deltax/10.0;
123 delta(1,0) = deltay/10.0;
124 delta(2,0) = deltaz/10.0;
128 TMatrixD alpha_m(3,3);
129 TMatrixD beta_m(3,3);
130 TMatrixD gamma_m(3,3);
134 for(
int k = 0;
k < 3;
k++) {
142 alpha_m(1,1) =
cos(alpha);
143 alpha_m(1,2) =
sin(alpha);
144 alpha_m(2,1) = -
sin(alpha);
145 alpha_m(2,2) =
cos(alpha);
146 beta_m(0,0) =
cos(beta);
147 beta_m(0,2) = -
sin(beta);
148 beta_m(2,0) =
sin(beta);
149 beta_m(2,2) =
cos(beta);
150 gamma_m(0,0) =
cos(gamma);
151 gamma_m(0,1) =
sin(gamma);
152 gamma_m(1,0) = -
sin(gamma);
153 gamma_m(1,1) =
cos(gamma);
154 Rot = alpha_m*beta_m*gamma_m;
160 for(
int stationCounter = 0; stationCounter < 4; stationCounter++) {
161 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]