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
73ad1eb7
Commit
73ad1eb7
authored
4 years ago
by
Sergey Gorbunov
Committed by
Sergey Gorbunov
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add an option to run run_rec.C with the MC information
parent
a4754ea8
No related branches found
No related tags found
1 merge request
!247
make some QA tasks work with timeslices
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
macro/run/run_reco.C
+24
-12
24 additions, 12 deletions
macro/run/run_reco.C
with
24 additions
and
12 deletions
macro/run/run_reco.C
+
24
−
12
View file @
73ad1eb7
...
...
@@ -15,6 +15,7 @@
#include
"CbmL1.h"
#include
"CbmL1StsTrackFinder.h"
#include
"CbmLitFindGlobalTracks.h"
#include
"CbmMCDataManager.h"
#include
"CbmMuchFindHitsGem.h"
#include
"CbmMvdClusterfinder.h"
#include
"CbmMvdHitfinder.h"
...
...
@@ -54,6 +55,7 @@
** @param sEvBuildRaw Option for raw event building
** @param setup Name of predefined geometry setup
** @param paramFile Parameter ROOT file (w/o extension .par.root)
** @param useMC Option to provide the trackfinder with MC information
**
** This macro performs from the digis in a time-slice. It can be used
** for simulated data (result of run_digi.C) or real data after unpacking.
...
...
@@ -79,7 +81,7 @@
**
**/
void
run_reco
(
TString
input
=
""
,
Int_t
nTimeSlices
=
-
1
,
Int_t
firstTimeSlice
=
0
,
TString
output
=
""
,
TString
sEvBuildRaw
=
""
,
TString
setup
=
"sis100_electron"
,
TString
paramFile
=
""
)
TString
sEvBuildRaw
=
""
,
TString
setup
=
"sis100_electron"
,
TString
paramFile
=
""
,
Bool_t
useMC
=
false
)
{
// ========================================================================
...
...
@@ -90,7 +92,6 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
TString
logVerbosity
=
"LOW"
;
// ------------------------------------------------------------------------
// ----- Environment --------------------------------------------------
TString
myName
=
"run_reco"
;
// this macro's name for screen output
TString
srcDir
=
gSystem
->
Getenv
(
"VMCWORKDIR"
);
// top source directory
...
...
@@ -100,20 +101,16 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
// ----- In- and output file names ------------------------------------
if
(
input
.
IsNull
())
input
=
"test"
;
TString
rawFile
=
input
+
".raw.root"
;
TString
outFile
=
input
+
".rec.root"
;
TString
monFile
=
input
+
".moni_reco.root"
;
TString
traFile
=
input
+
".tra.root"
;
if
(
output
.
IsNull
())
output
=
input
;
outFile
=
output
+
".reco.root"
;
monFile
=
output
+
".moni_reco.root"
;
TString
outFile
=
output
+
".reco.root"
;
TString
monFile
=
output
+
".moni_reco.root"
;
if
(
paramFile
.
IsNull
())
paramFile
=
input
;
TString
parFile
=
paramFile
+
".par.root"
;
std
::
cout
<<
"Inputfile "
<<
rawFile
<<
std
::
endl
;
std
::
cout
<<
"Outfile "
<<
outFile
<<
std
::
endl
;
std
::
cout
<<
"Parfile "
<<
parFile
<<
std
::
endl
;
// ------------------------------------------------------------------------
// ----- Load the geometry setup -------------------------------------
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
"-I- "
<<
myName
<<
": Loading setup "
<<
setup
<<
std
::
endl
;
...
...
@@ -172,12 +169,20 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
// ----- FairRunAna ---------------------------------------------------
FairRunAna
*
run
=
new
FairRunAna
();
FairFileSource
*
inputSource
=
new
FairFileSource
(
rawFile
);
if
(
useMC
)
{
inputSource
->
AddFriend
(
traFile
);
}
run
->
SetSource
(
inputSource
);
run
->
SetOutputFile
(
outFile
);
run
->
SetGenerateRunInfo
(
kTRUE
);
FairMonitor
::
GetMonitor
()
->
EnableMonitor
(
kTRUE
,
monFile
);
// ------------------------------------------------------------------------
// ----- MCDataManager -----------------------------------
if
(
useMC
)
{
CbmMCDataManager
*
mcManager
=
new
CbmMCDataManager
(
"MCDataManager"
,
0
);
mcManager
->
AddFile
(
traFile
);
run
->
AddTask
(
mcManager
);
}
// ------------------------------------------------------------------------
// ----- Logger settings ----------------------------------------------
FairLogger
::
GetLogger
()
->
SetLogScreenLevel
(
logLevel
.
Data
());
...
...
@@ -383,13 +388,21 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
std
::
cout
<<
"-I- "
<<
myName
<<
": Added task "
<<
psdHit
->
GetName
()
<<
std
::
endl
;
}
// ------------------------------------------------------------------------
if
(
useMC
)
{
CbmMatchRecoToMC
*
match1
=
new
CbmMatchRecoToMC
();
run
->
AddTask
(
match1
);
}
// ----- Track finding in STS (+ MVD) --------------------------------
if
(
useMvd
||
useSts
)
{
CbmKF
*
kalman
=
new
CbmKF
();
run
->
AddTask
(
kalman
);
CbmL1
*
l1
=
new
CbmL1
(
"L1"
,
0
);
CbmL1
*
l1
=
0
;
if
(
useMC
)
{
l1
=
new
CbmL1
(
"L1"
,
2
,
3
);
}
else
{
l1
=
new
CbmL1
(
"L1"
,
0
);
}
l1
->
SetDataMode
(
!
eventBased
);
// --- Material budget file names
TString
mvdGeoTag
;
...
...
@@ -502,7 +515,6 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
gROOT
->
ProcessLine
(
"registerLightIons()"
);
// ------------------------------------------------------------------------
// ----- Start run ----------------------------------------------------
std
::
cout
<<
std
::
endl
<<
std
::
endl
;
std
::
cout
<<
"-I- "
<<
myName
<<
": Starting run"
<<
std
::
endl
;
...
...
This diff is collapsed.
Click to expand it.
Sergey Gorbunov
@se.gorbunov
mentioned in merge request
!564 (merged)
·
3 years ago
mentioned in merge request
!564 (merged)
mentioned in merge request !564
Toggle commit list
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