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
5b0cfdcf
Commit
5b0cfdcf
authored
3 years ago
by
Semen Lebedev
Browse files
Options
Downloads
Patches
Plain Diff
Update in run_reco.C macro: Add CbmTrdSetTracksPidLike for particle ID in TRD
parent
c29f97e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!564
Update in run_reco.C macro
Pipeline
#13847
passed
3 years ago
Stage: documentation
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
macro/run/run_reco.C
+18
-7
18 additions, 7 deletions
macro/run/run_reco.C
with
18 additions
and
7 deletions
macro/run/run_reco.C
+
18
−
7
View file @
5b0cfdcf
...
...
@@ -62,7 +62,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
use
MC Option to provide the trackfinder with MC information
** @param
debugWith
MC 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.
...
...
@@ -88,7 +88,8 @@
**
**/
void
run_reco
(
TString
input
=
""
,
Int_t
nTimeSlices
=
-
1
,
Int_t
firstTimeSlice
=
0
,
TString
output
=
""
,
TString
sEvBuildRaw
=
""
,
TString
setup
=
"sis100_electron"
,
TString
paramFile
=
""
,
Bool_t
useMC
=
false
)
TString
sEvBuildRaw
=
""
,
TString
setup
=
"sis100_electron"
,
TString
paramFile
=
""
,
Bool_t
debugWithMC
=
false
)
{
// ========================================================================
...
...
@@ -176,7 +177,7 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
// ----- FairRunAna ---------------------------------------------------
FairRunAna
*
run
=
new
FairRunAna
();
FairFileSource
*
inputSource
=
new
FairFileSource
(
rawFile
);
if
(
use
MC
)
{
inputSource
->
AddFriend
(
traFile
);
}
if
(
debugWith
MC
)
{
inputSource
->
AddFriend
(
traFile
);
}
run
->
SetSource
(
inputSource
);
run
->
SetOutputFile
(
outFile
);
run
->
SetGenerateRunInfo
(
kTRUE
);
...
...
@@ -184,7 +185,7 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
// ------------------------------------------------------------------------
// ----- MCDataManager -----------------------------------
if
(
use
MC
)
{
if
(
debugWith
MC
)
{
CbmMCDataManager
*
mcManager
=
new
CbmMCDataManager
(
"MCDataManager"
,
0
);
mcManager
->
AddFile
(
traFile
);
run
->
AddTask
(
mcManager
);
...
...
@@ -254,7 +255,7 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
// ----------- QA for raw event builder -----------------------------------
if
(
eventBased
&&
use
MC
)
{
if
(
eventBased
&&
debugWith
MC
)
{
CbmBuildEventsQa
*
evBuildQA
=
new
CbmBuildEventsQa
();
run
->
AddTask
(
evBuildQA
);
}
...
...
@@ -359,7 +360,7 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
std
::
cout
<<
"-I- "
<<
myName
<<
": Added task "
<<
psdHit
->
GetName
()
<<
std
::
endl
;
}
// ------------------------------------------------------------------------
if
(
use
MC
)
{
if
(
debugWith
MC
)
{
CbmMatchRecoToMC
*
match1
=
new
CbmMatchRecoToMC
();
run
->
AddTask
(
match1
);
}
...
...
@@ -369,7 +370,7 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
CbmKF
*
kalman
=
new
CbmKF
();
run
->
AddTask
(
kalman
);
CbmL1
*
l1
=
0
;
if
(
use
MC
)
{
l1
=
new
CbmL1
(
"L1"
,
2
,
3
);
}
if
(
debugWith
MC
)
{
l1
=
new
CbmL1
(
"L1"
,
2
,
3
);
}
else
{
l1
=
new
CbmL1
(
"L1"
,
0
);
}
...
...
@@ -431,6 +432,16 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
std
::
cout
<<
"-I- : Added task "
<<
finder
->
GetName
()
<<
std
::
endl
;
// ----------------------------------------------------------------------
// --- Particle Id in TRD -----------------------------------------
if
(
useTrd
)
{
CbmTrdSetTracksPidLike
*
trdLI
=
new
CbmTrdSetTracksPidLike
(
"TRDLikelihood"
,
"TRDLikelihood"
);
trdLI
->
SetUseMCInfo
(
kTRUE
);
trdLI
->
SetUseMomDependence
(
kTRUE
);
run
->
AddTask
(
trdLI
);
std
::
cout
<<
"-I- : Added task "
<<
trdLI
->
GetName
()
<<
std
::
endl
;
}
// ------------------------------------------------------------------------
// ----- RICH reconstruction ----------------------------------------
if
(
useRich
)
{
...
...
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