Go to the documentation of this file.
19 #include "TDirectory.h"
42 error() <<
"Couldn't get THistSvc" <<
endmsg;
51 error() <<
"Couldn't read gauss1d" <<
endmsg;
53 info() <<
h1->GetName() <<
": " <<
h1->GetEntries() <<
endmsg;
61 error() <<
"Couldn't read 2Dgauss" <<
endmsg;
63 info() << h2->GetName() <<
": " << h2->GetEntries() <<
endmsg;
71 error() <<
"Couldn't read 3Dgauss" <<
endmsg;
73 info() << h3->GetName() <<
": " << h3->GetEntries() <<
endmsg;
81 error() <<
"Couldn't read profile" <<
endmsg;
83 info() <<
tp->GetName() <<
": " <<
tp->GetEntries() <<
endmsg;
91 error() <<
"Couldn't read tree" <<
endmsg;
93 info() << tr->GetName() <<
": " << tr->GetEntries() <<
endmsg;
109 debug() <<
"Finalizing..." <<
endmsg;
StatusCode execute() override
virtual StatusCode regTree(const std::string &name)=0
Register a new TTree with a given name.
Alias for backward compatibility.
StatusCode finalize() override
virtual StatusCode regHist(const std::string &name)=0
Register a new ROOT histogram TH*X with a name.
virtual StatusCode getHist(const std::string &name, TH1 *&, size_t index=0) const =0
Return histogram with given name as TH1*, THistSvcMT still owns object.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
constexpr static const auto SUCCESS
#define DECLARE_COMPONENT(type)
StatusCode service(std::string_view name, T *&psvc, bool createIf=true) const
Access a service by name, creating it if it doesn't already exist.
StatusCode initialize() override
constexpr static const auto FAILURE
virtual StatusCode getTree(const std::string &name, TTree *&) const =0
Return TTree with given name.