|
LDMX Software
|
Contains the trigger output for a single trigger hgcroc channel. More...
#include <HgcrocTrigDigi.h>
Public Member Functions | |
| HgcrocTrigDigi ()=default | |
| Default Constructor. | |
| HgcrocTrigDigi (uint32_t tid, uint8_t tp=0) | |
| Preferred Constructor. | |
| virtual | ~HgcrocTrigDigi ()=default |
| Destructor. | |
| bool | operator< (const HgcrocTrigDigi &digi) |
| Sort the collection to trig digis by the raw ID. | |
| uint32_t | getId () const |
| Get the id of the digi. | |
| void | setPrimitive (uint8_t tp) |
| Set the trigger primitive (7 bits) for the given link on a channel @params[in] tp the value of the trigger primitive. | |
| uint8_t | getPrimitive () const |
| Get the trigger primitive (7 bits) for the given link on a channel. | |
| uint32_t | linearPrimitive () const |
| Get the linearized value of the trigger primitive. | |
Static Public Member Functions | |
| static uint8_t | linear2Compressed (uint32_t lin) |
| Static conversion from 18b linear -> compressed. | |
| static uint32_t | compressed2Linear (uint8_t comp) |
| Static conversion from compressed -> linear 18b. | |
Private Member Functions | |
| ClassDef (HgcrocTrigDigi, 2) | |
| ROOT Dictionary class definition macro. | |
Private Attributes | |
| uint32_t | tid_ {0} |
| the raw ID for this trigger channel | |
| uint8_t | tp_ {0} |
| the compressed 7bit trigger primitive value for this channel | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const HgcrocTrigDigi &d) |
| Stream the input digi. | |
| std::ostream & | operator<< (std::ostream &o, const HgcrocTrigDigiCollection &c) |
| Stream the input digi collection. | |
Contains the trigger output for a single trigger hgcroc channel.
Definition at line 24 of file HgcrocTrigDigi.h.
|
default |
Default Constructor.
Needed for ROOT dictionary definition, suggested to not use this constructor.
| ldmx::HgcrocTrigDigi::HgcrocTrigDigi | ( | uint32_t | tid, |
| uint8_t | tp = 0 ) |
Preferred Constructor.
Defines the trigger group ID and the trigger primitive value.
| [in] | tid | raw trigger group ID |
| [in] | tp | trigger primitive value |
Definition at line 8 of file HgcrocTrigDigi.cxx.
|
virtualdefault |
Destructor.
Needs to be defined for ROOT dictionary definition, does nothing right now.
|
static |
Static conversion from compressed -> linear 18b.
| [in] | comp | compressed 7bit ADC value |
Definition at line 32 of file HgcrocTrigDigi.cxx.
Referenced by linearPrimitive(), and hcal::HcalTrigPrimDigiProducer::produce().
|
inline |
Get the id of the digi.
Definition at line 67 of file HgcrocTrigDigi.h.
References tid_.
Referenced by ldmx::ecal::TrigPrimResolutionAnalyzer::analyze().
|
inline |
Get the trigger primitive (7 bits) for the given link on a channel.
Definition at line 79 of file HgcrocTrigDigi.h.
References tp_.
Referenced by linearPrimitive().
|
static |
Static conversion from 18b linear -> compressed.
| [in] | lin | linearized 18bit ADC value |
Definition at line 10 of file HgcrocTrigDigi.cxx.
Referenced by ldmx::HgcrocTriggerCalculations::compressDigis().
|
inline |
Get the linearized value of the trigger primitive.
Definition at line 85 of file HgcrocTrigDigi.h.
References compressed2Linear(), and getPrimitive().
|
inline |
Sort the collection to trig digis by the raw ID.
| [in] | d | another digi to compare against |
Definition at line 61 of file HgcrocTrigDigi.h.
References tid_.
|
inline |
Set the trigger primitive (7 bits) for the given link on a channel @params[in] tp the value of the trigger primitive.
Definition at line 73 of file HgcrocTrigDigi.h.
References tp_.
|
friend |
Stream the input digi.
In one line, prints out the ID (in hex), the primitive (in hex), and the linearized primitive (in dec).
| [in] | o | ostream to write to |
| [in] | d | digi to write out |
Definition at line 43 of file HgcrocTrigDigi.cxx.
|
friend |
Stream the input digi collection.
Prints out each digi member of the collection on a new line.
| [in] | o | ostream to write to |
| [in] | c | collection to write out |
Definition at line 51 of file HgcrocTrigDigi.cxx.
|
private |
the raw ID for this trigger channel
Definition at line 131 of file HgcrocTrigDigi.h.
Referenced by getId(), and operator<().
|
private |
the compressed 7bit trigger primitive value for this channel
Definition at line 133 of file HgcrocTrigDigi.h.
Referenced by getPrimitive(), and setPrimitive().