ATLAS Offline Software
Functions
ZdcToString.h File Reference
#include <string>
#include "xAODTrigL1Calo/TriggerTower.h"
#include "xAODTrigL1Calo/TriggerTowerContainer.h"
#include "xAODTrigL1Calo/CPMTower.h"
#include "xAODTrigL1Calo/CPMTowerContainer.h"
Include dependency graph for ZdcToString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string ZdcToString (const xAOD::TriggerTower &tt)
 
std::string ZdcToString (const xAOD::TriggerTowerContainer &container)
 
std::string ZdcToString (const xAOD::CPMTower &tt)
 

Function Documentation

◆ ZdcToString() [1/3]

std::string ZdcToString ( const xAOD::CPMTower tt)

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 }

◆ ZdcToString() [2/3]

std::string ZdcToString ( const xAOD::TriggerTower tt)

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  << ", lut_cp=" << ::ZdcToString(tt.lut_cp())
36  << ", lut_jep=" << ::ZdcToString(tt.lut_jep())
37  << ", correction=" << ::ZdcToString(tt.correction())
38  << ", correctionEnabled=" << ::ZdcToString(tt.correctionEnabled())
39  << ", bcidVec=" << ::ZdcToString(tt.bcidVec())
40  << ", adc=" << ::ZdcToString(tt.adc())
41  << ", bcidExt=" << ::ZdcToString(tt.bcidExt())
42  */
43 
44  << ", lut_cp=" << ZdcToString(tt.lut_cp())
45  << ", lut_jep=" << ZdcToString(tt.lut_jep())
46  << ", correction=" << ZdcToString(tt.correction())
47  << ", correctionEnabled=" << ZdcToString(tt.correctionEnabled())
48  << ", bcidVec=" << ZdcToString(tt.bcidVec())
49  << ", adc=" << ZdcToString(tt.adc())
50  << ", bcidExt=" << ZdcToString(tt.bcidExt())
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() [3/3]

std::string ZdcToString ( const xAOD::TriggerTowerContainer container)

Definition at line 67 of file ZdcToString.cxx.

67  {
68  std::stringstream o;
70  iter != tt.end(); ++iter){
71  o << ZdcToString(**iter) << std::endl;
72  }
73  return o.str();
74 }
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
ZdcToString
std::string ZdcToString(const std::vector< T > &vv)
Definition: ZdcToString.cxx:12
TileDCSDataPlotter.tt
tt
Definition: TileDCSDataPlotter.py:874