You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Now we create the volume of the chip, which is the same for all modules
183
-
constint chipsPerModuleX = 2; // we assume that each module is divided in 2 chips along the x direction
184
-
constint chipsPerModuleZ = 2; // we assume that each module is divided in 2 chips along the z direction
185
-
constdouble chipSizeX = moduleSizeX / chipsPerModuleX; // cm
186
-
constdouble chipSizeY = moduleSizeY; // cm
190
+
constint chipsPerModuleX = 2; // we assume that each module is divided in 2 chips along the x direction
191
+
constint chipsPerModuleZ = 2; // we assume that each module is divided in 2 chips along the z direction
192
+
constdouble chipSizeX = moduleSizeX / chipsPerModuleX; // cm
193
+
constdouble chipSizeY = moduleSizeY - mSensorThickness; // cm
194
+
if (chipSizeY <= 0) {
195
+
LOG(fatal) << "Invalid configuration: sensor thickness " << mSensorThickness << " cm is too large for module size " << moduleSizeY << " cm, it leaves no space for the chip";
196
+
}
187
197
constdouble chipSizeZ = moduleSizeZ / chipsPerModuleZ; // cm
0 commit comments