R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandMapToCalParTask.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2023 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13#pragma once
14
15#include "R3BFTCalEngine.h"
19#include <FairRootManager.h>
20#include <R3BIOConnector.h>
22#include <R3BNeulandCommon.h>
23#include <R3BParView.h>
24#include <string_view>
25
26namespace R3B::Neuland
27{
29 {
30 public:
32 // Map2CalParTask();
33 explicit Map2CalParTask(std::string_view mapped_data_name = "NeulandMappedData",
34 std::string_view trig_mapped_data_name = "NeulandTrigMappedData",
35 std::string_view par_name = "LandTCalPar",
36 std::string_view trig_par_name = "LandTrigTCalPar");
37
39 void SetTrigEnabled(bool is_enabled) { is_trig_enabled_ = is_enabled; }
40 void SetCoarseTimeFreqMHz(float freq) { coarse_time_frequency_ = freq; }
41 // void SetTrigIDMapAutoFind(bool is_auto = true) { is_trigID_auto_ = is_auto; }
42 void SetTrigIDMapDir(std::string_view dirName) { trig_id_IO_.SetDir(dirName); }
43 void SetTrigIDMapFileName(std::string_view fileName) { trig_id_IO_.SetFileName(fileName); }
44 void SetErrorMethod(ErrorMethod method) { cal_strategy_.Set_error_method(method); }
45
46 private:
47 // bool is_trigID_auto_ = true;
48 bool is_trig_enabled_ = true;
49 unsigned int plane_num_ = 0;
54
55 // IO data and paramters:
60
61 // calibration engines:
64
65 // virtual functions:
66 void TriggeredExec() override;
67 void ExtraInit(FairRootManager* rootMan) override;
68 void EndOfTask() override;
69
70 // non-virtual functions:
71 void write_parameter();
72 // void RecordTrigMappingID();
73 void FillMapData();
74 void FillTrigMapData();
75 void PrintData() const;
76 void WriteHists();
77 void PrintTrigID() const;
78 };
79
80} // namespace R3B::Neuland
81
R3B::Neuland::Map2CalParTask R3BNeulandMapped2CalPar2
OutputParView< Map2CalPar > map_to_cal_trig_par_
void SetTrigIDMapFileName(std::string_view fileName)
calibration::FTEngine< calibration::ModuleCal > trig_map_cal_engine_
calibration::FTCalErrorMethod ErrorMethod
InputMapConnector< int, PaddleTamexMappedData > map_data_
void SetTrigIDMapDir(std::string_view dirName)
void SetTrigIDMapPrintFormat(TrigIDMappingPrintFormat format)
void ExtraInit(FairRootManager *rootMan) override
calibration::FTCalStrategy cal_strategy_
calibration::FTEngine< calibration::PlaneCal > map_cal_engine_
Map2CalParTask(std::string_view mapped_data_name="NeulandMappedData", std::string_view trig_mapped_data_name="NeulandTrigMappedData", std::string_view par_name="LandTCalPar", std::string_view trig_par_name="LandTrigTCalPar")
void SetErrorMethod(ErrorMethod method)
OutputParView< Map2CalPar > map_to_cal_par_
InputMapConnector< int, PaddleTamexTrigMappedData > trig_map_data_
Simulation of NeuLAND Bar/Paddle.
constexpr auto COARSE_TIME_CLOCK_FREQUENCY_MHZ
InputConnector< std::map< KeyType, ValueType > > InputMapConnector