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
14
void
Application::Run
()
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
}
CbmOnlineParWrite.h
This file contains the declaration of the CbmOnlineParWrite class.
Application::fOpts
ProgramOptions fOpts
Definition
services/online_par_dump/Application.h:17
Application::Run
void Run()
Run the application.
Definition
reco/app/cbmreco_fairrun/Application.cxx:35
CbmOnlineParWrite
This class is responsible for writing the online parameters to configuration files.
Definition
CbmOnlineParWrite.h:25
CbmOnlineParWrite::Run
void Run(const Config &config)
Definition
CbmOnlineParWrite.cxx:313
ProgramOptions::setup
cbm::algo::Setup setup
Definition
services/online_par_dump/ProgramOptions.h:14
ProgramOptions::skipAlignment
bool skipAlignment
Definition
services/online_par_dump/ProgramOptions.h:15
ProgramOptions::outputDir
std::string outputDir
Definition
services/online_par_dump/ProgramOptions.h:16
Application.h
CbmOnlineParWrite::Config
Definition
CbmOnlineParWrite.h:28
services
online_par_dump
Application.cxx
Generated on Sun Dec 22 2024 23:04:05 for CbmRoot by
1.12.0