Project
Loading...
Searching...
No Matches
ValueMonitor.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
12
#include "
CommonUtils/ValueMonitor.h
"
13
#include "TFile.h"
14
#include <fairlogger/Logger.h>
15
#include <memory>
16
17
using namespace
o2::utils
;
18
19
ValueMonitor::ValueMonitor
(std::string
filename
) : mFileName(
filename
) {}
20
21
ValueMonitor::~ValueMonitor
()
22
{
23
if
(mHistos.size() > 0) {
24
auto
outfile = std::make_unique<TFile>(mFileName.c_str(),
"RECREATE"
);
25
// write all histos
26
for
(
auto
&
h
: mHistos) {
27
LOG
(info) <<
"ValueMonitor: WRITING HISTO "
<<
h
.second->GetName();
28
h
.second->Write();
29
}
30
outfile->Close();
31
}
32
}
ValueMonitor.h
h
Class for time synchronization of RawReader instances.
o2::utils::ValueMonitor::ValueMonitor
ValueMonitor(std::string filename)
Definition
ValueMonitor.cxx:19
o2::utils::ValueMonitor::~ValueMonitor
~ValueMonitor()
Definition
ValueMonitor.cxx:21
o2::utils
Definition
BoostHistogramUtils.h:56
filename
std::string filename()
Definition
o2FairMQHeaderSizeTest.cxx:55
LOG
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
Common
Utils
src
ValueMonitor.cxx
Generated on Tue Feb 25 2025 23:16:08 for Project by
1.9.8