|
pflib v3.14.3-4-g3289bd3
Pretty Fine HGCROC Interaction Library
|
Public Member Functions | |
| void | reset () |
| Reset the internals. | |
| int | n_elinks () const override |
| How many elinks are there? | |
| void | reset_alignment () override |
| reset the aligner block | |
| void | setup_alignment (int delay, uint16_t pattern, uint8_t elinks_to_ignore, bool bypass_match) override |
| Set up the alignment. | |
| void | get_alignment_setup (int &delay, uint16_t &pattern, uint8_t &elinks_to_ignore, bool &bypass_match) override |
| Get the alignment setup. | |
| std::vector< uint32_t > | read_capture_buffer (int ilink) override |
| Read the capture block for the given elink. | |
| std::map< std::string, uint32_t > | get_debug () override |
| void | setup_daq (int pipeline, int econ_id, int samples_per_l1a, int presamples) override |
| Setup the data collection of raw trigger data path. | |
| void | get_daq_setup (int &pipeline, int &econ_id, int &samples_per_l1a, int &presamples) override |
| get the data collection setup | |
| bool | is_sample_available () override |
| Is there a sample available? | |
| std::vector< uint32_t > | read_sample () override |
| Read the next sample of raw trigger path data. | |
| uint32_t | get_decoder_lut (uint16_t channel, uint16_t addr) |
| void | set_decoder_lut (uint16_t channel, uint16_t addr, uint32_t val) |
| void | setup_algo (const std::vector< uint32_t > ¶meters) override |
| configure the trigger algorithm | |
| std::vector< uint32_t > | get_algo_setup () override |
| get the trigger algorithm configuration | |
| bool | is_algo_output_available () override |
| Is there trigger algorithm output data? | |
| std::vector< uint32_t > | read_algo_output_sample () override |
| read the next sample of the output of the trigger algorithm | |
| bool | get_enable_single_shot () override |
| int | get_self_trigger_count () override |
| void | enable_single_shot (bool enable=true) override |
| bool | single_shot_fired () override |
| void | reset_single_shot () override |
Public Member Functions inherited from pflib::TRIG | |
| void | set_l1a_per_ror (int l1a_per_ror) |
| int | get_l1a_per_ror () const |
| std::vector< uint32_t > | read_event () |
| Read l1a_per_ror() number of samples and concatenate them into the same buffer. | |
| std::vector< uint32_t > | read_algo_output () |
| read l1a_per_ror() number of samples of the algo output and concatenate them into the same buffer | |
Private Attributes | |
| UIO | uio_ |
| int | nelinks_ |
| logging::logger | the_log_ |
|
overridevirtual |
Implements pflib::TRIG.
|
overridevirtual |
get the trigger algorithm configuration
Implements pflib::TRIG.
|
overridevirtual |
Get the alignment setup.
Implements pflib::TRIG.
|
overridevirtual |
get the data collection setup
Implements pflib::TRIG.
|
overridevirtual |
Reimplemented from pflib::TRIG.
|
overridevirtual |
Implements pflib::TRIG.
|
overridevirtual |
Implements pflib::TRIG.
|
overridevirtual |
Is there trigger algorithm output data?
Implements pflib::TRIG.
|
overridevirtual |
Is there a sample available?
Implements pflib::TRIG.
|
inlineoverridevirtual |
How many elinks are there?
Implements pflib::TRIG.
|
overridevirtual |
read the next sample of the output of the trigger algorithm
Implements pflib::TRIG.
|
overridevirtual |
Read the capture block for the given elink.
Implements pflib::TRIG.
|
overridevirtual |
Read the next sample of raw trigger path data.
Implements pflib::TRIG.
|
virtual |
Reset the internals.
Reimplemented from pflib::TRIG.
|
overridevirtual |
reset the aligner block
Implements pflib::TRIG.
|
overridevirtual |
Implements pflib::TRIG.
|
overridevirtual |
configure the trigger algorithm
The implementation defines which indices correspond to which parameters since it depends on the target and firmware that is in use.
the current simple trigger has the following parameters 0 -> history veto mask (1 byte) 1 -> threshold for ECON-T1 STC0 (1 byte) 2 -> threshold for ECON-T1 STC1 ... and so on up to index 15 (ECON-T2 STC7)
Implements pflib::TRIG.
|
overridevirtual |
Set up the alignment.
Implements pflib::TRIG.
|
overridevirtual |
Setup the data collection of raw trigger data path.
| [in] | pipeline | how far back in time (in BX) we should start the capture |
| [in] | econ_id | id number for ECON-T we are capturing from |
| [in] | samples_per_l1a | how many samples to caputre per L1A |
| [in] | presamples | number of samples before the BX of interest (i.e. index of sample of interest) |
Implements pflib::TRIG.
|
overridevirtual |
Implements pflib::TRIG.