LDMX Software
Trigger
Algo
src
Trigger
Event
TrigEnergySum.cxx
1
#include "Trigger/Event/TrigEnergySum.h"
2
3
#include <iostream>
4
5
ClassImp(
trigger::TrigEnergySum
);
6
7
namespace
trigger {
8
TrigEnergySum::TrigEnergySum
(
int
layer,
int
hwEnergy)
9
: layer_{layer}, module_{0}, hwEnergy_{hwEnergy}, energy_{0} {}
10
TrigEnergySum::TrigEnergySum
(
int
layer,
int
module,
float
energy)
11
: layer_{layer}, module_{module}, hwEnergy_{0}, energy_{energy} {}
12
13
void
TrigEnergySum::Print
()
const
{ std::cout << *
this
<< std::endl; }
14
15
std::ostream &operator<<(std::ostream &s,
const
trigger::TrigEnergySum
&sum) {
16
s <<
"TrigEnergySum { "
17
<<
"(layer "
<< sum.layer() <<
", hwEnergy "
<< sum.hwEnergy() <<
" } "
;
18
return
s;
19
}
20
21
std::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
trigger::TrigEnergySum
Contains the trigger output for generic calo objects.
Definition
TrigEnergySum.h:24
trigger::TrigEnergySum::Print
void Print() const
Print a description of this object.
Definition
TrigEnergySum.cxx:13
trigger::TrigEnergySum::TrigEnergySum
TrigEnergySum()=default
Default Constructor.
Generated by
1.9.8