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
Qiunan Zhang
cbmroot
Commits
fca76950
Commit
fca76950
authored
4 years ago
by
Oleksii Lubynets
Committed by
Oleksii Lubynets
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add PV from reco to CbmKFPF
parent
b7002bfc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reco/KF/CbmKFParticleFinder.cxx
+10
-2
10 additions, 2 deletions
reco/KF/CbmKFParticleFinder.cxx
reco/KF/CbmKFParticleFinder.h
+3
-0
3 additions, 0 deletions
reco/KF/CbmKFParticleFinder.h
with
13 additions
and
2 deletions
reco/KF/CbmKFParticleFinder.cxx
+
10
−
2
View file @
fca76950
...
...
@@ -37,7 +37,7 @@ CbmKFParticleFinder::CbmKFParticleFinder(const char* name, Int_t iVerbose)
,
fTrackArray
(
0
)
,
fEvents
(
0
)
,
fTopoReconstructor
(
0
)
,
fPVFindMode
(
2
)
,
fPVFindMode
(
3
)
,
fPID
(
0
)
,
fSuperEventAnalysis
(
0
)
,
fSETracks
(
0
)
...
...
@@ -116,6 +116,8 @@ InitStatus CbmKFParticleFinder::Init() {
}
}
}
fCbmPrimVertex
=
(
CbmVertex
*
)
ioman
->
GetObject
(
"PrimaryVertex."
);
return
kSUCCESS
;
}
...
...
@@ -255,6 +257,12 @@ void CbmKFParticleFinder::Exec(Option_t* /*opt*/) {
kfVertex
.
GetRefY
()
=
mcpv
[
1
];
kfVertex
.
GetRefZ
()
=
mcpv
[
2
];
}
if
(
fPVFindMode
==
3
)
{
kfVertex
.
GetRefX
()
=
fCbmPrimVertex
->
GetX
();
kfVertex
.
GetRefY
()
=
fCbmPrimVertex
->
GetY
();
kfVertex
.
GetRefZ
()
=
fCbmPrimVertex
->
GetZ
();
}
vector
<
L1FieldRegion
>
vField
,
vFieldAtLastPoint
;
fitter
.
Fit
(
vRTracks
,
pdg
);
...
...
@@ -319,7 +327,7 @@ void CbmKFParticleFinder::Exec(Option_t* /*opt*/) {
eventTopoReconstructor
[
iEvent
].
Init
(
tracks
,
tracksAtLastPoint
);
if
(
fPVFindMode
==
0
)
{
if
(
fPVFindMode
==
0
||
fPVFindMode
==
3
)
{
KFPVertex
primVtx_tmp
;
primVtx_tmp
.
SetXYZ
(
kfVertex
.
GetRefX
(),
kfVertex
.
GetRefY
(),
kfVertex
.
GetRefZ
());
...
...
This diff is collapsed.
Click to expand it.
reco/KF/CbmKFParticleFinder.h
+
3
−
0
View file @
fca76950
...
...
@@ -17,6 +17,7 @@ class KFParticleFinder;
class
KFPTrackVector
;
class
CbmMCEventList
;
class
CbmMCDataArray
;
class
CbmVertex
;
struct
KFFieldVector
{
float
fField
[
10
];
...
...
@@ -32,6 +33,7 @@ public:
void
UseMCPV
()
{
fPVFindMode
=
0
;
}
void
ReconstructSinglePV
()
{
fPVFindMode
=
1
;
}
void
RconstructMultiplePV
()
{
fPVFindMode
=
2
;
}
void
UseReconstructedPV
()
{
fPVFindMode
=
3
;
}
void
SetStsTrackBranchName
(
const
TString
&
name
)
{
fStsTrackBranchName
=
name
;
...
...
@@ -104,6 +106,7 @@ private:
CbmMCDataArray
*
fMCTrackArray
;
//mc tracks in timeslices
TClonesArray
*
fMCTrackArrayEvent
;
//mc tracks in event-by-event mode
CbmMCEventList
*
fEventList
;
//mc event list in timeslice
CbmVertex
*
fCbmPrimVertex
;
//mc primary vertex
//topology reconstructor
KFParticleTopoReconstructor
*
fTopoReconstructor
;
...
...
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