Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
7a7cc4d3
Commit
7a7cc4d3
authored
10 years ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
Add Bitflag to store CellID1 in SimCalorimeterHit collections
parent
55d8fa8e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDG4/lcio/LCIOConversions.cpp
+2
-2
2 additions, 2 deletions
DDG4/lcio/LCIOConversions.cpp
with
2 additions
and
2 deletions
DDG4/lcio/LCIOConversions.cpp
+
2
−
2
View file @
7a7cc4d3
...
...
@@ -119,7 +119,7 @@ namespace DD4hep {
string
dsc
=
encoding
(
args
.
first
,
hit
->
cellID
);
lcio
::
LCCollectionVec
*
lc_coll
=
new
lcio
::
LCCollectionVec
(
lcio
::
LCIO
::
SIMCALORIMETERHIT
);
UTIL
::
CellIDEncoder
<
SimCalorimeterHit
>
decoder
(
dsc
,
lc_coll
);
lc_coll
->
setFlag
(
UTIL
::
make_bitset32
(
LCIO
::
CHBIT_LONG
,
LCIO
::
CHBIT_STEP
));
lc_coll
->
setFlag
(
UTIL
::
make_bitset32
(
LCIO
::
CHBIT_LONG
,
LCIO
::
CHBIT_STEP
,
LCIO
::
CHBIT_ID1
));
lc_coll
->
reserve
(
nhits
);
for
(
size_t
i
=
0
;
i
<
nhits
;
++
i
)
{
const
SimpleCalorimeter
::
Hit
*
g4_hit
=
coll
->
hit
(
i
);
...
...
@@ -200,7 +200,7 @@ namespace DD4hep {
long
long
int
cellID
=
(((
id1
<<
32
)
&
0xFFFFFFFF00000000
)
|
(
id0
&
0xFFFFFFFF
));
string
dsc
=
encoding
(
args
.
first
,
cellID
);
UTIL
::
CellIDEncoder
<
SimCalorimeterHit
>
decoder
(
dsc
,
lc
);
lc
->
setFlag
(
UTIL
::
make_bitset32
(
LCIO
::
CHBIT_LONG
,
LCIO
::
CHBIT_STEP
));
lc
->
setFlag
(
UTIL
::
make_bitset32
(
LCIO
::
CHBIT_LONG
,
LCIO
::
CHBIT_STEP
,
LCIO
::
CHBIT_ID1
));
return
moveEntries
<
tag_t
>
(
args
.
second
,
lc
);
}
...
...
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