1#ifndef TRIGGER_EVENT_TRIGENERGYSUM_H_
2#define TRIGGER_EVENT_TRIGENERGYSUM_H_
18typedef std::vector<TrigEnergySum> TrigEnergySumCollection;
63 return hw_energy_ < sum.hw_energy_;
73 void setLayer(
int layer) {
layer_ = layer; }
74 int layer()
const {
return layer_; }
76 void setModule(
int module) { module_ =
module; }
77 int module()
const {
return module_; }
79 void setEnergy(
float energy) { energy_ = energy; }
80 float energy()
const {
return energy_; }
82 void setHwEnergy(
int hwEnergy) { hw_energy_ = hwEnergy; }
83 int hwEnergy()
const {
return hw_energy_; }
111 friend std::ostream &
operator<<(std::ostream &o,
112 const TrigEnergySumCollection &c);
Contains the trigger output for generic calo objects.
bool operator<(const TrigEnergySum &sum)
Sort the collection to trig digis by the raw ID.
TrigEnergySum()=default
Default Constructor.
int layer_
the raw ID for this trigger channel
virtual ~TrigEnergySum()=default
Destructor.
ClassDef(TrigEnergySum, 2)
ROOT Dictionary class definition macro.
friend std::ostream & operator<<(std::ostream &o, const TrigEnergySum &d)
Stream the input digi.