LDMX Software
TrigEnergySum.cxx
1#include "Trigger/Event/TrigEnergySum.h"
2
3#include <iostream>
4
6
7namespace trigger {
8TrigEnergySum::TrigEnergySum(int layer, int hwEnergy)
9 : layer_{layer}, module_{0}, hwEnergy_{hwEnergy}, energy_{0} {}
10TrigEnergySum::TrigEnergySum(int layer, int module, float energy)
11 : layer_{layer}, module_{module}, hwEnergy_{0}, energy_{energy} {}
12
13void TrigEnergySum::Print() const { std::cout << *this << std::endl; }
14
15std::ostream &operator<<(std::ostream &s, const trigger::TrigEnergySum &sum) {
16 s << "TrigEnergySum { "
17 << "(layer " << sum.layer() << ", hwEnergy " << sum.hwEnergy() << " } ";
18 return s;
19}
20
21std::ostream &operator<<(std::ostream &s,
22 const trigger::TrigEnergySumCollection &sums) {
23 s << "TrigEnergySumCollection { " << std::endl;
24 for (auto sum : sums) s << " " << sum << std::endl;
25 s << "}";
26 return s;
27}
28
29} // namespace trigger
Contains the trigger output for generic calo objects.
void Print() const
Print a description of this object.
TrigEnergySum()=default
Default Constructor.