CbmRoot
Loading...
Searching...
No Matches
CbmOnlineParWrite.h
Go to the documentation of this file.
1/* Copyright (C) 2024-2025 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Felix Weiglhofer [committer] */
4
5#pragma once
6
11
14
15#include <TString.h>
16
17#include <boost/filesystem.hpp>
18
19class FairRunAna;
20class TList;
21class CbmSetup;
22
23namespace
24{
25 namespace fs = boost::filesystem;
26}
27
34 public:
35 struct Config {
36 uint32_t runId = 0;
37 std::string outputDir = "";
38 std::string geoFileDir = "";
39 bool doAlignment = false;
40 bool experimental = false;
42 };
43
44 void Run(const Config& config);
45
46 private:
48 TString fSrcDir = "";
49 TString fGeoSetupTag = "";
50 std::string fRecoParTopDir = "";
51 fs::path fOutDir;
52 fs::path fOutDirReco;
53 CbmSetup* fSetup = nullptr;
54 FairRunAna* fRun = nullptr;
55 TList* fParList = nullptr;
56
58
59 bool fMcbmLegacyBeamtime = false;
60 // FIXME: remove this flag, pass the parcing of these parameters into a proper place !!!
61
62 void AddDetectors();
63 void AddTrd();
64 void AddTof();
65 void AddSts();
66 void AddCa();
67
69 void CopyParameters();
70
75 void UpdateParFiles();
76};
This file contains the definition of the ParFiles class.
This class is responsible for writing the online parameters to configuration files.
fs::path fOutDirReco
Output directory for reconstruction parameters.
void Run(const Config &config)
TString fGeoSetupTag
Geometry setup tag.
CbmSetup * fSetup
Global Geometry setup.
std::string fRecoParTopDir
Top directory for reco parameters.
FairRunAna * fRun
FairRunAna object.
bool fMcbmLegacyBeamtime
Flag: legacy mCBM beamtime to set hardcoded definition of different parameters.
cbm::algo::ParFiles fParFiles
Parameter files output.
TString fSrcDir
CbmRoot Source directory.
void CopyParameters()
Copies the parameters from source (if these parameters are original)
TList * fParList
List of parameter files, opened with FairRuntimeDb.
void UpdateParFiles()
Updates the parFiles node in the main config.
fs::path fOutDir
Output directory.
std::string geoFileDir
Path to the .geo.root file.
bool experimental
Everything else is just copied from the directory of origin (path of the MainConfig....
Class to hold the paths to the parameter files for the different detectors.
Definition ParFiles.h:21