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
d8e22cee
Commit
d8e22cee
authored
1 year ago
by
Michael Deveaux
Committed by
Florian Uhlig
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Use gRandom instaed of individual TRandom
parent
55d8b01c
No related branches found
No related tags found
1 merge request
!1371
Add time based digitization and reconstruction for MVD
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/detectors/mvd/SensorDataSheets/CbmMvdMimosis.cxx
+2
-2
2 additions, 2 deletions
core/detectors/mvd/SensorDataSheets/CbmMvdMimosis.cxx
core/detectors/mvd/SensorDataSheets/CbmMvdMimosis.h
+2
-1
2 additions, 1 deletion
core/detectors/mvd/SensorDataSheets/CbmMvdMimosis.h
with
4 additions
and
3 deletions
core/detectors/mvd/SensorDataSheets/CbmMvdMimosis.cxx
+
2
−
2
View file @
d8e22cee
...
...
@@ -73,14 +73,14 @@ Double_t CbmMvdMimosis::ComputeHitDelay(Float_t charge){
Double_t
delay
=
47591.8471
*
std
::
pow
(
charge
,
-
0.9990384691
);
Double_t
delaySigma
=
11909.5799315438
*
std
::
pow
(
charge
,
-
1.0784955428
);
return
delay
+
fRandom
.
Gaus
(
delay
,
delaySigma
);
//models the pixel-to-pixel variation in terms of delay
return
delay
+
fRandom
->
Gaus
(
delay
,
delaySigma
);
//models the pixel-to-pixel variation in terms of delay
}
Double_t
CbmMvdMimosis
::
ComputeHitJitter
(
Float_t
charge
){
Double_t
jitter
=
194945.6385
*
std
::
pow
(
charge
,
-
1.6138338012
);
// Full width of jitter as function of charge
return
fRandom
.
Uniform
(
-
(
jitter
/
2.
),
jitter
/
2.
);
return
fRandom
->
Uniform
(
-
(
jitter
/
2.
),
jitter
/
2.
);
}
...
...
This diff is collapsed.
Click to expand it.
core/detectors/mvd/SensorDataSheets/CbmMvdMimosis.h
+
2
−
1
View file @
d8e22cee
...
...
@@ -21,6 +21,7 @@
#include
"CbmMvdSensorDataSheet.h"
// for CbmMvdSensorDataSheet
#include
<Rtypes.h>
// for ClassDef
#include
<TRandom.h>
class
TBuffer
;
class
TClass
;
...
...
@@ -38,7 +39,7 @@ public:
Double_t
ComputeHitDelay
(
Float_t
charge
);
Double_t
ComputeHitJitter
(
Float_t
charge
);
TRandom
fRandom
;
TRandom
*
fRandom
=
gRandom
;
/** Destructor **/
~
CbmMvdMimosis
();
...
...
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