|
std::string | name (void) const |
| returns name.
|
|
std::string | version (void) const |
| returns version.
|
|
std::string | configFile (void) const |
| returns configuration file name.
|
|
unsigned | mode (void) const |
| returns simulation mode.
|
|
unsigned | mode (unsigned) |
| sets and returns simulation mode.
|
|
unsigned | firmwareSimulationMode (void) const |
| returns firmware simulation mode.
|
|
void | dump (const std::string &message) const |
| dumps debug information.
|
|
int | debugLevel (void) const |
| returns debug level.
|
|
int | debugLevel (int) const |
| sets and returns debug level.
|
|
void | clear (void) |
| clears all TRGGDL information.
|
|
void | fastClear (void) |
| clears TRGGDL information.
|
|
void | update (bool mcAnalysis=true) |
| updates TRGGDL information.
|
|
const TRGClock & | systemClock (void) const |
| returns the system clock.
|
|
double | systemOffsetMC (void) const |
| returns the system offset in MC.
|
|
bool | doprescale (int f) |
|
bool | isFiredFTDL (std::vector< bool > input, std::string alg) |
|
void | checkDatabase () const |
| Check the content of the DBObjects used by this class.
|
|
std::vector< bool > | getInpBits (void) |
|
std::vector< bool > | getFtdBits (void) |
|
std::vector< bool > | getPsnBits (void) |
|
|
static TRGGDL * | getTRGGDL (const std::string &configFile, unsigned simulationMode=0, unsigned fastSimulationMode=0, unsigned firmwareSimulationMode=0, const std::string &Phase="Phase", bool algFromDB=true, const std::string &algFilePath="ftd.alg", int debugLevel=0, double timquality_threshold_sfin=0, double timquality_threshold_fine=0) |
| returns TRGGDL object with specific configuration.
|
|
static TRGGDL * | getTRGGDL (void) |
| returns TRGGDL object.
|
|
static TRGState | decision (const TRGState &input) |
| Makes bit pattern(state) using input bit pattern(state).
|
|
static TRGState | timingDecision (const TRGState &input, TRGState ®isters, bool &logicStillActive) |
| Makes timing decision.
|
|
|
| TRGGDL (const std::string &configFile, unsigned simulationMode, unsigned fastSimulationMode, unsigned firmwareSimulationMode, const std::string &Phase, bool algFromDB=true, const std::string &algFilePath="ftd.alg", int debugLevel=0, double timquality_threshold_sfin=0, double timquality_threshold_fine=0) |
| Constructor.
|
|
virtual | ~TRGGDL () |
| Destructor.
|
|
void | initialize (void) |
| initializes GDL.
|
|
void | configure (void) |
| configures trigger modules for firmware simulation.
|
|
void | simulate (void) |
| fast trigger simulation.
|
|
void | terminate (void) |
| terminates when run is finished
|
|
void | updateMC (void) |
| updates TRGGDL information for MC.
|
|
void | fastSimulation (void) |
| Fast simulation.
|
|
void | firmwareSimulation (void) |
| Firmware simulation.
|
|
void | dataSimulation (void) |
| Data simulation.
|
|
void | getInput (std::ifstream &ifs) |
| Read input data definition.
|
|
void | getOutput (std::ifstream &ifs) |
| Read output data definition.
|
|
void | getAlgorithm (std::ifstream &ifs) |
| Read algorithm data definition.
|
|
void | accumulateInp (TH1I *) |
| Accumulate bit info in histogram.
|
|
void | accumulateFtd (TH1I *) |
| Accumulate bit info in histogram.
|
|
void | accumulatePsn (TH1I *) |
| Accumulate bit info in histogram.
|
|
bool | isFiredInput (int n) |
| Returns fired/not for input bits.
|
|
bool | isFiredFtdl (int n) |
| Returns fired/not for ftdl bits.
|
|
bool | isFiredPsnm (int n) |
| Returns fired/not for psnm bits.
|
|
int | getNbitsOup (void) |
|
int | getNbitsInp (void) |
|
The instance of TRGGDL is a singleton.
'TRGGDL::getTRGGDL()' gives you a pointer to access the TRGGDL. Geometrical information is initialized automatically. Before accessing hit information, user has to call 'update()' to initialize hit information event by event.
Definition at line 44 of file TRGGDL.h.