Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tadej Novak
athena
Commits
5d086b98
Verified
Commit
5d086b98
authored
Oct 14, 2021
by
Tadej Novak
Browse files
Fix PLR SiHit parsing
parent
0af0f257
Pipeline
#3126619
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
InnerDetector/InDetSimEvent/InDetSimEvent/SiHitIdHelper.h
View file @
5d086b98
...
...
@@ -60,6 +60,9 @@ class SiHitIdHelper : HitIdHelper {
//
// Initialize the helper, only called by the constructor
void
Initialize
();
//
// ITk/HGTD flag
bool
m_isITkHGTD
{};
};
#endif // INDETSIMEVENT_SIHITIDHELPER
InnerDetector/InDetSimEvent/src/SiHitIdHelper.cxx
View file @
5d086b98
...
...
@@ -31,18 +31,19 @@ void SiHitIdHelper::Initialize() {
}
bool
isDBM
=
(
pix
!=
0
&&
pix
->
dictionaryVersion
()
==
"IBL-DBM"
);
//Run4 includes ITk and HGTD
bool
isRun4
=
(
pix
!=
0
&&
pix
->
dictionaryVersion
()
==
"ITkHGTD"
);
//Run4PLR includes PLR as well, we have to increase endcap range to +/- 4
bool
isRun4PLR
=
(
pix
!=
0
&&
pix
->
dictionaryVersion
()
==
"ITkHGTDPLR"
);
if
(
isRun4
||
isRun4PLR
)
InitializeField
(
"Part"
,
0
,
2
);
// check for ITk and HGTD
bool
isITkHGTD
=
(
pix
!=
0
&&
pix
->
dictionaryVersion
()
==
"ITkHGTD"
);
// we might include PLR as well, then we have to increase endcap range to +/- 4
bool
isITkHGTDPLR
=
(
pix
!=
0
&&
pix
->
dictionaryVersion
()
==
"ITkHGTDPLR"
);
// cache the HL-LHC decision
m_isITkHGTD
=
isITkHGTD
||
isITkHGTDPLR
;
if
(
m_isITkHGTD
)
InitializeField
(
"Part"
,
0
,
2
);
else
InitializeField
(
"Part"
,
0
,
1
);
if
(
isDBM
||
is
Run4
PLR
)
InitializeField
(
"BarrelEndcap"
,
-
4
,
4
);
if
(
isDBM
||
is
ITkHGTD
PLR
)
InitializeField
(
"BarrelEndcap"
,
-
4
,
4
);
else
InitializeField
(
"BarrelEndcap"
,
-
2
,
2
);
InitializeField
(
"LayerDisk"
,
0
,
20
);
if
(
isRun4
||
isRun4PLR
)
InitializeField
(
"EtaModule"
,
-
100
,
100
);
if
(
m_isITkHGTD
)
InitializeField
(
"EtaModule"
,
-
100
,
100
);
else
InitializeField
(
"EtaModule"
,
-
20
,
20
);
InitializeField
(
"PhiModule"
,
0
,
200
);
InitializeField
(
"Side"
,
0
,
3
);
...
...
@@ -74,8 +75,10 @@ bool SiHitIdHelper::isHGTD(const int& hid) const
bool
SiHitIdHelper
::
isPLR
(
const
int
&
hid
)
const
{
if
(
!
m_isITkHGTD
)
return
false
;
int
psh
=
this
->
GetFieldValue
(
"BarrelEndcap"
,
hid
);
if
(
psh
==-
4
||
psh
==
4
)
return
true
;
if
(
std
::
abs
(
psh
)
==
4
)
return
true
;
else
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment