|
Jpp test-rotations-old-533-g2bdbdb559
the software that should make you happy
|
Default CLB simulation. More...
#include <JCLBDefaultSimulator.hh>
Classes | |
| class | JStateMachine |
| Auxiliary class to mimic hit ordering effects due to state machine inside CLB. More... | |
| class | JTDC |
| Implementation of non-linearity of TDC. More... | |
Public Types | |
| typedef JDAQHit::JPMT_t | JPMT_t |
| typedef JDAQHit::JTDC_t | JTDC_t |
| typedef JDAQHit::JTOT_t | JTOT_t |
Public Member Functions | |
| JCLBDefaultSimulator (const JDAQHit::JTDC_t Tmax=0) | |
| Constructor. | |
| JDAQFrameStatus | getDAQFrameStatus (const JModuleIdentifier &id) const |
| Get DAQ frame status of given module. | |
| virtual void | processData (const JModuleIdentifier &id, const JCLBInput &input, JDAQSuperFrame &output) const override |
| Process data. | |
| virtual int | getUDPNumberOfReceivedPackets (const JModuleIdentifier &id) const |
| Get number of received UDP packets. | |
| virtual int | getUDPMaximalSequenceNumber (const JModuleIdentifier &id) const |
| Get maximal sequence number of UDP packet. | |
| virtual bool | hasUDPTrailer (const JModuleIdentifier &id) const |
| Get UDP trailer status. | |
| virtual bool | getHighRateVeto (const JPMTIdentifier &id) const |
| Get high-rate veto of given PMT. | |
Static Public Member Functions | |
| static double | getMinimalToT () |
| Get minimal pulse length of time-over-threshold measurement. | |
Static Public Attributes | |
| static const struct JDETECTOR::JCLBDefaultSimulatorInterface::compare | compare |
Private Attributes | |
| JLANG::JSinglePointer< JTDC > | TDC |
| JLANG::JSinglePointer< JStateMachine > | state_machine |
| std::vector< JDAQHit > | buffer |
Default CLB simulation.
This class provides for the implementation of the conversion of a time-over-threshold pulse to a hit.
A hit consists of:
The time stamping and pulse length determination is done by a TDC which is integrated inside the FPGA. The observed non-linearity of the TDC is implemented in this class.
Although the hits from the same PMT are striclty time sorted, hits from different PMTs could be reordered due to the occupancy of the buffers inside the FPGA. This reordering is also implemented in the this class.
Definition at line 134 of file JCLBDefaultSimulator.hh.
Definition at line 61 of file JCLBDefaultSimulatorInterface.hh.
Definition at line 62 of file JCLBDefaultSimulatorInterface.hh.
Definition at line 63 of file JCLBDefaultSimulatorInterface.hh.
|
inline |
Constructor.
| Tmax | maximal time difference for swap [ns] |
Definition at line 223 of file JCLBDefaultSimulator.hh.
|
inlineinherited |
Get DAQ frame status of given module.
| id | module identifier |
Definition at line 143 of file JCLBDefaultSimulatorInterface.hh.
|
inlineoverridevirtualinherited |
Process data.
| id | module identifier |
| input | PMT data |
| output | CLB data |
Implements JDETECTOR::JCLBSimulator.
Definition at line 167 of file JCLBDefaultSimulatorInterface.hh.
|
inlinevirtualinherited |
Get number of received UDP packets.
| id | module identifier |
Reimplemented in JTRIGGER::JCLBRunByRunSimulator.
Definition at line 275 of file JCLBDefaultSimulatorInterface.hh.
|
inlinevirtualinherited |
Get maximal sequence number of UDP packet.
| id | module identifier |
Reimplemented in JTRIGGER::JCLBRunByRunSimulator.
Definition at line 287 of file JCLBDefaultSimulatorInterface.hh.
|
inlinevirtualinherited |
Get UDP trailer status.
| id | module identifier |
Reimplemented in JTRIGGER::JCLBRunByRunSimulator.
Definition at line 299 of file JCLBDefaultSimulatorInterface.hh.
|
inlinevirtualinherited |
Get high-rate veto of given PMT.
| id | PMT identifier |
Reimplemented in JTRIGGER::JCLBRunByRunSimulator.
Definition at line 311 of file JCLBDefaultSimulatorInterface.hh.
|
inlinestaticinherited |
Get minimal pulse length of time-over-threshold measurement.
Definition at line 322 of file JCLBDefaultSimulatorInterface.hh.
|
staticinherited |
|
privateinherited |
Definition at line 360 of file JCLBDefaultSimulatorInterface.hh.
|
privateinherited |
Definition at line 361 of file JCLBDefaultSimulatorInterface.hh.
|
mutableprivateinherited |
Definition at line 362 of file JCLBDefaultSimulatorInterface.hh.