|
LDMX Software
|
Contains the trigger output for generic calo objects. More...
#include <CaloTrigPrim.h>
Public Member Functions | |
| CaloTrigPrim ()=default | |
| Default Constructor. | |
| CaloTrigPrim (uint32_t tid, uint32_t tp=0) | |
| Preferred Constructor. | |
| virtual | ~CaloTrigPrim ()=default |
| Destructor. | |
| bool | operator< (const CaloTrigPrim &c) |
| Sort the collection of CaloTPs by the raw ID. | |
| uint32_t | getId () const |
| Get the id of the CaloTP. | |
| void | setPrimitive (uint32_t tp) |
| Set the trigger primitive value for the given channel @params[in] tp the value of the trigger primitive. | |
| uint32_t | getPrimitive () const |
| Get the trigger primitive value for the given channel. | |
Private Member Functions | |
| ClassDef (CaloTrigPrim, 2) | |
| ROOT Dictionary class definition macro. | |
Private Attributes | |
| uint32_t | tid_ {0} |
| the raw ID for this trigger channel | |
| uint32_t | tp_ {0} |
| the integer trigger primitive value for this channel | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const CaloTrigPrim &c) |
| Stream the input CaloTP. | |
| std::ostream & | operator<< (std::ostream &s, const CaloTrigPrimCollection &c) |
| Stream the input tp collection. | |
Contains the trigger output for generic calo objects.
Definition at line 24 of file CaloTrigPrim.h.
|
default |
Default Constructor.
Needed for ROOT dictionary definition, suggested to not use this constructor.
| ldmx::CaloTrigPrim::CaloTrigPrim | ( | uint32_t | tid, |
| uint32_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 CaloTrigPrim.cxx.
|
virtualdefault |
Destructor.
Needs to be defined for ROOT dictionary definition, does nothing right now.
|
inline |
Get the id of the CaloTP.
Definition at line 67 of file CaloTrigPrim.h.
References tid_.
|
inline |
Get the trigger primitive value for the given channel.
Definition at line 79 of file CaloTrigPrim.h.
References tp_.
|
inline |
Sort the collection of CaloTPs by the raw ID.
| [in] | c | another CaloTP to compare against |
Definition at line 61 of file CaloTrigPrim.h.
References tid_.
|
inline |
Set the trigger primitive value for the given channel @params[in] tp the value of the trigger primitive.
Definition at line 73 of file CaloTrigPrim.h.
References tp_.
|
friend |
Stream the input CaloTP.
In one line, prints out the ID (in hex), the primitive (in hex).
| [in] | s | ostream to write to |
| [in] | d | tp to write out |
Definition at line 10 of file CaloTrigPrim.cxx.
|
friend |
Stream the input tp collection.
Prints out each tp member of the collection on a new line.
| [in] | s | ostream to write to |
| [in] | c | collection to write out |
Definition at line 17 of file CaloTrigPrim.cxx.
|
private |
the raw ID for this trigger channel
Definition at line 108 of file CaloTrigPrim.h.
Referenced by getId(), and operator<().
|
private |
the integer trigger primitive value for this channel
Definition at line 110 of file CaloTrigPrim.h.
Referenced by getPrimitive(), and setPrimitive().