Contains the trigger output for generic calo objects.
More...
#include <TrigEnergySum.h>
|
|
| ClassDef (TrigEnergySum, 2) |
| | ROOT Dictionary class definition macro.
|
| |
|
| std::ostream & | operator<< (std::ostream &o, const TrigEnergySum &d) |
| | Stream the input digi.
|
| |
| std::ostream & | operator<< (std::ostream &o, const TrigEnergySumCollection &c) |
| | Stream the input digi collection.
|
| |
Contains the trigger output for generic calo objects.
Definition at line 24 of file TrigEnergySum.h.
◆ TrigEnergySum() [1/3]
| trigger::TrigEnergySum::TrigEnergySum |
( |
| ) |
|
|
default |
Default Constructor.
Needed for ROOT dictionary definition, suggested to not use this constructor.
◆ TrigEnergySum() [2/3]
| trigger::TrigEnergySum::TrigEnergySum |
( |
int | layer, |
|
|
int | hwEnergy = 0 ) |
Preferred Constructor.
Defines the trigger group ID and the trigger primitive value.
- Parameters
-
| [in] | tid | raw trigger group ID |
| [in] | tp | trigger primitive value |
Definition at line 8 of file TrigEnergySum.cxx.
9 :
layer_{layer}, module_{0}, hw_energy_{hwEnergy}, energy_{0} {}
int layer_
the raw ID for this trigger channel
◆ TrigEnergySum() [3/3]
| trigger::TrigEnergySum::TrigEnergySum |
( |
int | layer, |
|
|
int | module, |
|
|
float | energy ) |
◆ ~TrigEnergySum()
| virtual trigger::TrigEnergySum::~TrigEnergySum |
( |
| ) |
|
|
virtualdefault |
Destructor.
Needs to be defined for ROOT dictionary definition, does nothing right now.
◆ clear()
| void trigger::TrigEnergySum::clear |
( |
| ) |
|
|
inline |
Definition at line 66 of file TrigEnergySum.h.
66 {
67 energy_ = 0;
68 hw_energy_ = 0;
70 module_ = 0;
71 }
◆ energy()
| float trigger::TrigEnergySum::energy |
( |
| ) |
const |
|
inline |
◆ hwEnergy()
| int trigger::TrigEnergySum::hwEnergy |
( |
| ) |
const |
|
inline |
◆ layer()
| int trigger::TrigEnergySum::layer |
( |
| ) |
const |
|
inline |
◆ module()
| int trigger::TrigEnergySum::module |
( |
| ) |
const |
|
inline |
◆ operator<()
| bool trigger::TrigEnergySum::operator< |
( |
const TrigEnergySum & | sum | ) |
|
|
inline |
Sort the collection to trig digis by the raw ID.
- Parameters
-
| [in] | d | another digi to compare against |
- Returns
- true if this ID is less than the other ID
Definition at line 62 of file TrigEnergySum.h.
62 {
63 return hw_energy_ < sum.hw_energy_;
64 }
◆ setEnergy()
| void trigger::TrigEnergySum::setEnergy |
( |
float | energy | ) |
|
|
inline |
◆ setHwEnergy()
| void trigger::TrigEnergySum::setHwEnergy |
( |
int | hwEnergy | ) |
|
|
inline |
◆ setLayer()
| void trigger::TrigEnergySum::setLayer |
( |
int | layer | ) |
|
|
inline |
◆ setModule()
| void trigger::TrigEnergySum::setModule |
( |
int | module | ) |
|
|
inline |
◆ operator<< [1/2]
| std::ostream & operator<< |
( |
std::ostream & | o, |
|
|
const TrigEnergySum & | d ) |
|
friend |
Stream the input digi.
In one line, prints out the ID (in hex), the primitive (in hex), and the linearized primitive (in dec).
- Parameters
-
| [in] | o | ostream to write to |
| [in] | d | digi to write out |
- Returns
- modified ostream
Definition at line 13 of file TrigEnergySum.cxx.
13 {
14 s << "TrigEnergySum { " << "(layer " << sum.layer() << ", hwEnergy "
15 << sum.hwEnergy() << " } ";
16 return s;
17}
◆ operator<< [2/2]
| std::ostream & operator<< |
( |
std::ostream & | o, |
|
|
const TrigEnergySumCollection & | c ) |
|
friend |
Stream the input digi collection.
Prints out each digi member of the collection on a new line.
- Parameters
-
| [in] | o | ostream to write to |
| [in] | c | collection to write out |
- Returns
- modified ostream
Definition at line 19 of file TrigEnergySum.cxx.
20 {
21 s << "TrigEnergySumCollection { " << std::endl;
22 for (auto sum : sums) s << " " << sum << std::endl;
23 s << "}";
24 return s;
25}
◆ energy_
| float trigger::TrigEnergySum::energy_ {0} |
|
private |
◆ hw_energy_
| int trigger::TrigEnergySum::hw_energy_ {0} |
|
private |
◆ layer_
| int trigger::TrigEnergySum::layer_ {0} |
|
private |
◆ module_
| int trigger::TrigEnergySum::module_ {0} |
|
private |
The documentation for this class was generated from the following files: