Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
9
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
cepc
CEPCSW
Commits
3e7b8700
Commit
3e7b8700
authored
4 years ago
by
FU Chengdong
Browse files
Options
Downloads
Patches
Plain Diff
remove debug & add info into throw message
parent
d26426df
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Service/TrackSystemSvc/src/MarlinKalTestTrack.cc
+18
-13
18 additions, 13 deletions
Service/TrackSystemSvc/src/MarlinKalTestTrack.cc
with
18 additions
and
13 deletions
Service/TrackSystemSvc/src/MarlinKalTestTrack.cc
+
18
−
13
View file @
3e7b8700
...
@@ -110,8 +110,14 @@ namespace MarlinTrk {
...
@@ -110,8 +110,14 @@ namespace MarlinTrk {
int
MarlinKalTestTrack
::
addHit
(
edm4hep
::
TrackerHit
*
trkhit
)
{
int
MarlinKalTestTrack
::
addHit
(
edm4hep
::
TrackerHit
*
trkhit
)
{
const
ILDVMeasLayer
*
ml
=
0
;
return
this
->
addHit
(
trkhit
,
_ktest
->
findMeasLayer
(
trkhit
))
;
try
{
ml
=
_ktest
->
findMeasLayer
(
trkhit
);
}
catch
(
MarlinTrk
::
Exception
&
e
){
std
::
cout
<<
e
.
what
()
<<
std
::
endl
;
}
return
this
->
addHit
(
trkhit
,
ml
)
;
}
}
...
@@ -122,8 +128,7 @@ namespace MarlinTrk {
...
@@ -122,8 +128,7 @@ namespace MarlinTrk {
return
this
->
addHit
(
trkhit
,
ml
->
ConvertLCIOTrkHit
(
trkhit
),
ml
)
;
return
this
->
addHit
(
trkhit
,
ml
->
ConvertLCIOTrkHit
(
trkhit
),
ml
)
;
}
}
else
{
else
{
std
::
cout
<<
"MarlinKalTestTrack::addHit: trkhit = "
<<
trkhit
->
id
()
<<
" addr: "
<<
trkhit
<<
" ml = "
<<
ml
<<
std
::
endl
;
//std::cout << "MarlinKalTestTrack::addHit: trkhit = " << trkhit->id() << " addr: " << trkhit << " ml = " << ml << std::endl ;
//streamlog_out( ERROR ) << " MarlinKalTestTrack::addHit - bad inputs " << trkhit << " ml : " << ml << std::endl ;
return
bad_intputs
;
return
bad_intputs
;
}
}
return
bad_intputs
;
return
bad_intputs
;
...
@@ -609,21 +614,21 @@ namespace MarlinTrk {
...
@@ -609,21 +614,21 @@ namespace MarlinTrk {
// get the measurement layer of the current hit
// get the measurement layer of the current hit
const
ILDVMeasLayer
*
ml
=
dynamic_cast
<
const
ILDVMeasLayer
*>
(
&
(
kalhit
->
GetMeasLayer
()
)
)
;
const
ILDVMeasLayer
*
ml
=
dynamic_cast
<
const
ILDVMeasLayer
*>
(
&
(
kalhit
->
GetMeasLayer
()
)
)
;
TVector3
pos
=
ml
->
HitToXv
(
*
kalhit
);
TVector3
pos
=
ml
->
HitToXv
(
*
kalhit
);
/*
std::cout << "debug: Kaltrack::addAndFit : site discarded! at index : " << ml->GetIndex()
std::cout << "debug: Kaltrack::addAndFit : site discarded! at index : " << ml->GetIndex()
<<
" for type "
<<
ml
->
GetName
()
<< " for type " << ml->GetName()
<<
" chi2increment = "
<<
chi2increment
<< " chi2increment = " << chi2increment
<<
" maxChi2Increment = "
<<
maxChi2Increment
<< " maxChi2Increment = " << maxChi2Increment
<<
" x = "
<<
pos
.
x
()
<< " x = " << pos.x()
<<
" y = "
<<
pos
.
y
()
<< " y = " << pos.y()
<<
" z = "
<<
pos
.
z
()
<< " z = " << pos.z()
<<
" with CellIDs: "
<<
std
::
endl
;
<< " with CellIDs: " << std::endl;
for (unsigned int i = 0; i < (dynamic_cast<const ILDVMeasLayer*>( &(kalhit->GetMeasLayer() ) )->getNCellIDs());++i) {
for (unsigned int i = 0; i < (dynamic_cast<const ILDVMeasLayer*>( &(kalhit->GetMeasLayer() ) )->getNCellIDs());++i) {
std::cout << "debug: CellID = "
std::cout << "debug: CellID = "
<< dynamic_cast<const ILDVMeasLayer*>( &(kalhit->GetMeasLayer() ) )->getCellIDs()[i]
<< dynamic_cast<const ILDVMeasLayer*>( &(kalhit->GetMeasLayer() ) )->getCellIDs()[i]
<< std::endl ;
<< std::endl ;
}
}
*/
#ifdef MARLINTRK_DIAGNOSTICS_ON
#ifdef MARLINTRK_DIAGNOSTICS_ON
_ktest
->
_diagnostics
.
record_rejected_site
(
kalhit
,
temp_site
);
_ktest
->
_diagnostics
.
record_rejected_site
(
kalhit
,
temp_site
);
...
...
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