LDMX Software
CaloTrigPrim.cxx
1#include "Recon/Event/CaloTrigPrim.h"
2
3#include <iostream>
4
5ClassImp(ldmx::CaloTrigPrim);
6
7namespace ldmx {
8CaloTrigPrim::CaloTrigPrim(uint32_t tid, uint32_t tp) : tid_(tid), tp_{tp} {}
9
10std::ostream &operator<<(std::ostream &s, const ldmx::CaloTrigPrim &c) {
11 s << "CaloTrigPrim { " << "(id : 0x" << std::hex << c.getId() << std::dec
12 << ") ";
13 s << "0x" << std::hex << int(c.getPrimitive()) << " } ";
14 return s;
15}
16
17std::ostream &operator<<(std::ostream &s,
18 const ldmx::CaloTrigPrimCollection &cs) {
19 s << "CaloTrigPrimCollection { " << std::endl;
20 for (auto c : cs) s << " " << c << std::endl;
21 s << "}";
22 return s;
23}
24
25} // namespace ldmx
Contains the trigger output for generic calo objects.
uint32_t getId() const
Get the id of the CaloTP.
CaloTrigPrim()=default
Default Constructor.
uint32_t getPrimitive() const
Get the trigger primitive value for the given channel.