EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
MicromegasDefs.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MicromegasDefs.h
1
// Tell emacs that this is a C++ source
2
// This file is really -*- C++ -*-.
3
4
#ifndef MICROMEGAS_MICROMEGASDEFS_H
5
#define MICROMEGAS_MICROMEGASDEFS_H
6
12
#include <
trackbase/TrkrDefs.h
>
13
14
namespace
MicromegasDefs
15
{
16
18
enum class
SegmentationType
:
uint8_t
19
{
20
SEGMENTATION_Z
,
21
SEGMENTATION_PHI
22
};
23
25
26
enum class
DriftDirection
:
uint8_t
27
{
28
INWARD,
29
OUTWARD
30
};
31
40
static
constexpr
unsigned
int
kBitShiftSegmentation
__attribute__
((unused)) = 8;
41
static
constexpr
unsigned
int
kBitShiftTileId
__attribute__
((unused)) = 0;
42
44
static
constexpr
unsigned
int
kBitShiftStrip
__attribute__
((unused)) = 0;
45
55
TrkrDefs::hitsetkey
genHitSetKey
(
uint8_t
layer
,
SegmentationType
segmentation,
uint8_t
tile );
56
62
SegmentationType
getSegmentationType
(
TrkrDefs::hitsetkey
);
63
69
uint8_t
getTileId
(
TrkrDefs::hitsetkey
);
70
75
TrkrDefs::hitkey
genHitKey
(
uint16_t
strip );
76
78
uint16_t
getStrip
(
TrkrDefs::hitkey
);
79
86
TrkrDefs::cluskey
genClusterKey
(
TrkrDefs::hitsetkey
hskey,
uint32_t
clusid);
87
93
SegmentationType
getSegmentationType
(
TrkrDefs::cluskey
);
94
100
uint8_t
getTileId
(
TrkrDefs::cluskey
);
101
102
}
103
104
#endif
fun4all_coresoftware
blob
master
offline
packages
micromegas
MicromegasDefs.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:44
using
1.8.2 with
EIC GitHub integration