Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Beojan Stanislaus
athena
Commits
bf876ba7
Commit
bf876ba7
authored
3 years ago
by
Margherita Spalla
Committed by
Frank Winklmeier
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Ndefiating channels fix
parent
298a5d59
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LArCalorimeter/LArMonitoring/src/LArHVCorrectionMonAlg.cxx
+8
-7
8 additions, 7 deletions
LArCalorimeter/LArMonitoring/src/LArHVCorrectionMonAlg.cxx
LArCalorimeter/LArMonitoring/src/LArHVCorrectionMonAlg.h
+2
-1
2 additions, 1 deletion
LArCalorimeter/LArMonitoring/src/LArHVCorrectionMonAlg.h
with
10 additions
and
8 deletions
LArCalorimeter/LArMonitoring/src/LArHVCorrectionMonAlg.cxx
+
8
−
7
View file @
bf876ba7
...
...
@@ -18,7 +18,7 @@ LArHVCorrectionMonAlg::LArHVCorrectionMonAlg(const std::string& name, ISvcLocato
:
AthMonitorAlgorithm
(
name
,
pSvcLocator
),
m_LArOnlineIDHelper
(
0
),
m_caloIdMgr
(
0
),
m_
last
LB
(
0
)
m_
filled
LB
()
{
}
/*---------------------------------------------------------*/
...
...
@@ -46,17 +46,18 @@ StatusCode LArHVCorrectionMonAlg::initialize()
StatusCode
LArHVCorrectionMonAlg
::
fillHistograms
(
const
EventContext
&
ctx
)
const
{
ATH_MSG_DEBUG
(
"in fillHists()"
);
bool
doMonitor
=
false
;
unsigned
int
thisLB
=
ctx
.
eventID
().
lumi_block
();
bool
doMonitor
=
false
;
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
m_mut
);
if
(
ctx
.
eventID
().
lumi_block
()
>
m_last
LB
)
{
m_
lastLB
=
ctx
.
eventID
().
lumi_block
(
);
doMonitor
=
true
;
if
(
!
m_filledLB
.
count
(
this
LB
)
)
{
m_
filledLB
.
insert
(
thisLB
);
doMonitor
=
true
;
}
}
if
(
doMonitor
)
{
if
(
doMonitor
)
{
//LB not yet monitored, so do the monitoring now
const
CaloDetDescrManager
*
ddman
=
nullptr
;
ATH_CHECK
(
detStore
()
->
retrieve
(
ddman
,
"CaloMgr"
)
);
...
...
This diff is collapsed.
Click to expand it.
LArCalorimeter/LArMonitoring/src/LArHVCorrectionMonAlg.h
+
2
−
1
View file @
bf876ba7
...
...
@@ -29,6 +29,7 @@
#include
<string>
#include
<map>
#include
<mutex>
#include
<set>
class
LArOnlineID
;
class
CaloDetDescrManager
;
...
...
@@ -71,7 +72,7 @@ class LArHVCorrectionMonAlg: public AthMonitorAlgorithm
// Other things
// FIXME: How to find new LB, and fill only once per LB ?
mutable
unsigned
int
m_
last
LB
ATLAS_THREAD_SAFE
;
mutable
std
::
set
<
unsigned
int
>
m_
filled
LB
ATLAS_THREAD_SAFE
;
mutable
std
::
mutex
m_mut
ATLAS_THREAD_SAFE
;
};
...
...
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