CbmRoot
Loading...
Searching...
No Matches
CbmStsDigitizePixel.h
Go to the documentation of this file.
1/* Copyright (C) 2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergey Gorbunov [committer] */
4
10#ifndef CbmStsDigitizePixel_H
11#define CbmStsDigitizePixel_H 1
12
13#include "CbmDefs.h"
14#include "CbmDigitize.h"
15#include "CbmMatch.h"
16#include "CbmStsDefs.h"
17#include "CbmStsDigi.h"
18#include "CbmStsPhysics.h"
19#include "CbmStsSimModule.h"
20#include "CbmStsSimSensor.h"
21
22#include "TStopwatch.h"
23
24#include <map>
25
26class TClonesArray;
27class CbmStsPoint;
28class CbmStsParAsic;
29class CbmStsParModule;
30class CbmStsParSensor;
35class CbmStsParSim;
36class CbmStsSetup;
38
39
53class CbmStsDigitizePixel : public CbmDigitize<CbmStsDigi> {
54
55public:
58
60 CbmStsDigitizePixel(Double_t resolutionXcm, Double_t resolutionYcm, Double_t resolutionTns, int nPixelStations);
61
63 virtual ~CbmStsDigitizePixel();
64
65
70
74 virtual void SetParContainers();
75
76
78 virtual void Exec(Option_t* opt);
79
80
82 virtual InitStatus ReInit();
83
85 virtual void Finish();
86
87
89 virtual InitStatus Init();
90
92
94
96 void SetPixelResolutionX(double resXcm) { fPixelResolutionXcm = resXcm; }
97
99 void SetPixelResolutionY(double resYcm) { fPixelResolutionYcm = resYcm; }
100
102 void SetPixelResolutionTime(double resolutionTns) { fPixelResolutionTns = resolutionTns; }
103
105 void SetStripResolutionX(double resXcm) { fStripResolutionXcm = resXcm; }
106
108 void SetStripResolutionY(double resYcm) { fStripResolutionYcm = resYcm; }
109
111 void SetStripResolutionTime(double resolutionTns) { fStripResolutionTns = resolutionTns; }
112
113
114private:
116
117 //std::map<Int_t, CbmStsDigitizeParameters*> fModuleParameterMap; ///< Individual module parameter map
119 TClonesArray* fPoints {nullptr};
120
121 // --- Module and sensor parameters for runtime DB output
126
127 // data members
128
129 Int_t fPixelNstations {3}; // number of pixel stations.
130 // First fPixelNStations stations of STS will be replaced by pixels.
131
132 Double_t fPixelResolutionXcm {0.0010 / sqrt(12.)}; // pixel resolution in X [cm]
133 Double_t fPixelResolutionYcm {0.0010 / sqrt(12.)}; // pixel resolution in Y [cm]
134 Double_t fPixelResolutionTns {2.6}; // pixel resolution in time [ns]
135
136 Double_t fStripResolutionXcm {0.0010}; // strip resolution in X [cm]
137 Double_t fStripResolutionYcm {0.0100}; // strip resolution in Y [cm]
138 Double_t fStripResolutionTns {2.6}; // strip resolution in time [ns]
139
140
142 void InitParams();
143
146
150
152};
153
154#endif
ECbmModuleId
Definition CbmDefs.h:39
@ kSts
Silicon Tracking System.
friend fvec sqrt(const fvec &a)
Base class template for CBM digitisation tasks.
Definition CbmDigitize.h:44
Task class for simulating the detector response of the experimental STS Pixel setup.
virtual InitStatus Init()
void SetStripResolutionX(double resXcm)
set strip resolution X [cm]
CbmStsParSim * fParSim
Simulation settings.
CbmStsParSetSensorCond * fParSetCond
Sensor conditions.
virtual InitStatus ReInit()
ClassDef(CbmStsDigitizePixel, 0)
TClonesArray * fPoints
STS setup interface.
CbmStsParSetSensor * fParSetSensor
Sensor parameters.
void SetPixelResolutionX(double resXcm)
set pixel resolution X [cm]
CbmStsDigitizePixel operator=(const CbmStsDigitizePixel &)
void SetPixelResolutionY(double resYcm)
set pixel resolution Y [cm]
void SetPixelNstations(int n)
set number of pixel stations
void SetStripResolutionY(double resYcm)
set strip resolution Y [cm]
void InitParams()
Initialise the parameters.
void SetPixelResolutionTime(double resolutionTns)
set pixel resolution Time [ns]
virtual void Exec(Option_t *opt)
virtual void SetParContainers()
Inherited from FairTask.
void SetStripResolutionTime(double resolutionTns)
set strip resolution Time [ns]
CbmStsParSetModule * fParSetModule
Module parameter.
CbmStsDigitizePixel(const CbmStsDigitizePixel &)
Bool_t fIsInitialised
kTRUE if Init() was called
ECbmModuleId GetSystemId() const
Detector system ID.
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 the top level of the STS setup.
Definition CbmStsSetup.h:43