Go to the documentation of this file.
19 #include <TDirectory.h>
41 error() <<
"Couldn't get THistSvc" <<
endmsg;
50 error() <<
"Couldn't read gauss1d" <<
endmsg;
52 info() << h1->GetName() <<
": " << h1->GetEntries() <<
endmsg;
60 error() <<
"Couldn't read 2Dgauss" <<
endmsg;
62 info() << h2->GetName() <<
": " << h2->GetEntries() <<
endmsg;
70 error() <<
"Couldn't read 3Dgauss" <<
endmsg;
72 info() << h3->GetName() <<
": " << h3->GetEntries() <<
endmsg;
80 error() <<
"Couldn't read profile" <<
endmsg;
82 info() <<
tp->GetName() <<
": " <<
tp->GetEntries() <<
endmsg;
90 error() <<
"Couldn't read tree" <<
endmsg;
92 info() << tr->GetName() <<
": " << tr->GetEntries() <<
endmsg;
108 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.
StatusCode retrieve(T *&service) const override
Do the real retrieval of the Service.
ServiceHandle< ITHistSvc > m_ths
constexpr static const auto SUCCESS
#define DECLARE_COMPONENT(type)
StatusCode initialize() override
constexpr static const auto FAILURE
virtual StatusCode getTree(const std::string &name, TTree *&) const =0
Return TTree with given name.