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
fa6e31d8
Commit
fa6e31d8
authored
1 year ago
by
Sergey Gorbunov
Browse files
Options
Downloads
Patches
Plain Diff
mcbm: exclude much from default tracking, improve box generator
parent
3b6dd0f1
No related branches found
No related tags found
1 merge request
!1490
mcbm: exclude much from the default tracking; improve the box generator
Pipeline
#25591
passed
1 year ago
Stage: package
Stage: verify
Stage: documentation
Stage: deploy
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
macro/mcbm/mcbm_reco_event.C
+6
-2
6 additions, 2 deletions
macro/mcbm/mcbm_reco_event.C
macro/mcbm/mcbm_transport_boxgen.C
+30
-2
30 additions, 2 deletions
macro/mcbm/mcbm_transport_boxgen.C
with
36 additions
and
4 deletions
macro/mcbm/mcbm_reco_event.C
+
6
−
2
View file @
fa6e31d8
...
@@ -258,8 +258,8 @@ void mcbm_reco_event(Int_t nEvents = 10, TString dataset = "data/test",
...
@@ -258,8 +258,8 @@ void mcbm_reco_event(Int_t nEvents = 10, TString dataset = "data/test",
// ----- Track reconstruction ------------------------------------------
// ----- Track reconstruction ------------------------------------------
Double_t
beamWidthX
=
0
.
1
;
Double_t
beamWidthX
=
0
.
1
;
Double_t
beamWidthY
=
0
.
1
;
Double_t
beamWidthY
=
0
.
1
;
Int_t
iGenCor
=
1
;
Int_t
iGenCor
=
1
;
Double_t
dScalFac
=
1
.;
Double_t
dScalFac
=
1
.;
Double_t
dChi2Lim2
=
3
.
5
;
Double_t
dChi2Lim2
=
3
.
5
;
...
@@ -383,6 +383,10 @@ void mcbm_reco_event(Int_t nEvents = 10, TString dataset = "data/test",
...
@@ -383,6 +383,10 @@ void mcbm_reco_event(Int_t nEvents = 10, TString dataset = "data/test",
// L1 tracking
// L1 tracking
auto
l1
=
(
debugWithMC
)
?
new
CbmL1
(
"CA"
,
5
,
1
)
:
new
CbmL1
(
"CA"
);
auto
l1
=
(
debugWithMC
)
?
new
CbmL1
(
"CA"
,
5
,
1
)
:
new
CbmL1
(
"CA"
);
l1
->
SetMcbmMode
();
l1
->
SetMcbmMode
();
l1
->
DisableTrackingStation
(
cbm
::
algo
::
ca
::
EDetectorID
::
kMuch
,
0
);
l1
->
DisableTrackingStation
(
cbm
::
algo
::
ca
::
EDetectorID
::
kMuch
,
1
);
l1
->
DisableTrackingStation
(
cbm
::
algo
::
ca
::
EDetectorID
::
kMuch
,
2
);
// User configuration example for CA:
// User configuration example for CA:
//l1->SetConfigUser(srcDir + "/macro/L1/configs/ca_params_user_example.yaml");
//l1->SetConfigUser(srcDir + "/macro/L1/configs/ca_params_user_example.yaml");
run
->
AddTask
(
l1
);
run
->
AddTask
(
l1
);
...
...
This diff is collapsed.
Click to expand it.
macro/mcbm/mcbm_transport_boxgen.C
+
30
−
2
View file @
fa6e31d8
...
@@ -108,12 +108,38 @@ void mcbm_transport_boxgen(Int_t nEvents = 10,
...
@@ -108,12 +108,38 @@ void mcbm_transport_boxgen(Int_t nEvents = 10,
// ----- Box generator of a single -----------------------
// ----- Box generator of a single -----------------------
FairBoxGenerator
*
boxGen
=
new
FairBoxGenerator
(
pdg
,
multiplicity
);
FairBoxGenerator
*
boxGen
=
new
FairBoxGenerator
(
pdg
,
multiplicity
);
boxGen
->
SetPRange
(
0
.
1
,
3
.);
boxGen
->
SetXYZ
(
targetPosX
,
targetPosY
,
targetPosZ
);
boxGen
->
SetPRange
(
100
.,
100
.);
boxGen
->
SetPhiRange
(
0
.,
360
.);
boxGen
->
SetPhiRange
(
0
.,
360
.);
boxGen
->
SetThetaRange
(
0
,
50
.);
boxGen
->
SetThetaRange
(
0
.
,
50
.);
boxGen
->
SetCosTheta
();
boxGen
->
SetCosTheta
();
boxGen
->
Init
();
boxGen
->
Init
();
run
.
SetEngine
(
kGeant3
);
run
.
AddInput
(
boxGen
);
run
.
AddInput
(
boxGen
);
CbmGeant3Settings
g3set
;
g3set
.
SetProcessPairProduction
(
0
);
g3set
.
SetProcessComptonScattering
(
0
);
g3set
.
SetProcessPhotoEffect
(
0
);
g3set
.
SetProcessPhotoFission
(
0
);
g3set
.
SetProcessDeltaRay
(
0
);
g3set
.
SetProcessAnnihilation
(
0
);
g3set
.
SetProcessBremsstrahlung
(
0
);
g3set
.
SetProcessHadronicInteraction
(
0
);
g3set
.
SetProcessMuonNuclearInteraction
(
0
);
g3set
.
SetProcessDecay
(
0
);
//g3set.SetProcessEnergyLossModel(0); // energy loss is required by the STS digitization
g3set
.
SetProcessMultipleScattering
(
0
);
g3set
.
SetProcessRayleighScattering
(
0
);
g3set
.
SetProcessCherenkovProduction
(
0
);
g3set
.
SetProcessEneryLossStraggling
(
0
);
run
.
SetGeant3Settings
(
&
g3set
);
// ----- Box generator of a single proton per event -----------------------
// ----- Box generator of a single proton per event -----------------------
run
.
SetOutFileName
(
outFile
,
overwrite
);
run
.
SetOutFileName
(
outFile
,
overwrite
);
...
@@ -128,6 +154,8 @@ void mcbm_transport_boxgen(Int_t nEvents = 10,
...
@@ -128,6 +154,8 @@ void mcbm_transport_boxgen(Int_t nEvents = 10,
if
(
nEvents
<=
10
)
// store only for small number of events
if
(
nEvents
<=
10
)
// store only for small number of events
run
.
StoreTrajectories
();
run
.
StoreTrajectories
();
run
.
SetRandomSeed
(
randomSeed
);
run
.
SetRandomSeed
(
randomSeed
);
run
.
Run
(
nEvents
);
run
.
Run
(
nEvents
);
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
...
...
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