#include "ZdcByteStream/ZdcToString.h"
#include <sstream>
Go to the source code of this file.
◆ ZdcToString() [1/5]
template<typename T>
| std::string ZdcToString |
( |
const std::vector< T > & | vv | ) |
|
Definition at line 12 of file ZdcToString.cxx.
12 {
13 std::stringstream o;
14 std::string delim = "";
15 for(auto val: vv){
16 o << delim << int(val) << std::dec;
17 delim ="|";
18 }
19 return o.str();
20}
◆ ZdcToString() [2/5]
Definition at line 76 of file ZdcToString.cxx.
76 {
77 std::stringstream o;
78
79 o << "xAOD::CPMTower"
80 <<
", eta=" << cpm.
eta()
81 <<
", phi=" << cpm.
phi()
82 <<
", em peak energy=" << cpm.
emEnergy()
83 <<
", had peak energy=" << cpm.
hadEnergy()
84 ;
85
86 return o.str();
87}
uint8_t emEnergy() const
get emEnergy for emEnergyVec[peak] - time slice that (hopefully) contains the collision
uint8_t hadEnergy() const
get hadEnergy for hadEnergyVec[peak] - time slice that (hopefully) contains the collision
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
◆ ZdcToString() [3/5]
Definition at line 89 of file ZdcToString.cxx.
89 {
90 std::stringstream o;
91 for(
auto iter =
tt.begin();
92 iter !=
tt.end(); ++iter){
94 }
95 return o.str();
96}
std::string ZdcToString(const std::vector< T > &vv)
◆ ZdcToString() [4/5]
Definition at line 23 of file ZdcToString.cxx.
23 {
24 std::stringstream o;
25 if(
tt.coolId() == 0) {
26 o << "xAOD::TriggerTower, coolId=0";
27 } else {
28 o <<
"xAOD::TriggerTower, coolId=" << std::hex <<
tt.coolId() << std::dec
29 <<
", layer=" << int(
tt.layer())
30 <<
", sampling=" << int(
tt.sampling())
31 <<
", eta=" <<
tt.eta()
32 <<
", phi=" <<
tt.phi()
33
34
35
36
37
38
39
40
41
42
43
47 <<
", correctionEnabled=" <<
ZdcToString(
tt.correctionEnabled())
51
52 <<
", errorWord=" <<
tt.errorWord()
53 <<
", peak=" << int(
tt.peak())
54 <<
", adcPeak=" << int(
tt.adcPeak());
55 if (!
tt.lut_cp().empty()) {
56 o <<
", cpET=" << int(
tt.cpET());
57 }
58 if (!
tt.lut_jep().empty()) {
59 o <<
", jepET=" << int(
tt.jepET());
60 }
61
62 }
63
64 return o.str();
65}
◆ ZdcToString() [5/5]
Definition at line 67 of file ZdcToString.cxx.
67 {
68 std::stringstream o;
70 iter !=
tt.end(); ++iter){
72 }
73 return o.str();
74}
DataModel_detail::const_iterator< DataVector > const_iterator