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
0a5e8526
Commit
0a5e8526
authored
1 year ago
by
Viktoriia Lysenko
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
29368ee2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!68897
AFP dqm algorithm for tof efficiency
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DataQuality/dqm_algorithms/src/AFP_ToFEfficiency.cxx
+0
-12
0 additions, 12 deletions
DataQuality/dqm_algorithms/src/AFP_ToFEfficiency.cxx
with
0 additions
and
12 deletions
DataQuality/dqm_algorithms/src/AFP_ToFEfficiency.cxx
+
0
−
12
View file @
0a5e8526
...
...
@@ -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
...
...
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