Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
LHCb
LHCb
Commits
44a8df0a
Commit
44a8df0a
authored
2 years ago
by
Shu Xian
Committed by
Rosen Matev
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add the LumiSummary offsets that are used in
Allen!943
as V0
parent
e9cdb708
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3518
Extend HltLumiSummary decoding to Run 3 format
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Event/LumiEvent/include/Event/LumiSummaryOffsets_V0.h
+75
-0
75 additions, 0 deletions
Event/LumiEvent/include/Event/LumiSummaryOffsets_V0.h
with
75 additions
and
0 deletions
Event/LumiEvent/include/Event/LumiSummaryOffsets_V0.h
0 → 100644
+
75
−
0
View file @
44a8df0a
/*****************************************************************************\
* (c) Copyright 2022 CERN for the benefit of the LHCb Collaboration *
* *
* This software is distributed under the terms of the Apache License *
* version 2 (Apache-2.0), copied verbatim in the file "COPYING". *
* *
* In applying this licence, CERN does not waive the privileges and immunities *
* granted to it by virtue of its status as an Intergovernmental Organization *
* or submit itself to any jurisdiction. *
\*****************************************************************************/
#pragma once
#include
<iostream>
namespace
LHCb
{
namespace
LumiSummaryOffsets
{
namespace
V0
{
enum
counterOffsets
:
unsigned
{
// All values are in bits - the required size of the array may be determined
// by dividing the largest offset by 8*sizeof(unsigned), i.e. 32, and rounding up.
// Fields must be contained within a single element of the array, e.g. an
// offset of 24 would allow for a maximum size of 8.
/// ODIN info
ODINStart
=
0
,
t0LowSize
=
32
,
t0LowOffset
=
ODINStart
+
0
,
// event time offset low 32 bits
t0HighSize
=
32
,
t0HighOffset
=
ODINStart
+
t0LowSize
,
// event time offset high 32 bits
bcidLowSize
=
32
,
bcidLowOffset
=
ODINStart
+
t0LowSize
+
t0HighSize
,
// re-mapped bcid low 32 bits
bcidHighSize
=
14
,
bcidHighOffset
=
ODINStart
+
t0LowSize
+
t0HighSize
+
bcidLowSize
,
// re-mapped bcid high 14 bits
bxTypeSize
=
2
,
bxTypeOffset
=
ODINStart
+
t0LowSize
+
t0HighSize
+
bcidLowSize
+
bcidHighSize
,
// bunch crossing type
ODINEnd
=
ODINStart
+
t0LowSize
+
t0HighSize
+
bcidLowSize
+
bcidHighSize
+
bxTypeSize
,
/// Global Event Cut
GecStart
=
ODINEnd
,
GecSize
=
1
,
GecOffset
=
GecStart
,
GecEnd
=
GecStart
+
GecSize
,
/// Velo counters
VeloCountersStart
=
GecEnd
,
VeloTracksSize
=
15
,
VeloTracksOffset
=
VeloCountersStart
+
0
,
// number of Velo tracks
VeloVerticesSize
=
6
,
VeloVerticesOffset
=
VeloCountersStart
+
VeloTracksSize
,
// number of Velo vertices
VeloCountersEnd
=
VeloCountersStart
+
VeloTracksSize
+
VeloVerticesSize
,
/// RICH counters
RichCountersStart
=
VeloCountersEnd
,
RichCountersEnd
=
RichCountersStart
+
0
,
/// SciFi counters
SciFiCountersStart
=
RichCountersEnd
,
SciFiClustersSize
=
15
,
SciFiClustersOffset
=
SciFiCountersStart
+
0
,
// number of SciFi Clusters
SciFiCountersEnd
=
SciFiCountersStart
+
SciFiClustersSize
,
/// CALO counters
CaloCountersStart
=
SciFiCountersEnd
,
CaloCountersEnd
=
CaloCountersStart
+
0
,
/// Muon counters
MuonCountersStart
=
CaloCountersEnd
,
M2R2Size
=
11
,
M2R2Offset
=
MuonCountersStart
,
// M2R2 hits
M2R3Size
=
11
,
M2R3Offset
=
MuonCountersStart
+
M2R2Size
,
// M2R3 hits
M3R2Size
=
11
,
M3R2Offset
=
MuonCountersStart
+
M2R2Size
+
M2R3Size
,
// M3R2 hits
M3R3Size
=
10
,
M3R3Offset
=
MuonCountersStart
+
M2R2Size
+
M2R3Size
+
M3R2Size
,
// M3R3 hits
MuonCountersEnd
=
MuonCountersStart
+
M2R2Size
+
M2R3Size
+
M3R2Size
+
M3R3Size
,
/// the largest offset rounded up to the next multiple of 32
TotalSize
=
(
(
MuonCountersEnd
-
1
)
/
32
+
1
)
*
32
};
// enum CounterOffsets
}
// namespace V0
}
// namespace LumiSummaryOffsets
}
// namespace LHCb
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