Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Daniel Wielanek
cbmroot
Commits
9b458c6a
Commit
9b458c6a
authored
2 months ago
by
Administrator
Browse files
Options
Downloads
Patches
Plain Diff
Fix mcbm_hadron_analysis macro
Define the much parameter file name properly in case of mcbm geometry.
parent
3c9137a6
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
macro/mcbm/mcbm_hadron_analysis.C
+17
-11
17 additions, 11 deletions
macro/mcbm/mcbm_hadron_analysis.C
with
17 additions
and
11 deletions
macro/mcbm/mcbm_hadron_analysis.C
+
17
−
11
View file @
9b458c6a
...
...
@@ -37,26 +37,32 @@ void mcbm_hadron_analysis(Int_t nEvents = 10, TString setupName = "mcbm_beam_202
parInput1
->
open
(
ParFile
.
Data
());
rtdb
->
setFirstInput
(
parInput1
);
// ------ Geometry setup ------------------------------------------------
std
::
cout
<<
'\n'
;
TString
setupFile
=
srcDir
+
"/geometry/setup/setup_"
+
setupName
+
".C"
;
TString
setupFunct
=
"setup_"
;
setupFunct
=
setupFunct
+
setupName
+
"()"
;
std
::
cout
<<
"-I- Loading macro "
<<
setupFile
<<
'\n'
;
gROOT
->
LoadMacro
(
setupFile
);
gROOT
->
ProcessLine
(
setupFunct
);
// ----- Load the geometry setup -------------------------------------
std
::
cout
<<
std
::
endl
;
// std::cout << "-I- " << myName << ": Loading setup " << setup << std::endl;
CbmSetup
*
setup
=
CbmSetup
::
Instance
();
// setup->RemoveModule(ECbmModuleId::kTrd);
setup
->
LoadSetup
(
setupName
);
TString
geoTag
;
// ------------------------------------------------------------------------
// ----- MuCh digi parameters initialization --------------------------------------
if
(
setup
->
IsActive
(
ECbmModuleId
::
kMuch
))
{
// Parameter file name
TString
geoTag
;
setup
->
GetGeoTag
(
ECbmModuleId
::
kMuch
,
geoTag
);
Int_t
muchFlag
=
(
geoTag
.
Contains
(
"mcbm"
)
?
1
:
0
);
TString
parFile
=
gSystem
->
Getenv
(
"VMCWORKDIR"
);
parFile
+=
"/parameters/much/much_"
+
geoTag
(
0
,
4
)
+
"_digi_sector.root"
;
if
(
muchFlag
)
{
std
::
cout
<<
geoTag
<<
std
::
endl
;
parFile
=
parFile
+
"/parameters/much/much_"
+
geoTag
+
"_digi_sector.root"
;
std
::
cout
<<
"Using parameter file "
<<
parFile
<<
std
::
endl
;
}
else
{
std
::
cout
<<
geoTag
(
0
,
4
)
<<
std
::
endl
;
parFile
=
parFile
+
"/parameters/much/much_"
+
geoTag
(
0
,
4
)
+
"_digi_sector.root"
;
std
::
cout
<<
"Using parameter file "
<<
parFile
<<
std
::
endl
;
}
// Initialization of the geometry scheme
auto
muchGeoScheme
=
CbmMuchGeoScheme
::
Instance
();
...
...
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