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
Davide Di Croce
athena
Commits
8744da78
Commit
8744da78
authored
1 year ago
by
Tomasz Bold
Committed by
Melissa Yexley
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Added module ID to space points info
Added module ID to space points info
parent
024b24fd
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Reconstruction/HeavyIonRec/HIGlobal/python/RecordExtraInfoConfig.py
+1
-1
1 addition, 1 deletion
...tion/HeavyIonRec/HIGlobal/python/RecordExtraInfoConfig.py
Reconstruction/HeavyIonRec/HIGlobal/src/SpacePointCopier.cxx
+17
-1
17 additions, 1 deletion
Reconstruction/HeavyIonRec/HIGlobal/src/SpacePointCopier.cxx
with
18 additions
and
2 deletions
Reconstruction/HeavyIonRec/HIGlobal/python/RecordExtraInfoConfig.py
+
1
−
1
View file @
8744da78
...
...
@@ -6,7 +6,7 @@ from AthenaConfiguration.Enums import ProductionStep
from
AthenaConfiguration.ComponentFactory
import
CompFactory
from
OutputStreamAthenaPool.OutputStreamConfig
import
addToAOD
,
addToESD
spacePointKeys
=
[
"
xAOD::BaseContainer#SpacePoints
"
,
"
xAOD::AuxContainerBase#SpacePointsAux.x.y.z.tot.csize
"
]
spacePointKeys
=
[
"
xAOD::BaseContainer#SpacePoints
"
,
"
xAOD::AuxContainerBase#SpacePointsAux.x.y.z.tot.csize
.module1.module2
"
]
mbtsBitsKeys
=
[
"
xAOD::TrigT2MbtsBitsContainer#MBTSBits
"
,
"
xAOD::TrigT2MbtsBitsAuxContainer#MBTSBitsAux.
"
]
def
_inRecoOrLater
(
flags
):
...
...
This diff is collapsed.
Click to expand it.
Reconstruction/HeavyIonRec/HIGlobal/src/SpacePointCopier.cxx
+
17
−
1
View file @
8744da78
...
...
@@ -3,6 +3,8 @@
*/
#include
<algorithm>
#include
"InDetPrepRawData/PixelCluster.h"
#include
"InDetIdentifier/PixelID.h"
#include
"InDetIdentifier/SCT_ID.h"
#include
"SpacePointCopier.h"
SpacePointCopier
::
SpacePointCopier
(
const
std
::
string
&
name
,
ISvcLocator
*
pSvcLocator
)
:
...
...
@@ -64,6 +66,14 @@ StatusCode SpacePointCopier::execute(const EventContext& context) const
static
const
SG
::
AuxElement
::
Accessor
<
float
>
z
(
"z"
);
static
const
SG
::
AuxElement
::
Accessor
<
float
>
tot
(
"tot"
);
static
const
SG
::
AuxElement
::
Accessor
<
short
>
csize
(
"csize"
);
static
const
SG
::
AuxElement
::
Accessor
<
unsigned
int
>
module1
(
"module1"
);
static
const
SG
::
AuxElement
::
Accessor
<
unsigned
int
>
module2
(
"module2"
);
const
PixelID
*
pixelID
=
nullptr
;
const
SCT_ID
*
stripID
=
nullptr
;
ATH_CHECK
(
detStore
()
->
retrieve
(
pixelID
,
"PixelID"
));
ATH_CHECK
(
detStore
()
->
retrieve
(
stripID
,
"SCT_ID"
));
for
(
auto
coll
:
*
pixelSPContainer
)
{
...
...
@@ -76,6 +86,9 @@ StatusCode SpacePointCopier::execute(const EventContext& context) const
const
InDet
::
PixelCluster
*
cluster
=
static_cast
<
const
InDet
::
PixelCluster
*>
(
sp
->
clusterList
().
first
);
tot
(
*
item
)
=
float
(
cluster
->
totalToT
());
csize
(
*
item
)
=
short
(
cluster
->
totList
().
size
());
auto
[
hashId1
,
hashId2
]
=
sp
->
elementIdList
();
module1
(
*
item
)
=
hashId1
;
module2
(
*
item
)
=
hashId2
;
}
}
...
...
@@ -90,7 +103,10 @@ StatusCode SpacePointCopier::execute(const EventContext& context) const
z
(
*
item
)
=
float
(
sp
->
globalPosition
().
z
());
tot
(
*
item
)
=
0
;
csize
(
*
item
)
=
0
;
auto
[
hashId1
,
hashId2
]
=
sp
->
elementIdList
();
module1
(
*
item
)
=
hashId1
;
module2
(
*
item
)
=
hashId2
;
}
}
for
(
size_t
i
=
0
;
i
<
std
::
min
(
10ul
,
output
->
size
());
++
i
)
{
...
...
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