R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandSimCalToCal.h
Go to the documentation of this file.
1#pragma once
2
3#include <FairTask.h>
4#include <NeulandSimCalData.h>
5#include <R3BIOConnector.h>
7#include <R3BNeulandCommon.h>
8#include <unordered_map>
9
10class R3BEventHeader;
11class FairMCEventHeader;
12
13namespace R3B::Neuland
14{
16
17 class SimCal2Cal : public FairTask
18 {
19 public:
20 explicit SimCal2Cal(std::string_view sim_cal_data_name = "NeulandSimCal",
21 std::string_view cal_data_name = "NeulandCalData");
22 void set_num_of_dp(int number_of_dp) { number_of_dp_ = number_of_dp; }
23
24 private:
25 int number_of_dp_ = MaxNumberOfPlanes / 2;
28 CalibrationBasePar* base_par_ = nullptr;
29 R3BEventHeader* event_header_ = nullptr;
30 FairMCEventHeader* mc_event_header_ = nullptr;
31 std::unordered_map<int, BarCalData> bar_map_data_;
32
33 // virtual member functions:
34 void Exec(Option_t* /*option*/) override;
35 void SetParContainers() override;
36 auto Init() -> InitStatus override;
37 void FinishTask() override;
38
39 // No-virtual member functions:
40 void convert(const std::vector<R3B::Neuland::SimCalData>& sim_cal_data, std::vector<BarCalData>& cal_data);
41 void init_event_header();
42 void init_base_par();
43 };
44} // namespace R3B::Neuland
auto Init() -> InitStatus override
SimCal2Cal(std::string_view sim_cal_data_name="NeulandSimCal", std::string_view cal_data_name="NeulandCalData")
void Exec(Option_t *) override
void set_num_of_dp(int number_of_dp)
Simulation of NeuLAND Bar/Paddle.
constexpr auto MaxNumberOfPlanes
InputConnector< std::vector< ElementType > > InputVectorConnector
OutputConnector< std::vector< ElementType > > OutputVectorConnector