Skip to content
Snippets Groups Projects
Commit 632cfe2e authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau
Browse files

Display used JS ROOT path in MQ histo server Init

parent 92e200bd
No related branches found
No related tags found
1 merge request!274Improvements to Algo and devices from MQ operation on mFLES and Virgo
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
#include "TObjArray.h" #include "TObjArray.h"
#include "TProfile.h" #include "TProfile.h"
#include "TRootSniffer.h" #include "TRootSniffer.h"
#include "TSystem.h"
#include "TEnv.h"
#include <boost/serialization/utility.hpp> #include <boost/serialization/utility.hpp>
...@@ -68,6 +70,11 @@ void CbmMqHistoServer::InitTask() { ...@@ -68,6 +70,11 @@ void CbmMqHistoServer::InitTask() {
fServer = new THttpServer(Form("http:%u", fuHttpServerPort)); fServer = new THttpServer(Form("http:%u", fuHttpServerPort));
/// To avoid the server sucking all Histos from gROOT when no output file is used /// To avoid the server sucking all Histos from gROOT when no output file is used
fServer->GetSniffer()->SetScanGlobalDir(kFALSE); fServer->GetSniffer()->SetScanGlobalDir(kFALSE);
const char *jsrootsys = gSystem->Getenv("JSROOTSYS");
if (!jsrootsys)
jsrootsys = gEnv->GetValue("HttpServ.JSRootPath", jsrootsys);
LOG(info) << "JSROOT location: " << jsrootsys;
//fServer->RegisterCommand("/Reset_Hist", "bMqHistoServerResetHistos=kTRUE"); //fServer->RegisterCommand("/Reset_Hist", "bMqHistoServerResetHistos=kTRUE");
//fServer->RegisterCommand("/Save_Hist", "bMqHistoServerSaveHistos=kTRUE"); //fServer->RegisterCommand("/Save_Hist", "bMqHistoServerSaveHistos=kTRUE");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment