Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
Aric Tate
athena
Commits
62cbab41
Commit
62cbab41
authored
5 years ago
by
Ben Carlson
Browse files
Options
Downloads
Patches
Plain Diff
pedestals
parent
a7ddcbf6
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
Trigger/TrigL1Upgrade/TrigL1CaloUpgrade/src/SuperCellBCIDAlg.cxx
+10
-3
10 additions, 3 deletions
.../TrigL1Upgrade/TrigL1CaloUpgrade/src/SuperCellBCIDAlg.cxx
Trigger/TrigL1Upgrade/TrigL1CaloUpgrade/src/SuperCellBCIDAlg.h
+2
-1
2 additions, 1 deletion
...er/TrigL1Upgrade/TrigL1CaloUpgrade/src/SuperCellBCIDAlg.h
with
12 additions
and
4 deletions
Trigger/TrigL1Upgrade/TrigL1CaloUpgrade/src/SuperCellBCIDAlg.cxx
+
10
−
3
View file @
62cbab41
...
...
@@ -16,8 +16,15 @@ n
#include
"CaloEvent/CaloCellContainer.h"
#include
"xAODEventInfo/EventInfo.h"
SuperCellBCIDAlg
::
SuperCellBCIDAlg
(
const
std
::
string
&
name
,
ISvcLocator
*
pSvcLocator
)
:
AthAlgorithm
(
name
,
pSvcLocator
),
m_tool
(
"CaloLumiBCIDTool/CaloLumiBCIDSCToolDefault"
)
SuperCellBCIDAlg
::
SuperCellBCIDAlg
(
const
std
::
string
&
name
,
ISvcLocator
*
pSvcLocator
)
:
AthAlgorithm
(
name
,
pSvcLocator
),
m_tool
(
"CaloLumiBCIDTool/CaloLumiBCIDSCToolDefault"
)
{
declareProperty
(
"SCellContainerIn"
,
m_sCellContainerIn
=
"SCellContainer"
,
"SG key for the input supercell LAr channel container."
);
declareProperty
(
"SCellContainerOut"
,
m_sCellContainerOut
=
"SCellBCID"
,
"SG key for the output supercell LAr channel container."
);
}
StatusCode
...
...
@@ -33,7 +40,7 @@ SuperCellBCIDAlg::execute()
{
const
CaloCellContainer
*
scells_from_sg
;
if
(
evtStore
()
->
retrieve
(
scells_from_sg
,
"S
Cell
"
).
isFailure
()
){
if
(
evtStore
()
->
retrieve
(
scells_from_sg
,
m_s
Cell
ContainerIn
).
isFailure
()
){
ATH_MSG_WARNING
(
"did not find cell container"
);
return
StatusCode
::
SUCCESS
;
}
...
...
@@ -45,7 +52,7 @@ SuperCellBCIDAlg::execute()
int
bcid
=
evt
->
bcid
();
CaloCellContainer
*
new_scell_cont
=
new
CaloCellContainer
(
SG
::
OWN_ELEMENTS
);
ATH_CHECK
(
evtStore
()
->
record
(
new_scell_cont
,
"S
Cell
BCID"
)
);
ATH_CHECK
(
evtStore
()
->
record
(
new_scell_cont
,
m_s
Cell
ContainerOut
)
);
new_scell_cont
->
reserve
(
scells_from_sg
->
size
()
);
for
(
auto
sc
:
*
scells_from_sg
){
if
(
!
sc
)
continue
;
...
...
This diff is collapsed.
Click to expand it.
Trigger/TrigL1Upgrade/TrigL1CaloUpgrade/src/SuperCellBCIDAlg.h
+
2
−
1
View file @
62cbab41
...
...
@@ -35,7 +35,8 @@ public :
private
:
ToolHandle
<
ICaloLumiBCIDTool
>
m_tool
;
std
::
string
m_sCellContainerIn
;
std
::
string
m_sCellContainerOut
;
};
#endif
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