Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas
athena
Commits
ff6ef4ef
Commit
ff6ef4ef
authored
1 year ago
by
Chad Stephen Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Fixed issues with ZDC side assignment and amplitude calculation
parent
7b75d8d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!68452
2024-01-30: merge of 23.0 into main
,
!68352
Bugfix for ZDC_GeoM and ZDC_SimuDigitization
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ForwardDetectors/ZDC/ZDC_SimuDigitization/src/ZDC_PileUpTool.cxx
+4
-4
4 additions, 4 deletions
...Detectors/ZDC/ZDC_SimuDigitization/src/ZDC_PileUpTool.cxx
with
4 additions
and
4 deletions
ForwardDetectors/ZDC/ZDC_SimuDigitization/src/ZDC_PileUpTool.cxx
+
4
−
4
View file @
ff6ef4ef
...
...
@@ -162,7 +162,7 @@ StatusCode ZDC_PileUpTool::processAllSubEvents(const EventContext& ctx){
for
(
int
iside
:
{
-
1
,
1
}){
xAOD
::
ZdcModule
*
new_sum
=
new
xAOD
::
ZdcModule
();
sumsContainer
->
push_back
(
xAOD
::
ZdcModuleContainer
::
unique_type
(
new_sum
));
new_sum
->
setZdcSide
(
(
iside
==
0
)
?
-
1
:
1
);
new_sum
->
setZdcSide
(
iside
);
new_sum
->
auxdata
<
uint16_t
>
(
"LucrodTriggerSideAmp"
)
=
42
;
}
...
...
@@ -323,7 +323,7 @@ TimedHitCollection<ZDC_SimFiberHit> ZDC_PileUpTool::doZDClightGuideCuts(const ZD
//The module hasn't been seen yet, create a new hit with values modified by the efficiency factor
//The ID is modified because we initially used channel to denote the position of the rods for these efficiency cuts
//Now that that's done, we make sure the type is SINGLECHANNEL and the channel is 0
newHits
[
side
][
module
]
=
new
ZDC_SimFiberHit
(
m_ZdcID
->
channel_id
(
side
,
module
,
ZdcIDType
::
SINGLECHANNEL
,
0
),
efficiency
*
hit
.
getNPhotons
(),
efficiency
*
hit
.
getEdep
());
newHits
[
side
][
module
]
=
new
ZDC_SimFiberHit
(
m_ZdcID
->
channel_id
(
m_ZdcID
->
side
(
id
)
,
module
,
ZdcIDType
::
SINGLECHANNEL
,
0
),
efficiency
*
hit
.
getNPhotons
(),
efficiency
*
hit
.
getEdep
());
}
else
{
//The module has been seen, add the photons and energy from this new hit to it
newHits
[
side
][
module
]
->
Add
(
efficiency
*
hit
.
getNPhotons
(),
efficiency
*
hit
.
getEdep
());
...
...
@@ -378,7 +378,7 @@ void ZDC_PileUpTool::createAndStoreWaveform(const ZDC_SimFiberHit &hit, CLHEP::H
std
::
shared_ptr
<
ZDCWaveformSampler
>
wfSampler
;
if
(
module
<
4
){
//It's a ZDC channel
amplitude
=
CLHEP
::
RandPoissonQ
::
shoot
(
rndEngine
,
hit
.
getNPhotons
()
*
m_zdcAdcPerPhoton
)
;
amplitude
=
CLHEP
::
RandPoissonQ
::
shoot
(
rndEngine
,
hit
.
getNPhotons
()
)
*
m_zdcAdcPerPhoton
;
if
(
m_LTQuadStepFilt
){
waveformPtr
=
std
::
make_shared
<
ZDCWaveformLTLinStep
>
(
"zdc"
,
m_qsfRiseTime
,
m_qsfFallTime
,
m_qsfFilter
);
...
...
@@ -389,7 +389,7 @@ void ZDC_PileUpTool::createAndStoreWaveform(const ZDC_SimFiberHit &hit, CLHEP::H
t0
=
m_zdct0
;
}
else
{
//It's an RPD channel
amplitude
=
CLHEP
::
RandPoissonQ
::
shoot
(
rndEngine
,
hit
.
getNPhotons
()
*
m_rpdAdcPerPhoton
)
;
amplitude
=
CLHEP
::
RandPoissonQ
::
shoot
(
rndEngine
,
hit
.
getNPhotons
()
)
*
m_rpdAdcPerPhoton
;
waveformPtr
=
std
::
make_shared
<
ZDCWaveformFermiExp
>
(
"rpd"
,
m_rpdRiseTime
,
m_rpdFallTime
);
wfSampler
=
std
::
make_shared
<
ZDCWaveformSampler
>
(
m_freqMHz
,
0
,
m_numTimeBins
,
12
,
m_Pedestal
,
waveformPtr
);
t0
=
m_rpdt0
;
...
...
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