-
Notifications
You must be signed in to change notification settings - Fork 101
Reopening CaloSurfaceStep extraction with material effects (draft) #1828
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
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
cee3459
initial development
sophieMu2e 9162348
added new Kinkal vols
sophieMu2e 3b9699e
added many surfaces, need positions
sophieMu2e 8219beb
updated coords
sophieMu2e 20c7dc8
updated surfaces
sophieMu2e 0a5a985
builds
sophieMu2e 10d9916
compiles
sophieMu2e 5525394
prints out, not tested
sophieMu2e a5e9665
added surface steps from front and back of calo
sophieMu2e 7c5bb42
added
sophieMu2e 556b4cf
works
sophieMu2e 1d47bee
autoplay
sophieMu2e 23ab8d1
updated Calo
sophieMu2e 959d8f6
Merge branch 'main' of github.com:Mu2e/Offline into interdet
sophieMu2e 2610df8
removed
sophieMu2e 7b108ae
surface id
sophieMu2e 1ef11f8
Merge branch 'main' of github.com:Mu2e/Offline into interdet
sophieMu2e a04f426
merged daves code, integrated and adapted calo
sophieMu2e 67899a5
works with geom service
sophieMu2e 08e83c4
fixed the calo front
sophieMu2e d99b486
seems to work
sophieMu2e 7564a99
calo intersections in correct location - calo mother
sophieMu2e 22ed712
tested with central helix
sophieMu2e 28174e8
added code
sophieMu2e 26cdc86
merged main
sophieMu2e fedf7fe
merged
sophieMu2e 5aba283
merged
sophieMu2e e1d169e
builds with merge
sophieMu2e 9b47730
remvoed old module
sophieMu2e 4c37102
material effects
sophieMu2e e8a2b45
works
sophieMu2e 52ab0e6
works
sophieMu2e 3df021b
removed
sophieMu2e bb79d78
updates
sophieMu2e cfb40c2
updates
sophieMu2e File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| cet_make_library( | ||
| SOURCE | ||
| src/CRV.cc | ||
| src/Calo.cc | ||
| src/KinKalGeom.cc | ||
| LIBRARIES PUBLIC | ||
| KinKal::Geometry | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| // | ||
| // Define the nominal calorimeter boundary and reference surfaces, used to extrapolate and sample KinKal track fits, and to build | ||
| // the passive materials in the fit | ||
| // original author: Sophie Middleton (2025) | ||
| // | ||
| #ifndef KinKalGeom_Calo_hh | ||
| #define KinKalGeom_Calo_hh | ||
| #include "KinKal/Geometry/Cylinder.hh" | ||
| #include "KinKal/Geometry/Disk.hh" | ||
| #include "KinKal/Geometry/Annulus.hh" | ||
| #include <memory> | ||
| namespace mu2e { | ||
| namespace KKGeom { | ||
| class Calo { | ||
| public: | ||
| using CylPtr = std::shared_ptr<KinKal::Cylinder>; | ||
| using DiskPtr = std::shared_ptr<KinKal::Disk>; | ||
| // constructor with geometry parameters from Calorimeter service | ||
| Calo(double z0, double z1, double r0_inner, double r0_outer, double r1_inner, double r1_outer, | ||
| double z0_front, double z0_back, double z1_front, double z1_back); | ||
| // return by reference | ||
| auto const& EMC_Disk_0_Outer() const { return *EMC_Disk_0_Outer_;} | ||
| auto const& EMC_Disk_0_Inner() const { return *EMC_Disk_0_Inner_;} | ||
| auto const& EMC_Disk_1_Inner() const { return *EMC_Disk_1_Inner_;} | ||
| auto const& EMC_Disk_1_Outer() const { return *EMC_Disk_1_Outer_;} | ||
|
|
||
| auto const& EMC_Disk_0_Front() const { return *EMC_Disk_0_Front_;} | ||
| auto const& EMC_Disk_1_Front() const { return *EMC_Disk_1_Front_;} | ||
| auto const& EMC_Disk_0_Back() const { return *EMC_Disk_0_Back_;} | ||
| auto const& EMC_Disk_1_Back() const { return *EMC_Disk_1_Back_;} | ||
|
|
||
| // return by ptr | ||
| auto const& EMC_Disk_0_OuterPtr() const { return EMC_Disk_0_Outer_;} | ||
| auto const& EMC_Disk_0_InnerPtr() const { return EMC_Disk_0_Inner_;} | ||
| auto const& EMC_Disk_1_InnerPtr() const { return EMC_Disk_1_Inner_;} | ||
| auto const& EMC_Disk_1_OuterPtr() const { return EMC_Disk_1_Outer_;} | ||
| auto const& EMC_Disk_0_FrontPtr() const { return EMC_Disk_0_Front_;} | ||
| auto const& EMC_Disk_1_FrontPtr() const { return EMC_Disk_1_Front_;} | ||
| auto const& EMC_Disk_0_BackPtr() const { return EMC_Disk_0_Back_;} | ||
| auto const& EMC_Disk_1_BackPtr() const { return EMC_Disk_1_Back_;} | ||
|
|
||
| // accessors for local Z positions (relative to tracker center) | ||
| double EMC_Disk_0_Front_Z() const { return z0_front_; } | ||
| double EMC_Disk_0_Back_Z() const { return z0_back_; } | ||
| double EMC_Disk_1_Front_Z() const { return z1_front_; } | ||
| double EMC_Disk_1_Back_Z() const { return z1_back_; } | ||
|
|
||
| private: | ||
| CylPtr EMC_Disk_0_Inner_, EMC_Disk_0_Outer_ , EMC_Disk_1_Inner_, EMC_Disk_1_Outer_; | ||
| DiskPtr EMC_Disk_0_Front_, EMC_Disk_0_Back_, EMC_Disk_1_Front_, EMC_Disk_1_Back_; | ||
| double z0_front_, z0_back_, z1_front_, z1_back_; // local Z positions | ||
| }; | ||
| } | ||
| } | ||
|
|
||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #include "Offline/KinKalGeom/inc/Calo.hh" | ||
| namespace mu2e { | ||
| namespace KKGeom { | ||
| using KinKal::VEC3; | ||
| using KinKal::Cylinder; | ||
| using KinKal::Disk; | ||
|
|
||
| Calo::Calo(double z0, double z1, double r0_inner, double r0_outer, double r1_inner, double r1_outer, | ||
| double z0_front, double z0_back, double z1_front, double z1_back) : | ||
| EMC_Disk_0_Inner_ { std::make_shared<Cylinder>(VEC3(0.0,0.0,1.0),VEC3(0.0,0.0,0.5*(z0_front+z0_back)),r0_inner, 0.5*(z0_back-z0_front))}, | ||
| EMC_Disk_0_Outer_ { std::make_shared<Cylinder>(VEC3(0.0,0.0,1.0),VEC3(0.0,0.0,0.5*(z0_front+z0_back)),r0_outer, 0.5*(z0_back-z0_front))}, | ||
| EMC_Disk_1_Inner_ { std::make_shared<Cylinder>(VEC3(0.0,0.0,1.0),VEC3(0.0,0.0,0.5*(z1_front+z1_back)),r1_inner, 0.5*(z1_back-z1_front))}, | ||
| EMC_Disk_1_Outer_ { std::make_shared<Cylinder>(VEC3(0.0,0.0,1.0),VEC3(0.0,0.0,0.5*(z1_front+z1_back)),r1_outer, 0.5*(z1_back-z1_front))}, | ||
|
|
||
| EMC_Disk_0_Front_ { std::make_shared<Disk>(VEC3(0.0,0.0,1.0),VEC3(1.0,0.0,0.0),VEC3(0.0,0.0,z0_front),r0_outer)}, | ||
| EMC_Disk_0_Back_ { std::make_shared<Disk>(VEC3(0.0,0.0,1.0),VEC3(1.0,0.0,0.0),VEC3(0.0,0.0,z0_back),r0_outer)}, | ||
| EMC_Disk_1_Front_ { std::make_shared<Disk>(VEC3(0.0,0.0,1.0),VEC3(1.0,0.0,0.0),VEC3(0.0,0.0,z1_front),r1_outer)}, | ||
| EMC_Disk_1_Back_ { std::make_shared<Disk>(VEC3(0.0,0.0,1.0),VEC3(1.0,0.0,0.0),VEC3(0.0,0.0,z1_back),r1_outer)}, | ||
| z0_front_(z0_front), z0_back_(z0_back), z1_front_(z1_front), z1_back_(z1_back) | ||
| {} | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use GeomHandle det; det->toDetector() instead of doing this manually.