Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move sensor material parameters to XML file #775

Merged
merged 6 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions compact/pid/pfrich.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@
side="PFRICH_sensor_sensitive_size"
thickness="PFRICH_sensor_thickness"
gap="0.2*mm"
windowmat="Quartz"
pcbmat="G10"
mpdmat="SiliconDioxide"
asicmat="SiliconCarbide"
/>

<plane
Expand Down
10 changes: 5 additions & 5 deletions src/PFRICH_geo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ static Ref_t createDetector(Detector& description, xml_h e, SensitiveDetector se
double sensorThickness = sensorElem.attr<double>(_Unicode(thickness));
auto readoutName = detElem.attr<std::string>(_Unicode(readout));

auto HRPPD_WindowMat = description.material(sensorElem.attr<std::string>(_Unicode(windowmat)));
auto HRPPD_PCBMat = description.material(sensorElem.attr<std::string>(_Unicode(pcbmat)));
auto HRPPD_MPDMat = description.material(sensorElem.attr<std::string>(_Unicode(mpdmat)));
auto HRPPD_ASICMat = description.material(sensorElem.attr<std::string>(_Unicode(asicmat)));

double vesselRmin0 = dims.attr<double>(_Unicode(rmin0));
double vesselRmin1 = dims.attr<double>(_Unicode(rmin1));
double vesselRmax0 = dims.attr<double>(_Unicode(rmax0));
Expand Down Expand Up @@ -334,11 +339,6 @@ static Ref_t createDetector(Detector& description, xml_h e, SensitiveDetector se
/*--------------------------------------------------*/
// HRPPD material definition:

auto HRPPD_WindowMat = description.material("Quartz");
auto HRPPD_PCBMat = description.material("G10");
auto HRPPD_MPDMat = description.material("SiliconDioxide");
auto HRPPD_ASICMat = description.material("SiliconCarbide");

Box hrppd_Solid(xysize / 2, xysize / 2, hrppd_container_volume_thickness / 2);

Volume hrppdVol_air(detName + "_air_hrppd", hrppd_Solid, air);
Expand Down
Loading