LDMX Software
CaloTrigPrim.cxx
1#include "Recon/Event/CaloTrigPrim.h"
2
3#include <iostream>
4
5ClassImp(ldmx::CaloTrigPrim)
6
7 namespace ldmx {
8 CaloTrigPrim::CaloTrigPrim(uint32_t tid, uint32_t tp) : tid_(tid), tp_{tp} {}
9
10 void CaloTrigPrim::Print() const { std::cout << *this << std::endl; }
11
12 std::ostream &operator<<(std::ostream &s, const ldmx::CaloTrigPrim &c) {
13 s << "CaloTrigPrim { "
14 << "(id : 0x" << std::hex << c.getId() << std::dec << ") ";
15 s << "0x" << std::hex << int(c.getPrimitive()) << " } ";
16 return s;
17 }
18
19 std::ostream &operator<<(std::ostream &s,
20 const ldmx::CaloTrigPrimCollection &cs) {
21 s << "CaloTrigPrimCollection { " << std::endl;
22 for (auto c : cs) s << " " << c << std::endl;
23 s << "}";
24 return s;
25 }
26
27} // 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.