Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
detectors
athena
Commits
cc9cf961
Commit
cc9cf961
authored
Feb 14, 2022
by
christopher dilks
Browse files
Options
Downloads
Patches
Plain Diff
auto detection of readout structure fails, better to just specify the name
parent
2ef361ba
No related branches found
No related tags found
1 merge request
!331
Draft: Resolve "add IRT geometry to RICH cpp files"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/DRICH_geo.cpp
+4
-10
4 additions, 10 deletions
src/DRICH_geo.cpp
src/PFRICH_geo.cpp
+2
-8
2 additions, 8 deletions
src/PFRICH_geo.cpp
with
6 additions
and
18 deletions
src/DRICH_geo.cpp
+
4
−
10
View file @
cc9cf961
...
...
@@ -121,11 +121,11 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
// if debugging optics, override some settings
bool
debug_optics
=
debug_optics_mode
>
0
;
if
(
debug_optics
)
{
printout
(
WARNING
,
"DR
ich
_geo"
,
"DEBUGGING DRICH OPTICS"
);
printout
(
WARNING
,
"DR
ICH
_geo"
,
"DEBUGGING DRICH OPTICS"
);
switch
(
debug_optics_mode
)
{
case
1
:
vesselMat
=
aerogelMat
=
filterMat
=
sensorMat
=
gasvolMat
=
desc
.
material
(
"VacuumOptical"
);
break
;
case
2
:
vesselMat
=
aerogelMat
=
filterMat
=
sensorMat
=
desc
.
material
(
"VacuumOptical"
);
break
;
default:
printout
(
FATAL
,
"DR
ich
_geo"
,
"UNKNOWN debug_optics_mode"
);
return
det
;
default:
printout
(
FATAL
,
"DR
ICH
_geo"
,
"UNKNOWN debug_optics_mode"
);
return
det
;
};
aerogelVis
=
sensorVis
=
mirrorVis
;
gasvolVis
=
vesselVis
=
desc
.
invisible
();
...
...
@@ -219,14 +219,8 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
// Used in several places;
TVector3
nx
(
1
,
0
,
0
),
ny
(
0
,
-
1
,
0
);
// Get access to the readout structure decoder; may want to simply call desc.readout("DRICHHits");
const
auto
&
rdspecs
=
desc
.
readouts
();
if
(
rdspecs
.
size
()
!=
1
)
{
printout
(
FATAL
,
"DRich_geo"
,
"Expect a single readout structure in XML file"
);
return
det
;
}
//if
// Do not mess up with casting of (*desc.readouts().begin()).second; just call desc.readout();
const
auto
decoder
=
desc
.
readout
((
*
rdspecs
.
begin
()).
first
.
c_str
()).
idSpec
().
decoder
();
// Get access to the readout structure decoder
const
auto
decoder
=
desc
.
readout
(
"DRICHHits"
).
idSpec
().
decoder
();
const
auto
&
mvalue
=
(
*
decoder
)[
"module"
],
&
svalue
=
(
*
decoder
)[
"sector"
];
uint64_t
msmask
=
mvalue
.
mask
()
|
svalue
.
mask
();
detector
->
SetReadoutCellMask
(
msmask
);
...
...
This diff is collapsed.
Click to expand it.
src/PFRICH_geo.cpp
+
2
−
8
View file @
cc9cf961
...
...
@@ -152,14 +152,8 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
// Used in several places;
TVector3
nx
(
1
,
0
,
0
),
ny
(
0
,
1
,
0
);
// Get access to the readout structure decoder; may want to simply call desc.readout("DRICHHits");
const
auto
&
rdspecs
=
desc
.
readouts
();
if
(
rdspecs
.
size
()
!=
1
)
{
printout
(
FATAL
,
"DRich_geo"
,
"Expect a single readout structure in XML file"
);
return
det
;
}
//if
// Do not mess up with casting of (*desc.readouts().begin()).second; just call desc.readout();
const
auto
decoder
=
desc
.
readout
((
*
rdspecs
.
begin
()).
first
.
c_str
()).
idSpec
().
decoder
();
// Get access to the readout structure decoder
const
auto
decoder
=
desc
.
readout
(
"PFRICHHits"
).
idSpec
().
decoder
();
const
auto
&
mvalue
=
(
*
decoder
)[
"module"
];
uint64_t
msmask
=
mvalue
.
mask
();
detector
->
SetReadoutCellMask
(
msmask
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment