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
50f7a1f7
Commit
50f7a1f7
authored
11 months ago
by
Christopher Young
Browse files
Options
Downloads
Patches
Plain Diff
Clean up messages and make margin a constant
parent
aee17d68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!70805
2024-04-23: merge of 24.0 into main
,
!70758
Fix ESD bug in assigning Dead Material hits
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LArCalorimeter/LArG4/LArG4Barrel/src/LArBarrelGeometry.cxx
+27
-39
27 additions, 39 deletions
LArCalorimeter/LArG4/LArG4Barrel/src/LArBarrelGeometry.cxx
LArCalorimeter/LArG4/LArG4Barrel/src/LArBarrelGeometry.h
+1
-0
1 addition, 0 deletions
LArCalorimeter/LArG4/LArG4Barrel/src/LArBarrelGeometry.h
with
28 additions
and
39 deletions
LArCalorimeter/LArG4/LArG4Barrel/src/LArBarrelGeometry.cxx
+
27
−
39
View file @
50f7a1f7
...
...
@@ -46,6 +46,7 @@ namespace LArG4 {
,
m_rMaxAccordion
(
0
)
,
m_zMinBarrel
(
0
)
,
m_zMaxBarrel
(
0
)
,
m_zMaxBarrelDMMargin
(
0
)
,
m_etaMaxBarrel
(
0
)
,
m_NCellTot
(
0
)
,
m_NCellMax
(
0
)
...
...
@@ -116,6 +117,7 @@ namespace LArG4 {
m_etaMaxBarrel
=
parameters
->
GetValue
(
"LArEMBMaxEtaAcceptance"
);
m_zMinBarrel
=
parameters
->
GetValue
(
"LArEMBfiducialMothZmin"
);
m_zMaxBarrel
=
parameters
->
GetValue
(
"LArEMBfiducialMothZmax"
);
m_zMaxBarrelDMMargin
=
10.0
;
// 10 mm margin
// === GU 11/06/2003 total number of cells in phi
// to distinguish 1 module (testbeam case) from full Atlas
m_NCellTot
=
(
int
)
(
parameters
->
GetValue
(
"LArEMBnoOFPhysPhiCell"
));
...
...
@@ -1212,7 +1214,7 @@ namespace LArG4 {
currentCellData
.
etaBin
=
0
;
currentCellData
.
phiBin
=
phisave
;
}
else
if
(
zZpos
>=
m_zMaxBarrel
-
10
||
abs_eta
>=
1.40
)
{
// inactive matter between EMB and scintillator including some margin for error
}
else
if
(
zZpos
>=
m_zMaxBarrel
-
m_zMaxBarrelDMMargin
||
abs_eta
>=
1.40
)
{
// inactive matter between EMB and scintillator including some margin for error
if
(
abs_eta
>
1.0
&&
abs_eta
<
1.5
)
{
sampling
=
2
;
region
=
2
;
...
...
@@ -1230,44 +1232,30 @@ namespace LArG4 {
}
else
{
if
(
!
m_testbeam
)
{
const
G4double
thisStepEnergyDeposit
=
a_step
->
GetTotalEnergyDeposit
()
*
a_step
->
GetTrack
()
->
GetWeight
();
if
(
thisStepEnergyDeposit
>
1
){
ATH_MSG_ERROR
(
"LArBarrelGeometry: cannot find region for DM hit..."
);
ATH_MSG_ERROR
(
"m_zMinBarrel: "
<<
m_zMinBarrel
);
ATH_MSG_ERROR
(
"m_zMaxBarrel: "
<<
m_zMaxBarrel
);
ATH_MSG_ERROR
(
"m_rMinAccordion: "
<<
m_rMinAccordion
);
ATH_MSG_ERROR
(
"m_rMaxAccordion: "
<<
m_rMaxAccordion
);
ATH_MSG_ERROR
(
"r,z,eta,phi "
<<
radiusZpos
<<
" "
<<
zZpos
<<
" "
<<
etaZpos
<<
" "
<<
phiZpos
);
ATH_MSG_ERROR
(
"x,y,z (Atlas) "
<<
p
.
x
()
<<
" "
<<
p
.
y
()
<<
" "
<<
p
.
z
());
ATH_MSG_ERROR
(
" inSTAC "
<<
inSTAC
);
ATH_MSG_ERROR
(
" eDeposited "
<<
thisStepEnergyDeposit
);
const
G4VPhysicalVolume
*
vol
=
thisStepPoint
->
GetPhysicalVolume
();
const
G4String
volName
=
vol
->
GetName
();
ATH_MSG_ERROR
(
" volName "
<<
volName
);
const
G4int
ndep
=
g4navigation
->
GetDepth
();
for
(
G4int
ii
=
0
;
ii
<=
ndep
;
ii
++
)
{
const
G4VPhysicalVolume
*
v1
=
g4navigation
->
GetVolume
(
ii
);
const
G4String
vname
=
v1
->
GetName
();
ATH_MSG_ERROR
(
"vname "
<<
vname
);
}
}
else
{
ATH_MSG_WARNING
(
"LArBarrelGeometry: cannot find region for DM hit..."
);
ATH_MSG_WARNING
(
"m_zMinBarrel: "
<<
m_zMinBarrel
);
ATH_MSG_WARNING
(
"m_zMaxBarrel: "
<<
m_zMaxBarrel
);
ATH_MSG_WARNING
(
"m_rMinAccordion: "
<<
m_rMinAccordion
);
ATH_MSG_WARNING
(
"m_rMaxAccordion: "
<<
m_rMaxAccordion
);
ATH_MSG_WARNING
(
"r,z,eta,phi "
<<
radiusZpos
<<
" "
<<
zZpos
<<
" "
<<
etaZpos
<<
" "
<<
phiZpos
);
ATH_MSG_WARNING
(
"x,y,z (Atlas) "
<<
p
.
x
()
<<
" "
<<
p
.
y
()
<<
" "
<<
p
.
z
());
ATH_MSG_WARNING
(
" inSTAC "
<<
inSTAC
);
ATH_MSG_WARNING
(
" eDeposited "
<<
thisStepEnergyDeposit
);
const
G4VPhysicalVolume
*
vol
=
thisStepPoint
->
GetPhysicalVolume
();
const
G4String
volName
=
vol
->
GetName
();
ATH_MSG_WARNING
(
" volName "
<<
volName
);
const
G4int
ndep
=
g4navigation
->
GetDepth
();
for
(
G4int
ii
=
0
;
ii
<=
ndep
;
ii
++
)
{
const
G4VPhysicalVolume
*
v1
=
g4navigation
->
GetVolume
(
ii
);
const
G4String
vname
=
v1
->
GetName
();
ATH_MSG_WARNING
(
"vname "
<<
vname
);
}
std
::
ostringstream
dmLog
;
dmLog
<<
"LArBarrelGeometry: cannot find region for DM hit..."
<<
std
::
endl
;
dmLog
<<
"LArBarrelGeometry: cannot find region for DM hit..."
<<
std
::
endl
;
dmLog
<<
"m_zMinBarrel: "
<<
m_zMinBarrel
<<
std
::
endl
;
dmLog
<<
"m_zMaxBarrel: "
<<
m_zMaxBarrel
<<
std
::
endl
;
dmLog
<<
"m_rMinAccordion: "
<<
m_rMinAccordion
<<
std
::
endl
;
dmLog
<<
"m_rMaxAccordion: "
<<
m_rMaxAccordion
<<
std
::
endl
;
dmLog
<<
"r,z,eta,phi "
<<
radiusZpos
<<
" "
<<
zZpos
<<
" "
<<
etaZpos
<<
" "
<<
phiZpos
<<
std
::
endl
;
dmLog
<<
"x,y,z (Atlas) "
<<
p
.
x
()
<<
" "
<<
p
.
y
()
<<
" "
<<
p
.
z
()
<<
std
::
endl
;
dmLog
<<
" inSTAC "
<<
inSTAC
<<
std
::
endl
;
dmLog
<<
" eDeposited "
<<
thisStepEnergyDeposit
<<
std
::
endl
;
const
G4VPhysicalVolume
*
vol
=
thisStepPoint
->
GetPhysicalVolume
();
const
G4String
volName
=
vol
->
GetName
();
dmLog
<<
" volName "
<<
volName
<<
std
::
endl
;
const
G4int
ndep
=
g4navigation
->
GetDepth
();
for
(
G4int
ii
=
0
;
ii
<=
ndep
;
ii
++
)
{
const
G4VPhysicalVolume
*
v1
=
g4navigation
->
GetVolume
(
ii
);
const
G4String
vname
=
v1
->
GetName
();
dmLog
<<
"vname "
<<
vname
<<
std
::
endl
;
}
if
(
thisStepEnergyDeposit
>
1.
*
CLHEP
::
MeV
)
{
ATH_MSG_ERROR
(
dmLog
.
str
());
}
else
{
ATH_MSG_WARNING
(
dmLog
.
str
());
}
}
// in test beam case, we can get there for leakage on the side (in phi) of the module
...
...
This diff is collapsed.
Click to expand it.
LArCalorimeter/LArG4/LArG4Barrel/src/LArBarrelGeometry.h
+
1
−
0
View file @
50f7a1f7
...
...
@@ -69,6 +69,7 @@ namespace LArG4 {
double
m_rMaxAccordion
;
double
m_zMinBarrel
;
double
m_zMaxBarrel
;
double
m_zMaxBarrelDMMargin
;
double
m_etaMaxBarrel
;
// GU 11/06/2003 total number of cells in phi
...
...
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