ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
blob
master
calibrations
generators
offline
database
framework
packages
CaloBase
CaloReco
centrality
ClusterIso
compressor
Half
HelixHough
intt
jetbackground
KFParticle_sPHENIX
micromegas
mvtx
CylinderGeom_Mvtx.cc
CylinderGeom_Mvtx.h
CylinderGeom_MvtxLinkDef.h
MvtxClusterizer.cc
MvtxClusterizer.h
MvtxDefs.cc
MvtxDefs.h
SegmentationAlpide.cc
SegmentationAlpide.h
NodeDump
particleflow
PHField
PHGenFitPkg
PHGeometry
PHTpcTracker
tpc
tpccalib
tpcdaq
trackbase
trackbase_historic
trackreco
trigger
vararray
QA
simulation
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
MvtxDefs.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MvtxDefs.h
1
7
#ifndef MVTX_MVTXDEFUTIL_H
8
#define MVTX_MVTXDEFUTIL_H
9
10
#include <
trackbase/TrkrDefs.h
>
11
12
#include <cstdint>
// for uint8_t, uint16_t, uint32_t
13
20
namespace
MvtxDefs
21
{
22
// hitsetkey layout:
23
// Mvtx specific lower 16 bits
24
// 24 - 32 tracker id
25
// 16 - 24 layer
26
// 8 - 16 stave id
27
// 0 - 8 chip id
28
static
const
unsigned
int
kBitShiftStaveId
__attribute__
((unused)) = 8;
29
static
const
unsigned
int
kBitShiftChipId
__attribute__
((unused)) = 0;
30
31
// bit shift for hitkey
32
static
const
unsigned
int
kBitShiftCol
__attribute__
((unused)) = 16;
33
static
const
unsigned
int
kBitShiftRow
__attribute__
((unused)) = 0;
34
35
// max values for col and row index in chip
36
static
const
uint16_t MAXCOL
__attribute__
((unused)) = 1024;
37
static
const
uint16_t MAXROW
__attribute__
((unused)) = 512;
38
44
uint8_t
getStaveId
(
TrkrDefs::hitsetkey
key);
45
51
uint8_t
getStaveId
(
TrkrDefs::cluskey
key);
52
58
uint8_t
getChipId
(
TrkrDefs::hitsetkey
key);
59
65
uint8_t
getChipId
(
TrkrDefs::cluskey
key);
66
72
uint16_t
getCol
(
TrkrDefs::hitkey
key);
73
79
uint16_t
getRow
(
TrkrDefs::hitkey
key);
80
87
TrkrDefs::hitkey
genHitKey
(
const
uint16_t
col
,
const
uint16_t row);
88
99
TrkrDefs::hitsetkey
genHitSetKey
(
const
uint8_t lyr,
const
uint8_t stave,
const
uint8_t chip);
100
109
TrkrDefs::cluskey
genClusKey
(
const
uint8_t lyr,
const
uint8_t stave,
const
uint8_t chip,
const
uint32_t clusid);
110
117
TrkrDefs::cluskey
genClusKey
(
const
TrkrDefs::hitsetkey
hskey,
const
uint32_t clusid);
118
119
}
// namespace MvtxDefs
120
121
#endif //MVTX_MVTXDEFUTIL_H
coresoftware
blob
master
offline
packages
mvtx
MvtxDefs.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:36
using
1.8.2 with
ECCE GitHub integration