|
ATLAS Offline Software
|
Go to the documentation of this file.
35 const std::string
key =
h->GetName();
39 TRG_MSG_WARNING(
"StandaloneL1TopoHistSvc::registerHist: a histogram " <<
key <<
" exists already. Will keep the first one and delete the newly requested.");
48 const std::string
key =
h->GetName();
52 TRG_MSG_WARNING(
"StandaloneL1TopoHistSvc::registerHist: a histogram " <<
key <<
" exists already. Will keep the first one and delete the newly requested.");
59 auto colPos =
histName.find_first_of(
'/');
60 std::string realhistName =
histName.substr(colPos+1);
91 std::string
filename =
"L1Topo.root";
94 std::string
opt =
"RECREATE";
96 auto colPos =
m_baseDir.find_last_of(
':');
97 if( colPos != std::string::npos ) {
108 std::string
fullName(
h.second->GetName());
111 auto slashPos =
fullName.find_last_of(
'/');
112 if(slashPos != std::string::npos) {
117 h.second->SetName(
fullName.substr(slashPos+1).c_str() );
120 const char*
dir =
path.c_str();
121 if( !
f->GetDirectory(
dir)) {
129 std::string
fullName(
h.second->GetName());
132 auto slashPos =
fullName.find_last_of(
'/');
133 if(slashPos != std::string::npos) {
138 h.second->SetName(
fullName.substr(slashPos+1).c_str() );
141 const char*
dir =
path.c_str();
142 if( !
f->GetDirectory(
dir)) {
203 m_impl->setBaseDir(baseDir);
TH1 * findHist(const std::string &histName)
path
python interpreter configuration --------------------------------------—
void fillHist2D(const std::string &histName, double x, double y)
void registerHist(TH2 *h)
void setBaseDir(const std::string &baseDir)
std::unique_ptr< StandaloneL1TopoHistSvcImpl > m_impl
TrigConfMessaging()=delete
StandaloneL1TopoHistSvcImpl()
StandaloneL1TopoHistSvc()
virtual void setBaseDir(const std::string &baseDir) override
virtual void fillHist1D(const std::string &histName, double x) override
std::map< std::string, TH2 * > m_hists2D
std::map< std::string, TH1 * > m_hists1D
#define TRG_MSG_WARNING(x)
Class to provide easy access to TrigConf::MsgStream for TrigConf classes.
void fillHist1D(const std::string &histName, double x)
~StandaloneL1TopoHistSvcImpl()
virtual TH1 * findHist(const std::string &histName) override
virtual void registerHist(TH1 *h) override
virtual void fillHist2D(const std::string &histName, double x, double y) override
virtual ~StandaloneL1TopoHistSvc()
Messaging base class for TrigConf code shared with Lvl1 ( AthMessaging)
void registerHist(TH1 *h)
virtual void save() override