CbmRoot
Loading...
Searching...
No Matches
services/online_par_dump/Application.cxx
Go to the documentation of this file.
1/* Copyright (C) 2024 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Felix Weiglhofer [committer] */
4
5#include "Application.h"
6
7#include "CbmOnlineParWrite.h"
8
9#include <FairLogger.h>
10
11#include <TString.h>
12#include <TSystem.h>
13
15{
16 // --- Logger settings ----------------------------------------------------
17 TString logLevel = "INFO";
18 TString logVerbosity = "LOW";
19 // ------------------------------------------------------------------------
20
21 // ----- Logger settings ----------------------------------------------
22 FairLogger::GetLogger()->SetLogScreenLevel(logLevel.Data());
23 FairLogger::GetLogger()->SetLogVerbosityLevel(logVerbosity.Data());
24
25 LOG(info) << "Starting online parameter dump for setup " << fOpts.setup << "...";
26
27 gSystem->mkdir(fOpts.outputDir.c_str(), kTRUE);
28 gSystem->cd(fOpts.outputDir.c_str());
29
30 CbmOnlineParWrite writer;
31 CbmOnlineParWrite::Config writeConfig{
32 .setupType = fOpts.setup,
33 .doAlignment = !fOpts.skipAlignment,
34 };
35 writer.Run(writeConfig);
36
37 LOG(info) << "Online parameter dump finished";
38}
This file contains the declaration of the CbmOnlineParWrite class.
void Run()
Run the application.
This class is responsible for writing the online parameters to configuration files.
void Run(const Config &config)