Skip to content
Snippets Groups Projects

Improvements to Algo and devices from MQ operation on mFLES and Virgo

Merged Pierre-Alain Loizeau requested to merge p.-a.loizeau/cbmroot:mcbm_moni_mq_virgo into master
13 files
+ 451
149
Compare changes
  • Side-by-side
  • Inline
Files
13
@@ -5,18 +5,15 @@
@@ -5,18 +5,15 @@
* GNU Lesser General Public Licence (LGPL) version 3, *
* GNU Lesser General Public Licence (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
********************************************************************************/
#include <mutex>
#include "CbmMqHistoServer.h"
#include "CbmMqHistoServer.h"
#include "CbmFlesCanvasTools.h"
#include "CbmFlesCanvasTools.h"
#include "BoostSerializer.h"
#include "FairLogger.h"
#include "FairLogger.h"
#include "FairMQProgOptions.h" // device->fConfig
#include "FairMQProgOptions.h" // device->fConfig
#include "RootSerializer.h"
#include "TCanvas.h"
#include "TCanvas.h"
 
#include "TEnv.h"
#include "TFile.h"
#include "TFile.h"
#include "TH1.h"
#include "TH1.h"
#include "TH2.h"
#include "TH2.h"
@@ -25,9 +22,15 @@
@@ -25,9 +22,15 @@
#include "TObjArray.h"
#include "TObjArray.h"
#include "TProfile.h"
#include "TProfile.h"
#include "TRootSniffer.h"
#include "TRootSniffer.h"
 
#include "TSystem.h"
 
#include "BoostSerializer.h"
#include <boost/serialization/utility.hpp>
#include <boost/serialization/utility.hpp>
 
#include <mutex>
 
 
#include "RootSerializer.h"
 
std::mutex mtx;
std::mutex mtx;
/*
/*
Bool_t bMqHistoServerResetHistos = kFALSE;
Bool_t bMqHistoServerResetHistos = kFALSE;
@@ -68,6 +71,10 @@ void CbmMqHistoServer::InitTask() {
@@ -68,6 +71,10 @@ 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");
Loading