BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
StsConst Namespace Reference

Classes

struct  fsdHitXY

Enumerations

enum  SideType { POS = 0 , NEG = 1 }
enum  SensMID {
  B008 = 0 , B032 = 1 , B004 = 2 , B011 = 3 ,
  B034 = 4 , B010 = 5
}

Functions

UInt_t GetIdx_SideFromAsic (UInt_t iAsicIdx)
uint16_t GetIdx_AsicFromELink (uint16_t uELinkIdx)
UInt_t GetIdx_SensorFromAsic (uint16_t iDpbIdx, uint16_t iAsicIdx)
uint16_t GetIdx_Strip (uint16_t iSensIdx, uint16_t iAsicIdx, uint16_t iChannel)
fsdHitXY ComputeHitXYfromStrip (Double_t dStripN, Double_t dStripP)
fsdHitXY ComputeVspGeomFromSsXY (UInt_t uSensIdx, Double_t dSsX, Double_t dSsY)

Variables

static constexpr uint16_t kuHitNbAdcBins = 32
static constexpr uint16_t kuHitNbTsBins = 512
static constexpr double kdClockCycleNs = 12.5
static constexpr uint16_t kuStripsPerSide = 1024
static constexpr Double_t kdSensorsSzX = 60.
static constexpr Double_t kdSensorsSzY = 60.
static constexpr Double_t kdPitchMm = 0.058
static constexpr Double_t kdStereoAngle = 7.5
static constexpr uint16_t kuNbElinksPerDpb = 48
static constexpr uint16_t kuTotalNbOfSensors = 6
static constexpr uint16_t kuTotalNbOfMAPS = 3
static const TString cSideName [2] = {"POS", "NEG"}
static constexpr uint16_t kuELinkToAsicMap [kuNbElinksPerDpb]
static constexpr uint16_t kuDpbArray [2] {0x18D1, 0x1940}
static const TString sMID [kuTotalNbOfSensors]
static const Double_t kdStereoAngleTan = TMath::Tan(StsConst::kdStereoAngle * TMath::DegToRad())
const Double_t dSp = 58. * 0.990
const Double_t dSpHalf = 0.5 * dSp
fsdHitXY fsdSensLocCoord [kuTotalNbOfSensors]

Enumeration Type Documentation

◆ SensMID

Enumerator
B008 0 
B032 1 
B004 2 
B011 3 
B034 4 
B010 5 

Definition at line 58 of file StsConst.h.

◆ SideType

Enumerator
POS 0 
NEG 1 

Definition at line 33 of file StsConst.h.

Function Documentation

◆ ComputeHitXYfromStrip()

fsdHitXY StsConst::ComputeHitXYfromStrip ( Double_t dStripN,
Double_t dStripP )

◆ ComputeVspGeomFromSsXY()

fsdHitXY StsConst::ComputeVspGeomFromSsXY ( UInt_t uSensIdx,
Double_t dSsX,
Double_t dSsY )

Definition at line 230 of file StsConst.h.

References fsdSensLocCoord, StsConst::fsdHitXY::X, and StsConst::fsdHitXY::Y.

◆ GetIdx_AsicFromELink()

uint16_t StsConst::GetIdx_AsicFromELink ( uint16_t uELinkIdx)

Definition at line 79 of file StsConst.h.

References kuELinkToAsicMap, and kuNbElinksPerDpb.

Referenced by BmnVspRaw2Digit::FillEvent().

Here is the caller graph for this function:

◆ GetIdx_SensorFromAsic()

UInt_t StsConst::GetIdx_SensorFromAsic ( uint16_t iDpbIdx,
uint16_t iAsicIdx )

Definition at line 91 of file StsConst.h.

References kuDpbArray.

Referenced by BmnVspRaw2Digit::FillEvent().

Here is the caller graph for this function:

◆ GetIdx_SideFromAsic()

UInt_t StsConst::GetIdx_SideFromAsic ( UInt_t iAsicIdx)

Definition at line 72 of file StsConst.h.

References NEG, and POS.

Referenced by BmnVspRaw2Digit::FillEvent().

Here is the caller graph for this function:

◆ GetIdx_Strip()

uint16_t StsConst::GetIdx_Strip ( uint16_t iSensIdx,
uint16_t iAsicIdx,
uint16_t iChannel )

Definition at line 128 of file StsConst.h.

References B010.

Referenced by BmnVspRaw2Digit::FillEvent().

Here is the caller graph for this function:

Variable Documentation

◆ cSideName

const TString StsConst::cSideName[2] = {"POS", "NEG"}
static

Definition at line 38 of file StsConst.h.

◆ dSp

const Double_t StsConst::dSp = 58. * 0.990

Definition at line 178 of file StsConst.h.

◆ dSpHalf

const Double_t StsConst::dSpHalf = 0.5 * dSp

Definition at line 179 of file StsConst.h.

◆ fsdSensLocCoord

fsdHitXY StsConst::fsdSensLocCoord[kuTotalNbOfSensors]
Initial value:
= {-dSp, dSpHalf, 0., dSp, dSp, 30.,
dSp, -30., 0., -dSp, -dSp, -30}
const Double_t dSp
Definition StsConst.h:178
const Double_t dSpHalf
Definition StsConst.h:179

Definition at line 181 of file StsConst.h.

Referenced by ComputeVspGeomFromSsXY().

◆ kdClockCycleNs

double StsConst::kdClockCycleNs = 12.5
staticconstexpr

Definition at line 17 of file StsConst.h.

Referenced by BmnVspRaw2Digit::FillEvent().

◆ kdPitchMm

Double_t StsConst::kdPitchMm = 0.058
staticconstexpr

Definition at line 23 of file StsConst.h.

Referenced by ComputeHitXYfromStrip().

◆ kdSensorsSzX

Double_t StsConst::kdSensorsSzX = 60.
staticconstexpr

Definition at line 20 of file StsConst.h.

Referenced by ComputeHitXYfromStrip().

◆ kdSensorsSzY

Double_t StsConst::kdSensorsSzY = 60.
staticconstexpr

Definition at line 21 of file StsConst.h.

Referenced by ComputeHitXYfromStrip().

◆ kdStereoAngle

Double_t StsConst::kdStereoAngle = 7.5
staticconstexpr

Definition at line 25 of file StsConst.h.

◆ kdStereoAngleTan

const Double_t StsConst::kdStereoAngleTan = TMath::Tan(StsConst::kdStereoAngle * TMath::DegToRad())
static

Definition at line 70 of file StsConst.h.

Referenced by ComputeHitXYfromStrip().

◆ kuDpbArray

uint16_t StsConst::kuDpbArray[2] {0x18D1, 0x1940}
staticconstexpr

Definition at line 49 of file StsConst.h.

Referenced by GetIdx_SensorFromAsic().

◆ kuELinkToAsicMap

uint16_t StsConst::kuELinkToAsicMap[kuNbElinksPerDpb]
staticconstexpr
Initial value:
{
0x0000, 0x0002, 0x0004, 0x0006, 0x0001, 0x0003, 0x0005, 0x0007, 0x0009, 0x000B, 0x000D, 0x000F,
0x0008, 0x000A, 0x000C, 0x000E, 0x0010, 0x0012, 0x0014, 0x0016, 0x0011, 0x0013, 0x0015, 0x0017,
0x0019, 0x001B, 0x001D, 0x001F, 0x0018, 0x001A, 0x001C, 0x001E,
0x0020, 0x0022, 0x0024, 0x0026, 0x0021, 0x0023, 0x0025, 0x0027,
0x0029, 0x002B, 0x002D, 0x002F, 0x0028, 0x002A, 0x002C, 0x002E,
}

Definition at line 41 of file StsConst.h.

Referenced by GetIdx_AsicFromELink().

◆ kuHitNbAdcBins

uint16_t StsConst::kuHitNbAdcBins = 32
staticconstexpr

Definition at line 15 of file StsConst.h.

◆ kuHitNbTsBins

uint16_t StsConst::kuHitNbTsBins = 512
staticconstexpr

Definition at line 16 of file StsConst.h.

◆ kuNbElinksPerDpb

uint16_t StsConst::kuNbElinksPerDpb = 48
staticconstexpr

Definition at line 28 of file StsConst.h.

Referenced by GetIdx_AsicFromELink().

◆ kuStripsPerSide

uint16_t StsConst::kuStripsPerSide = 1024
staticconstexpr

Definition at line 18 of file StsConst.h.

Referenced by ComputeHitXYfromStrip().

◆ kuTotalNbOfMAPS

uint16_t StsConst::kuTotalNbOfMAPS = 3
staticconstexpr

Definition at line 31 of file StsConst.h.

◆ kuTotalNbOfSensors

uint16_t StsConst::kuTotalNbOfSensors = 6
staticconstexpr

Definition at line 29 of file StsConst.h.

◆ sMID

const TString StsConst::sMID[kuTotalNbOfSensors]
static
Initial value:
{"B008", "B032", "B004",
"B011", "B034", "B010"}

Definition at line 67 of file StsConst.h.