Skip to content

Commit

Permalink
Move sensor material parameters to XML file (#775)
Browse files Browse the repository at this point in the history
### Briefly, what does this PR introduce?
Move sensor material parameters to XML file

### What kind of change does this PR introduce?
- [ ] Bug fix (issue #772)
- [ ] New feature (issue #__)
- [ ] Documentation update
- [ ] Other: __

### Please check if this PR fulfills the following:
- [ ] Tests for the changes have been added
- [ ] Documentation has been added / updated
- [ ] Changes have been communicated to collaborators

### Does this PR introduce breaking changes? What changes might users
need to make to their code?

### Does this PR change default behavior?

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: billlee77 <[email protected]>
Co-authored-by: Dmitry Kalinkin <[email protected]>
  • Loading branch information
4 people authored Sep 27, 2024
1 parent a8c77be commit 4c6c58a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
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

0 comments on commit 4c6c58a

Please sign in to comment.