MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
SOLPack Namespace Reference

Layout of the packed word MapSOLFlagsToCoMPASS() returns. More...

Variables

const Int_t LOW_SHIFT = 16
 Where flags_low starts.
const UInt_t LOW_MASK = 0x7FF
 flags_low bits 0-10.
const Int_t HIGH_SHIFT = 27
 Where the flags_high remnant starts.
const Int_t HIGH_SKIP = 2
 flags_high bits 0-1 are not carried here.
const UInt_t HIGH_MASK = 0x1F
 flags_high bits 2-6.

Detailed Description

Layout of the packed word MapSOLFlagsToCoMPASS() returns.

The two SOLARIS words carry 18 defined bits between them — flags_high 0-6 and flags_low 0-10 — while only 16 bits are free above the CoMPASS-compatible half. They cannot both be kept whole.

What makes it fit: three of the flags_high bits (pileup, event saturation, post saturation) are already represented as their CoMPASS equivalents in the lower half, so carrying them again would be redundant. Bits 2-6 of flags_high plus all 11 of flags_low come to exactly 16. Only flags_high bit 0 is dropped, and CoMPASSData::PILEUP is that bit.

bits 0-15 CoMPASS-compatible flags (downstream code unchanged)
bits 16-26 SOLARIS flags_low, all 11 defined bits
bits 27-31 SOLARIS flags_high bits 2-6
Warning
Do not widen these without checking CoMPASSData. It defines PLL_LOCK_LOSS, OVER_TEMPERATURE and ADC_SHUTDOWN at bits 19-21, which is why the upper half is only safe to reuse for hits that came from a SOLARIS digitiser in the first place.

Variable Documentation

◆ HIGH_MASK

const UInt_t SOLPack::HIGH_MASK = 0x1F

flags_high bits 2-6.

Definition at line 75 of file HitAdapter.hpp.

Referenced by MapSOLFlagsToCoMPASS(), and SOLFlagsHighFrom().

◆ HIGH_SHIFT

const Int_t SOLPack::HIGH_SHIFT = 27

Where the flags_high remnant starts.

Definition at line 73 of file HitAdapter.hpp.

Referenced by MapSOLFlagsToCoMPASS(), and SOLFlagsHighFrom().

◆ HIGH_SKIP

const Int_t SOLPack::HIGH_SKIP = 2

flags_high bits 0-1 are not carried here.

Definition at line 74 of file HitAdapter.hpp.

Referenced by MapSOLFlagsToCoMPASS(), and SOLFlagsHighFrom().

◆ LOW_MASK

const UInt_t SOLPack::LOW_MASK = 0x7FF

flags_low bits 0-10.

Definition at line 72 of file HitAdapter.hpp.

Referenced by MapSOLFlagsToCoMPASS(), and SOLFlagsLowFrom().

◆ LOW_SHIFT

const Int_t SOLPack::LOW_SHIFT = 16

Where flags_low starts.

Definition at line 71 of file HitAdapter.hpp.

Referenced by MapSOLFlagsToCoMPASS(), and SOLFlagsLowFrom().