Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MicromegasDefs.h File Reference
#include <trackbase/TrkrDefs.h>
#include <array>
+ Include dependency graph for MicromegasDefs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MicromegasDefs
 

Enumerations

enum  MicromegasDefs::SegmentationType : uint8_t
 tells the direction along which a given cylinder is segmented More...
 
enum  MicromegasDefs::DriftDirection : uint8_t
 tells the drift direction for a given micromegas layer More...
 

Functions

static constexpr unsigned int
kBitShiftSegmentation 
MicromegasDefs::__attribute__ ((unused))=0
 bit shift for hit key
 
TrkrDefs::hitsetkey MicromegasDefs::genHitSetKey (uint8_t layer, SegmentationType segmentation, uint8_t tile)
 Generate a hitsetkey for the micromegas.
 
SegmentationType MicromegasDefs::getSegmentationType (TrkrDefs::hitsetkey)
 Get the segmentation type from hitsetkey.
 
uint8_t MicromegasDefs::getTileId (TrkrDefs::hitsetkey)
 Get the tile id from hitsetkey.
 
TrkrDefs::hitkey MicromegasDefs::genHitKey (uint16_t strip)
 Generate a hitkey from strip index inside tile.
 
uint16_t MicromegasDefs::getStrip (TrkrDefs::hitkey)
 get strip from hit key
 
SegmentationType MicromegasDefs::getSegmentationType (TrkrDefs::cluskey)
 Get the segmentation type from cluster key.
 
uint8_t MicromegasDefs::getTileId (TrkrDefs::cluskey)
 Get the tile id from cluster key.
 

Variables

static constexpr int MicromegasDefs::m_npackets = 3
 TPOT packet ids.
 
static constexpr std::array
< unsigned int, m_npackets > 
MicromegasDefs::m_packet_ids = {5000, 5001, 5002}
 
static constexpr int MicromegasDefs::m_nchannels_fee = 256
 number of channels per fee board
 
static constexpr int MicromegasDefs::m_nfee = 16
 number of fee boards
 
static constexpr int MicromegasDefs::m_nchannels_total = m_nfee*m_nchannels_fee
 total number of channels
 
static constexpr int MicromegasDefs::m_max_adc = 1024
 max adc value per readout sample
 

Detailed Description