Belle II Software  release-08-01-10
TrgBit Class Reference

A general interface to get a trigger response. More...

#include <TrgBit.h>

Collaboration diagram for TrgBit:

Classes

class  InputBitPattern
 Input bit pattern class. More...
 
class  OutputBitPattern
 Output bit pattern class. More...
 

Public Member Functions

 TrgBit ()
 Constructor.
 
virtual ~TrgBit ()
 Destructor.
 
std::string version (void) const
 returns TrgBit version;
 
unsigned preScaleValue (output A) const
 returns pre-scale value.
 
unsigned preScaleValue (unsigned i) const
 
void printPreScaleValues (void) const
 print prescale values
 
void printConf (void) const
 print configuration values
 
bool isFired (output bitname) const
 returns true if the psnm bit is fired.
 
bool isFired (const char *bitname) const
 returns true if the input or psnm bit is fired.
 
bool isFired (input bitname) const
 returns true if the bit is fired.
 
bool isFiredInput (unsigned ith_bit) const
 
bool isFiredInput (input bitname) const
 
bool isFiredInput (const char *bitname) const
 
bool isFiredFtdl (unsigned ith_bit) const
 
bool isFiredFtdl (output bitname) const
 
bool isFiredFtdl (const char *bitname) const
 
bool isFiredPsnm (unsigned ith_bit) const
 
bool isFiredPsnm (output bitname) const
 
bool isFiredPsnm (const char *bitname) const
 
unsigned getNumOfInputs (void)
 return number of used bits
 
unsigned getNumOfOutputs (void)
 
unsigned getOutputBitNum (const char *bitname) const
 returns bit number
 
unsigned getOutputBitNum (output a)
 
unsigned getInputBitNum (const char *bitname) const
 returns bit number
 
unsigned getInputBitNum (input a)
 
int getBitNum (const char *bitname) const
 returns bit number for the exprun, if >=0 it is input_bitnum if <0 it is -output_bitnum-1
 
bool isFiredFilled (void)
 Whether hit information is available or not.
 
bool isUsed (input a) const
 Whether the bit exists for the run.
 
bool isUsed (output a) const
 
bool isUsed (const char *bitname) const
 
const char * getInputBitName (unsigned ith_bit) const
 returns bit name
 
const char * getOutputBitName (unsigned ith_bit) const
 
TRGSummary::ETimingType getTimingSource (void) const
 returns timing source
 
std::vector< unsigned > getInputVector (void)
 return hit information in vector
 
std::vector< unsigned > getFtdlVector (void)
 
std::vector< unsigned > getPsnmVector (void)
 
std::string versionFTDL (void) const
 returns FTDL version;
 

Private Member Functions

void mapNumber (unsigned exp, unsigned run)
 

Private Attributes

unsigned _exp
 
unsigned _run
 
unsigned nconf_psnm
 
unsigned nconf_ftdl
 
unsigned nconf_input
 
unsigned n_input
 
unsigned n_output
 
bool _isFiredFilled
 
TRGSummary::ETimingType timtype
 
InputBitPattern _input
 
OutputBitPattern _ftdl
 
OutputBitPattern _psnm
 
std::vector< unsigned > _itdVector
 hit information in vector
 
std::vector< unsigned > _ftdVector
 
std::vector< unsigned > _psnVector
 

Static Private Attributes

static const std::string _ftdlVersion [2]
 
static const unsigned _inputMap [N_INPUT_ARRAY][N_BITS_RESERVED]
 
static const unsigned _outputMap [N_OUTPUT_ARRAY][N_BITS_RESERVED]
 
static const unsigned _psnmValues [N_PSNM_ARRAY][N_BITS_RESERVED]
 
static const char * _inputBitNames [N_BITS_RESERVED]
 
static const char * _outputBitNames [N_BITS_RESERVED]
 

Detailed Description

A general interface to get a trigger response.

Definition at line 28 of file TrgBit.h.

Member Data Documentation

◆ _ftdlVersion

const std::string _ftdlVersion
staticprivate
Initial value:
= {
"ftdlv4_5.alg.dat",
"ftdlv4_3.alg.dat"
}

Definition at line 206 of file TrgBit.h.

◆ _inputBitNames

const char * _inputBitNames
staticprivate
Initial value:
= {
"t3_0", "t3_1", "t3_2", "t2_0", "t2_1", "t2_2", "cdc_open90", "cdc_active", "cdc_b2b3", "cdc_b2b5",
"cdc_b2b7", "cdc_b2b9", "ehigh", "elow", "elum", "ecl_bha", "bha_0", "bha_1", "bha_2", "bha_3",
"bha_4", "bha_5", "bha_6", "bha_7", "bha_8", "bha_9", "bha_10", "bha_11", "bha_12", "bha_13",
"c_0", "c_1", "c_2", "c_3", "ebg_0", "ebg_1", "ebg_2", "ecl_active", "ecl_tim_fwd", "ecl_tim_brl",
"ecl_tim_bwd", "ecl_phys", "top_0", "top_1", "top_2", "top_bb", "top_active", "klm_hit", "klm_0", "klm_1",
"klm_2", "klm_3", "klmb2b_0", "klmb2b_1", "klmb2b_2", "revo", "her_kick", "ler_kick", "bha_delay", "pseud_rand",
"plsin", "poiin", "periodin", "veto", "n1_0", "n1_1", "n1_2", "n2_0", "n2_1", "n2_2",
"cdcecl_0", "cdcecl_1", "cdcecl_2", "cdcklm_0", "cdcklm_1", "cdcklm_2", "nim0", "nim1", "nim2", "nim3",
"t3_3", "t2_3", "n1_3", "n2_3", "cdcecl_3", "cdcklm_3", "u2_0", "u2_1", "u2_2", "ecl_oflo",
"ecl_3dbha", "lml_0", "lml_1", "lml_2", "lml_3", "lml_4", "lml_5", "lml_6", "lml_7", "lml_8",
"lml_9", "lml_10", "samhem", "opohem", "d_b2b3", "d_b2b5", "d_b2b7", "d_b2b9", "p_b2b3", "p_b2b5",
"p_b2b7", "p_b2b9", "track", "trkflt", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A"
}

Definition at line 210 of file TrgBit.h.

◆ _outputBitNames

const char * _outputBitNames
staticprivate
Initial value:
= {
"zzz", "zzzo", "fff", "fffo", "zz", "zzo", "ff", "ffo", "hie", "lowe",
"lume", "c2", "c3", "c4", "c5", "bha", "bha_trk", "bha_brl", "bha_ecp", "g_high",
"g_c1", "gg", "mu_pair", "mu_b2b", "revo", "rand", "bg", "ecltiming", "nim0", "nima03",
"nimo03", "period", "eclnima03", "eclnimo03", "pls", "poi", "klmhit", "f", "fe", "ffe",
"fc", "ffc", "cdctiming", "cdcbb", "nim1c", "c1n0", "c1n1", "c1n2", "c1n3", "c1n4",
"c2n1", "c2n2", "c2n3", "c2n4", "cdcecl1", "cdcecl2", "cdcecl3", "cdcecl4", "cdcklm1", "cdcklm2",
"cdcklm3", "cdcklm4", "ffb", "uuu", "uuuo", "uub", "uuo", "c1hie", "c1lume", "n1hie",
"n1lume", "c3hie", "c3lume", "n3hie", "n3lume", "eed", "fed", "fp", "bha3d", "shem",
"ohem", "lml0", "lml1", "lml2", "lml3", "lml4", "lml5", "lml6", "lml7", "lml8",
"lml9", "lml10", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A",
"N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A"
}

Definition at line 211 of file TrgBit.h.


The documentation for this class was generated from the following files: