41 #ifndef XrayFluoDetectorConstruction_hh
42 #define XrayFluoDetectorConstruction_hh 1
92 {sampleGranularity = granularity;};
95 {phaseSpaceFlag =
true;};
98 {phaseSpaceFlag =
false;};
101 {
return phaseSpaceFlag;};
184 G4Box* solidOhmicPos;
192 G4Box* solidOhmicNeg;
230 G4int NbOfPixelColumns;
313 void DefineDefaultMaterials();
317 void ComputeApparateParameters();
323 inline void XrayFluoDetectorConstruction::ComputeApparateParameters()
327 if (phaseSpaceFlag) {
329 WorldSizeZ = 10 *CLHEP::m;
330 WorldSizeXY = 10 *CLHEP::m;
335 DeviceThickness = PixelThickness+OhmicNegThickness+OhmicPosThickness+windowThickness;
337 G4cout <<
"DeviceThickness(cm): "<< DeviceThickness/CLHEP::cm <<
G4endl;
339 DeviceSizeY =(NbOfPixelRows * std::max(ContactSizeXY,PixelSizeXY));
340 DeviceSizeX =(NbOfPixelColumns * std::max(ContactSizeXY,PixelSizeXY));
342 G4cout <<
"DeviceSizeX(cm): "<< DeviceSizeX/CLHEP::cm <<
G4endl;
343 G4cout <<
"DeviceSizeY(cm): "<< DeviceSizeY/CLHEP::cm <<
G4endl;
345 WorldSizeZ = (2 * (DistDe +1.4142 *(std::max(std::max(DeviceThickness,DeviceSizeY), DeviceSizeX))))+5*CLHEP::m;
346 WorldSizeXY = 2 * (DistDe +1.4142 *Dia1SizeXY)+5*CLHEP::m;