Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
f5b417e9
Commit
f5b417e9
authored
3 years ago
by
Sergey Gorbunov
Browse files
Options
Downloads
Patches
Plain Diff
set time resolution for the sts pixel digitizer
parent
d2b051e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!638
set time resolution for the sts pixel digitizer
Pipeline
#14922
passed
3 years ago
Stage: documentation
Stage: deploy
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sim/detectors/sts/CbmStsDigitizePixel.cxx
+15
-12
15 additions, 12 deletions
sim/detectors/sts/CbmStsDigitizePixel.cxx
sim/detectors/sts/CbmStsDigitizePixel.h
+4
-4
4 additions, 4 deletions
sim/detectors/sts/CbmStsDigitizePixel.h
with
19 additions
and
16 deletions
sim/detectors/sts/CbmStsDigitizePixel.cxx
+
15
−
12
View file @
f5b417e9
...
...
@@ -37,6 +37,8 @@
#include
"FairRuntimeDb.h"
#include
<Logger.h>
#include
<TRandom.h>
// Includes from CbmRoot
#include
"CbmStsDigi.h"
#include
"CbmStsParSetModule.h"
...
...
@@ -72,11 +74,11 @@ using namespace CbmSts;
ClassImp
(
CbmStsDigitizePixel
);
// ----- Standard constructor ------------------------------------------
CbmStsDigitizePixel
::
CbmStsDigitizePixel
(
Double_t
pitchXcm
,
Double_t
pitchYcm
,
Double_t
pitch
Tns
)
CbmStsDigitizePixel
::
CbmStsDigitizePixel
(
Double_t
pitchXcm
,
Double_t
pitchYcm
,
Double_t
resolution
Tns
)
:
CbmDigitize
<
CbmStsDigi
>
(
"StsDigitizePixel"
)
,
fPitchXcm
(
pitchXcm
)
,
fPitchYcm
(
pitchYcm
)
,
f
PitchTns
(
pitch
Tns
)
,
f
ResolutionTns
(
resolution
Tns
)
{
}
// -------------------------------------------------------------------------
...
...
@@ -173,9 +175,10 @@ void CbmStsDigitizePixel::Exec(Option_t* /*opt*/)
UInt_t
address
=
static_cast
<
UInt_t
>
(
point
->
GetDetectorID
());
UShort_t
channel
=
0
;
double
timef
=
fCurrentEventTime
+
point
->
GetTime
();
timef
=
(
floor
(
timef
/
fPitchTns
)
+
0.5
)
*
fPitchTns
;
Long64_t
time
=
Long64_t
(
round
(
timef
));
UShort_t
adc
=
30
;
timef
+=
gRandom
->
Gaus
(
0
,
fResolutionTns
);
Long64_t
time
=
Long64_t
(
round
(
timef
));
if
(
time
<
0
)
{
time
=
0
;
}
UShort_t
adc
=
30
;
assert
(
time
>=
0
);
// Create digi and (if required) match and send them to DAQ
...
...
@@ -228,13 +231,13 @@ void CbmStsDigitizePixel::InitParams()
UInt_t
nAsicChannels
=
128
;
// Number of readout channels per ASIC
// --- ASIC parameters
UShort_t
nAdc
=
32
;
// Number of ADC channels (5 bit)
Double_t
dynRange
=
75000.
;
// Dynamic range [e]
Double_t
threshold
=
3000.
;
// Threshold [e]
Double_t
timeResol
=
f
PitchTns
/
sqrt
(
12.
)
;
// Time resolution [ns]
Double_t
deadTime
=
800.
;
// Channel dead time [ns]
Double_t
noiseRms
=
1000.
;
// RMS of noise [e]
Double_t
znr
=
3.9789e-3
;
// Zero-crossing noise rate [1/ns]
UShort_t
nAdc
=
32
;
// Number of ADC channels (5 bit)
Double_t
dynRange
=
75000.
;
// Dynamic range [e]
Double_t
threshold
=
3000.
;
// Threshold [e]
Double_t
timeResol
=
f
ResolutionTns
;
// Time resolution [ns]
Double_t
deadTime
=
800.
;
// Channel dead time [ns]
Double_t
noiseRms
=
1000.
;
// RMS of noise [e]
Double_t
znr
=
3.9789e-3
;
// Zero-crossing noise rate [1/ns]
CbmStsParAsic
userParAsic
(
nAsicChannels
,
nAdc
,
dynRange
,
threshold
,
timeResol
,
deadTime
,
noiseRms
,
znr
);
CbmStsParModule
userParModule
(
nChannels
,
nAsicChannels
);
...
...
This diff is collapsed.
Click to expand it.
sim/detectors/sts/CbmStsDigitizePixel.h
+
4
−
4
View file @
f5b417e9
...
...
@@ -54,7 +54,7 @@ class CbmStsDigitizePixel : public CbmDigitize<CbmStsDigi> {
public:
/** Constructor **/
CbmStsDigitizePixel
(
Double_t
pitchXcm
=
0.0010
,
Double_t
pitchYcm
=
0.0010
,
Double_t
pitch
Tns
=
20
);
CbmStsDigitizePixel
(
Double_t
pitchXcm
=
0.0010
,
Double_t
pitchYcm
=
0.0010
,
Double_t
resolution
Tns
=
5.
);
/** Destructor **/
...
...
@@ -92,8 +92,8 @@ public:
/// set pitch Y [cm]
void
SetPitchY
(
double
pitchYcm
)
{
fPitchYcm
=
pitchYcm
;
}
/// set
pitch
Time [ns]
void
Set
PitchT
(
double
pitchTns
)
{
fPitchTns
=
pitch
Tns
;
}
/// set
resolution
Time [ns]
void
Set
ResolutionTime
(
double
resolutionTns
)
{
fResolutionTns
=
resolution
Tns
;
}
private
:
Bool_t
fIsInitialised
;
///< kTRUE if Init() was called
...
...
@@ -112,7 +112,7 @@ private:
Double_t
fPitchXcm
{
0.0058
};
// pitch in X [cm]
Double_t
fPitchYcm
{
0.0058
};
// pitch in Y [cm]
Double_t
f
Pitch
Tns
{
20
};
// pitch
in time [ns]
Double_t
f
Resolution
Tns
{
5.
};
// resolution
in time [ns]
/** @brief Initialise the parameters **/
void
InitParams
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment