CbmRoot
Loading...
Searching...
No Matches
CbmTaskStsHitFinderParWrite.h
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#pragma once
5
6#include <FairTask.h>
7
8class CbmStsElement;
9class CbmStsParAsic;
10class CbmStsParModule;
11class CbmStsParSensor;
16class CbmStsParSim;
17class CbmStsSensor;
18class CbmStsSetup;
19
20class CbmTaskStsHitFinderParWrite : public FairTask {
21
22 public:
25
28
31
34
36 virtual InitStatus Init();
37
39 virtual void Exec(Option_t*) {}
40
42 virtual void Finish() {}
43
45 virtual void SetParContainers();
46
47
54 void UseModulePar(CbmStsParModule* modulePar) { fUserParModule = modulePar; }
55
56
62 void UseModuleParSet(CbmStsParSetModule* moduleParSet) { fUserParSetModule = moduleParSet; }
63
64
71 void UseSensorCond(CbmStsParSensorCond* sensorCond) { fUserParCond = sensorCond; }
72
78 void UseSensorCondSet(CbmStsParSetSensorCond* sensorCondSet) { fUserParSetCond = sensorCondSet; }
79
80
87 void UseSensorPar(CbmStsParSensor* sensorPar) { fUserParSensor = sensorPar; }
88
89
95 void UseSensorParSet(CbmStsParSetSensor* sensorParSet) { fUserParSetSensor = sensorParSet; }
96
97 private:
106 std::pair<Double_t, Double_t> LorentzShift(const CbmStsParSensorCond& conditions, Double_t dZ, Double_t bY);
107
108
112 UInt_t CreateModules();
113
114
119
120
128 void InitParams();
129
130 private:
131 // --- Setup and parameters
132 CbmStsSetup* fSetup = nullptr;
137
138 // --- User-defined parameters, not from database
143
144 // --- User-defined parameter sets, not from database
148};
Class representing an element of the STS setup.
Parameters of the STS readout ASIC.
Parameters for one STS module.
Parameters for operating conditions of a STS sensor.
Constructional parameters of a STS sensor.
Parameters container for CbmStsParModule.
Parameters container for CbmStsParSensorCond.
Parameters container for CbmStsParSensor.
Settings for STS simulation (digitizer)
Class representing an instance of a sensor in the CBM-STS.
Class representing the top level of the STS setup.
Definition CbmStsSetup.h:43
CbmStsParSetSensorCond * fParSetCond
Sensor conditions.
virtual void SetParContainers()
Define the needed parameter containers.
void UseSensorCond(CbmStsParSensorCond *sensorCond)
User-defined sensor condition parameters.
void InitParams()
Initialise parameters.
std::pair< Double_t, Double_t > LorentzShift(const CbmStsParSensorCond &conditions, Double_t dZ, Double_t bY)
Average Lorentz Shift in a sensor.
UInt_t CreateModules()
Instantiate reconstruction modules @value Number of modules created.
void UseSensorPar(CbmStsParSensor *sensorPar)
User-defined sensor parameters.
CbmStsParSetModule * fParSetModule
Module parameters.
CbmStsParSim * fParSim
Instance of STS setup.
void UseSensorCondSet(CbmStsParSetSensorCond *sensorCondSet)
User-defined module parameter set.
void GetSensorParameters(CbmStsElement *geoSensor)
Get the sensor parameters.
virtual void Finish()
End-of-run action.
CbmTaskStsHitFinderParWrite(const CbmTaskStsHitFinderParWrite &)=delete
Copy constructor (disabled)
virtual ~CbmTaskStsHitFinderParWrite()
Destructor
CbmStsParSetSensor * fParSetSensor
Sensor parameters.
void UseModulePar(CbmStsParModule *modulePar)
User-defined module parameters.
void UseSensorParSet(CbmStsParSetSensor *sensorParSet)
User-defined module parameter set.
virtual InitStatus Init()
Initialisation.
CbmTaskStsHitFinderParWrite operator=(const CbmTaskStsHitFinderParWrite &)=delete
Assignment operator (disabled)
void UseModuleParSet(CbmStsParSetModule *moduleParSet)
User-defined module parameter set.
virtual void Exec(Option_t *)
Task execution.