Definition at line 15 of file StandaloneL1TopoHistSvc.cxx.
◆ StandaloneL1TopoHistSvcImpl()
| StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::StandaloneL1TopoHistSvcImpl |
( |
| ) |
|
|
inline |
◆ ~StandaloneL1TopoHistSvcImpl()
| StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::~StandaloneL1TopoHistSvcImpl |
( |
| ) |
|
|
inline |
Definition at line 23 of file StandaloneL1TopoHistSvc.cxx.
23 {
26 }
29 }
30 }
std::map< std::string, TH2 * > m_hists2D
std::map< std::string, TH1 * > m_hists1D
◆ fillHist1D()
| void StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::fillHist1D |
( |
const std::string & | histName, |
|
|
double | x ) |
|
inline |
◆ fillHist2D()
| void StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::fillHist2D |
( |
const std::string & | histName, |
|
|
double | x, |
|
|
double | y ) |
|
inline |
◆ findHist()
| TH1 * StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::findHist |
( |
const std::string & | histName | ) |
|
|
inline |
◆ getName()
| const std::string & TrigConf::TrigConfMessaging::getName |
( |
| ) |
const |
|
inlineinherited |
◆ msg() [1/2]
| MsgStreamTC & TrigConf::TrigConfMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 86 of file TrigConfMessaging.h.
87 {
89 if (!ms) {
92 }
94 }
boost::thread_specific_ptr< MsgStreamTC > m_msg_tls
MsgStreamTC instance (a std::cout like with print-out levels)
◆ msg() [2/2]
| MsgStreamTC & TrigConf::TrigConfMessaging::msg |
( |
const MSGTC::Level | lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 96 of file TrigConfMessaging.h.
97 {
99 }
MsgStreamTC & msg() const
The standard message stream.
◆ msgLvl()
| bool TrigConf::TrigConfMessaging::msgLvl |
( |
const MSGTC::Level | lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 75 of file TrigConfMessaging.h.
76 {
79 return true;
80 }
81 else {
82 return false;
83 }
84 }
◆ registerHist() [1/2]
| void StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::registerHist |
( |
TH1 * | h | ) |
|
|
inline |
Definition at line 32 of file StandaloneL1TopoHistSvc.cxx.
32 {
33 if(h != nullptr) {
35 const std::string
key =
h->GetName();
38 } else {
39 TRG_MSG_WARNING(
"StandaloneL1TopoHistSvc::registerHist: a histogram " << key <<
" exists already. Will keep the first one and delete the newly requested.");
41 }
42 }
43 }
◆ registerHist() [2/2]
| void StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::registerHist |
( |
TH2 * | h | ) |
|
|
inline |
Definition at line 45 of file StandaloneL1TopoHistSvc.cxx.
45 {
46 if(h != nullptr) {
48 const std::string
key =
h->GetName();
51 } else {
52 TRG_MSG_WARNING(
"StandaloneL1TopoHistSvc::registerHist: a histogram " << key <<
" exists already. Will keep the first one and delete the newly requested.");
54 }
55 }
56 }
◆ save()
| void StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::save |
( |
| ) |
|
|
inline |
Definition at line 89 of file StandaloneL1TopoHistSvc.cxx.
89 {
90
91 std::string
filename =
"L1Topo.root";
93
94 std::string
opt =
"RECREATE";
95
96 auto colPos =
m_baseDir.find_last_of(
':');
97 if( colPos != std::string::npos ) {
100 } else {
102 }
103
104
107
108 std::string
fullName(
h.second->GetName());
109 std::string
path(basepath);
110
111 auto slashPos =
fullName.find_last_of(
'/');
112 if(slashPos != std::string::npos) {
113 if(path!="")
116
117 h.second->SetName(
fullName.substr(slashPos+1).c_str() );
118 }
119
120 const char*
dir =
path.c_str();
121 if( !
f->GetDirectory(dir)) {
123 }
126 }
128
129 std::string
fullName(
h.second->GetName());
130 std::string
path(basepath);
131
132 auto slashPos =
fullName.find_last_of(
'/');
133 if(slashPos != std::string::npos) {
134 if(path!="")
137
138 h.second->SetName(
fullName.substr(slashPos+1).c_str() );
139 }
140
141 const char*
dir =
path.c_str();
142 if( !
f->GetDirectory(dir)) {
144 }
147 }
151 }
path
python interpreter configuration --------------------------------------—
◆ setBaseDir()
| void StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::setBaseDir |
( |
const std::string & | baseDir | ) |
|
|
inline |
◆ m_baseDir
| std::string StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::m_baseDir {""} |
|
private |
◆ m_hists1D
| std::map<std::string,TH1*> StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::m_hists1D |
|
private |
◆ m_hists2D
| std::map<std::string,TH2*> StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl::m_hists2D |
|
private |
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStreamTC> TrigConf::TrigConfMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStreamTC instance (a std::cout like with print-out levels)
Definition at line 71 of file TrigConfMessaging.h.
◆ m_name
| std::string TrigConf::TrigConfMessaging::m_name |
|
privateinherited |
The documentation for this class was generated from the following file: