Contains the trigger output for generic calo objects.
More...
#include <TrigEnergySum.h>
|
| ClassDef (TrigEnergySum, 1) |
| 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}, hwEnergy_{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 64 of file TrigEnergySum.h.
64 {
65 energy_ = 0;
66 hwEnergy_ = 0;
68 module_ = 0;
69 }
◆ 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{ return hwEnergy_ < sum.hwEnergy_; }
◆ Print()
void trigger::TrigEnergySum::Print |
( |
| ) |
const |
Print a description of this object.
Definition at line 13 of file TrigEnergySum.cxx.
13{ std::cout << *this << std::endl; }
◆ 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 15 of file TrigEnergySum.cxx.
15 {
16 s << "TrigEnergySum { "
17 << "(layer " << sum.layer() << ", hwEnergy " << sum.hwEnergy() << " } ";
18 return s;
19}
◆ 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 21 of file TrigEnergySum.cxx.
22 {
23 s << "TrigEnergySumCollection { " << std::endl;
24 for (auto sum : sums) s << " " << sum << std::endl;
25 s << "}";
26 return s;
27}
◆ energy_
float trigger::TrigEnergySum::energy_ {0} |
|
private |
◆ hwEnergy_
int trigger::TrigEnergySum::hwEnergy_ {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: