Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
845ca103
Commit
845ca103
authored
Sep 14, 2021
by
Patrick Karl Czodrowski
Committed by
Vakhtang Tsulaia
Sep 14, 2021
Browse files
ATR-24071 - ctp sim fix jet and other new items for old data inputs
parent
487b5a39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Trigger/TrigT1/TrigT1CTP/src/CTPSimulation.cxx
View file @
845ca103
...
...
@@ -134,7 +134,6 @@ StatusCode
LVL1CTP
::
CTPSimulation
::
createMultiplicityHist
(
const
std
::
string
&
type
,
unsigned
int
maxMult
)
const
{
StatusCode
sc
;
std
::
map
<
std
::
string
,
std
::
vector
<
std
::
string
>>
typeMapping
=
{
{
"muon"
,
{
"MU"
}
},
{
"jet"
,
{
"JET"
,
"jJ"
,
"gJ"
}
},
...
...
@@ -167,16 +166,22 @@ LVL1CTP::CTPSimulation::setMultiplicityHistLabels(const TrigConf::L1Menu& l1menu
{
"em"
,
{
"EM"
,
"eEM"
}
},
{
"tau"
,
{
"TAU"
,
"eTAU"
,
"jTAU"
,
"cTAU"
}
}
};
std
::
vector
<
TrigConf
::
L1Threshold
>
thrV
;
for
(
const
std
::
string
&
t
:
typeMapping
[
type
]
)
{
auto
hist
=
get2DHist
(
"/multi/"
+
type
+
"/"
+
t
+
"Mult"
);
auto
&
thrV
=
l1menu
.
thresholds
(
t
);
while
(
hist
->
GetNbinsX
()
<
(
int
)
thrV
.
size
()
)
{
hist
->
LabelsInflate
(
"xaxis"
);
}
for
(
auto
thr
:
thrV
)
{
hist
->
GetXaxis
()
->
SetBinLabel
(
thr
->
mapping
()
+
1
,
thr
->
name
().
c_str
()
);
}
try
{
auto
hist
=
get2DHist
(
"/multi/"
+
type
+
"/"
+
t
+
"Mult"
);
auto
&
thrV
=
l1menu
.
thresholds
(
t
);
while
(
hist
->
GetNbinsX
()
<
(
int
)
thrV
.
size
()
)
{
hist
->
LabelsInflate
(
"xaxis"
);
}
for
(
auto
thr
:
thrV
)
{
hist
->
GetXaxis
()
->
SetBinLabel
(
thr
->
mapping
()
+
1
,
thr
->
name
().
c_str
()
);
}
}
catch
(
std
::
exception
&
ex
)
{
ATH_MSG_DEBUG
(
"Caught exception when setting new JSON MultiplicityHistLabel "
<<
t
<<
" : "
<<
ex
.
what
());
}
}
return
sc
;
}
...
...
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