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
Merge requests
!68897
AFP dqm algorithm for tof efficiency
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
AFP dqm algorithm for tof efficiency
vlysenko/athena:24.0-afp-dqm-tof-efficiency
into
main
Overview
4
Commits
5
Pipelines
1
Changes
1
Merged
Viktoriia Lysenko
requested to merge
vlysenko/athena:24.0-afp-dqm-tof-efficiency
into
main
1 year ago
Overview
4
Commits
5
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
0a5e8526
Prev
Next
Show latest version
1 file
+
0
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
0a5e8526
fix
· 0a5e8526
Viktoriia Lysenko
authored
1 year ago
DataQuality/dqm_algorithms/src/AFP_ToFEfficiency.cxx
+
0
−
12
Options
@@ -34,19 +34,11 @@ dqm_core::Result*
dqm_algorithms
::
AFP_ToFEfficiency
::
execute
(
const
std
::
string
&
name
,
const
TObject
&
object
,
const
dqm_core
::
AlgorithmConfig
&
config
)
{
<<<<<<<
HEAD
if
(
!
object
.
IsA
()
->
InheritsFrom
(
"TH2"
)
)
{
throw
dqm_core
::
BadConfig
(
ERS_HERE
,
name
,
"does not inherit from TH2"
);
}
auto
histogram
=
static_cast
<
const
TH2D
*>
(
&
object
);
=======
if
(
!
object
.
IsA
()
->
InheritsFrom
(
"TEfficiency"
)
)
{
throw
dqm_core
::
BadConfig
(
ERS_HERE
,
name
,
"does not inherit from TEfficiency"
);
}
auto
histogram
=
static_cast
<
const
TEfficiency
*>
(
&
object
);
>>>>>>>
6
f1c858ac9cda197407bff0cadca10adaee6ae45
auto
gthreshold
=
static_cast
<
uint32_t
>
(
dqm_algorithms
::
tools
::
GetFromMap
(
"NbadTrains"
,
config
.
getGreenThresholds
()
)
);
auto
rthreshold
=
static_cast
<
uint32_t
>
(
dqm_algorithms
::
tools
::
GetFromMap
(
"NbadTrains"
,
config
.
getRedThresholds
()
)
);
@@ -55,11 +47,7 @@ dqm_algorithms::AFP_ToFEfficiency::execute( const std::string& name,
uint32_t
each_tr_status
[
2
]
=
{};
for
(
uint32_t
i
=
1
;
i
<
5
;
++
i
)
{
<<<<<<<
HEAD
float
current_eff
=
histogram
->
GetBinContent
(
histogram
->
GetBin
(
5
,
i
));
=======
float
current_eff
=
histogram
->
GetEfficiency
(
histogram
->
GetGlobalBin
(
5
,
i
));
>>>>>>>
6
f1c858ac9cda197407bff0cadca10adaee6ae45
if
(
current_eff
>=
eff_limit
)
each_tr_status
[
0
]
++
;
else
Loading