Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW_OTE_development
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
yudian2002@sjtu.edu.cn
CEPCSW_OTE_development
Commits
66f3bdb7
Commit
66f3bdb7
authored
3 years ago
by
FU Chengdong
Browse files
Options
Downloads
Patches
Plain Diff
fix larger initial value for phi
parent
4644ae03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Reconstruction/Tracking/src/Clupatra/clupatra_new.cpp
+26
-23
26 additions, 23 deletions
Reconstruction/Tracking/src/Clupatra/clupatra_new.cpp
with
26 additions
and
23 deletions
Reconstruction/Tracking/src/Clupatra/clupatra_new.cpp
+
26
−
23
View file @
66f3bdb7
...
...
@@ -288,7 +288,7 @@ namespace clupatra_new{
encoder
[
UTIL
::
ILDCellID0
::
subdet
]
=
UTIL
::
ILDDetID
::
TPC
;
edm4hep
::
ConstTrackerHit
firstHit
;
// = 0 ;
firstHit
.
unlink
();
//
firstHit.unlink();
IMarlinTrack
*
bwTrk
=
0
;
...
...
@@ -1354,11 +1354,18 @@ start:
//IMPL::TrackerHitImpl* thi = dynamic_cast<IMPL::TrackerHitImpl*> ( hitsInFit[i].first ) ;
//thi->setQualityBit( UTIL::ILDTrkHitQualityBit::USED_IN_FIT , 1 ) ;
}
edm4hep
::
TrackState
tsIP
;
edm4hep
::
TrackState
tsFH
;
edm4hep
::
TrackState
tsLH
;
edm4hep
::
TrackState
tsCA
;
edm4hep
::
TrackState
tsBase
;
tsBase
.
D0
=
0
;
tsBase
.
phi
=
0
;
tsBase
.
omega
=
0
;
tsBase
.
Z0
=
0
;
tsBase
.
tanLambda
=
0
;
tsBase
.
referencePoint
=
edm4hep
::
Vector3f
(
0
,
0
,
0
);
tsBase
.
covMatrix
=
std
::
array
<
float
,
15
>
{};
edm4hep
::
TrackState
tsIP
(
tsBase
);
edm4hep
::
TrackState
tsFH
(
tsBase
);
edm4hep
::
TrackState
tsLH
(
tsBase
);
edm4hep
::
TrackState
tsCA
(
tsBase
);
tsIP
.
location
=
lcio
::
TrackState
::
AtIP
;
tsFH
.
location
=
lcio
::
TrackState
::
AtFirstHit
;
...
...
@@ -1385,10 +1392,9 @@ start:
code
=
mtrk
->
getTrackState
(
fHit
,
tsFH
,
chi2
,
ndf
)
;
if
(
code
!=
MarlinTrk
::
IMarlinTrack
::
success
){
std
::
cout
<<
" >>>>>>>>>>> PLCIOTrackConverter : could not get TrackState at first Hit !!?? "
<<
" error code : "
<<
MarlinTrk
::
errorCode
(
code
)
<<
std
::
endl
;
//std::cout << " >>>>>>>>>>> PLCIOTrackConverter : could not get TrackState at first Hit !!?? "
// << " error code : " << MarlinTrk::errorCode( code )
// << std::endl ;
}
// ======= get TrackState at last hit ========================
...
...
@@ -1398,17 +1404,17 @@ start:
#if use_fit_at_last_hit
code
=
mtrk
->
getTrackState
(
lHit
,
tsLH
,
chi2
,
ndf
)
;
#else // get the track state at the last hit by propagating from the last(first) constrained fit position (a la MarlinTrkUtils)
edm4hep
::
ConstTrackerHit
last_constrained_hit
;
edm4hep
::
ConstTrackerHit
last_constrained_hit
(
0
)
;
code
=
mtrk
->
getTrackerHitAtPositiveNDF
(
last_constrained_hit
);
mtrk
->
smooth
()
;
//code =
mtrk->smooth() ;
if
(
code
!=
MarlinTrk
::
IMarlinTrack
::
success
){
std
::
cout
<<
"last_constrained_hit is
un
avaibale
"
<<
std
::
endl
;
//
std::cout << "last_constrained_hit is avaibale
? " << last_constrained_hit.isAvailable()
<< std::endl;
}
else
{
//
else{
// std::cout << "the hit" << std::endl;
// std::cout << lHit.getCellID0() << std::endl;
// std::cout << last_constrained_hit << std::endl;
//
code = mtrk->smooth() ;
code
=
mtrk
->
smooth
()
;
// std::cout << "Smooth success" << std::endl;
// gear::Vector3D last_hit_pos( lHit->getPosition()[0], lHit->getPosition()[1], lHit->getPosition()[2] );
// std::cout << "lHit = " << lHit << std::endl;
...
...
@@ -1420,14 +1426,13 @@ start:
edm4hep
::
Vector3d
last_hit_pos
(
lHit
.
getPosition
()
);
// std::cout << "lHit = " << lHit << std::endl;
code
=
mtrk
->
propagate
(
last_hit_pos
,
last_constrained_hit
,
tsLH
,
chi2
,
ndf
);
}
//}
// std::cout << "Propagate success" << std::endl;
#endif
// std::cout << "We are here" << std::endl;
if
(
code
!=
MarlinTrk
::
IMarlinTrack
::
success
){
std
::
cout
<<
" >>>>>>>>>>> PLCIOTrackConverter : could not get TrackState at last Hit !!?? "
<<
std
::
endl
;
//std::cout << " >>>>>>>>>>> PLCIOTrackConverter : could not get TrackState at last Hit !!?? " << std::endl ;
}
// ======= get TrackState at calo face ========================
...
...
@@ -1459,8 +1464,7 @@ start:
}
if
(
code
!=
MarlinTrk
::
IMarlinTrack
::
success
)
{
// streamlog_out( DEBUG6 ) << " >>>>>>>>>>> PLCIOTrackConverter : could not get TrackState at calo face !!?? " << std::endl ;
//std::cout << " >>>>>>>>>>> PLCIOTrackConverter : could not get TrackState at calo face !!?? " << std::endl ;
}
// ======= get TrackState at IP ========================
...
...
@@ -1475,10 +1479,9 @@ start:
code
=
(
UsePropagate
?
mtrk
->
propagate
(
ipv
,
fHit
,
tsIP
,
chi2
,
ndf
)
:
mtrk
->
extrapolate
(
ipv
,
tsIP
,
chi2
,
ndf
)
)
;
if
(
code
!=
MarlinTrk
::
IMarlinTrack
::
success
){
std
::
cout
<<
" >>>>>>>>>>> PLCIOTrackConverter : could not extrapolate TrackState to IP !!?? "
<<
std
::
endl
;
//std::cout << " >>>>>>>>>>> PLCIOTrackConverter : could not extrapolate TrackState to IP !!?? " << std::endl ;
}
//std::cout << "D0 = " << tsLH.D0 << " phi = " << tsLH.phi << " omega = " << tsLH.omega << " Z0 = " << tsLH.Z0 << " tanLambda = " << tsLH.tanLambda << std::endl;
trk
.
addToTrackStates
(
tsIP
)
;
trk
.
addToTrackStates
(
tsFH
)
;
trk
.
addToTrackStates
(
tsLH
)
;
...
...
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