Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb
Rec
Commits
58231416
Commit
58231416
authored
1 year ago
by
Hangyi Wu
Browse files
Options
Downloads
Patches
Plain Diff
remove useless comments
parent
2953691e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!3795
Draft: Sazak monitoring dev tae
,
!3559
UThit position methods
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tr/TrackMonitors/src/UTNoClusterTrackMonitor.cpp
+9
-59
9 additions, 59 deletions
Tr/TrackMonitors/src/UTNoClusterTrackMonitor.cpp
with
9 additions
and
59 deletions
Tr/TrackMonitors/src/UTNoClusterTrackMonitor.cpp
+
9
−
59
View file @
58231416
...
...
@@ -166,72 +166,22 @@ void UTNoClusterTrackMonitor<TFitResult, TNode>::fillHistograms( LHCb::Track con
"Unbiased Residual"
,
-
0.5
,
0.5
,
100
);
// 2D plots in full detail mode
//
if ( fullDetail() ) {
const
unsigned
int
bin
=
histoBin
(
chan
);
plot2D
(
bin
,
node
.
unbiasedResidual
(),
"unbiasedResSector"
+
layerName
,
"unbiasedResSector"
+
layerName
,
99.5
,
500.5
,
-
2.
,
2.
,
401
,
200
);
plot2D
(
bin
,
node
.
residual
(),
"biasedResSector"
+
layerName
,
"/biasedResSector"
+
layerName
,
99.5
,
500.5
,
-
2.
,
2.
,
401
,
200
);
//
}
if
(
fullDetail
()
)
{
const
unsigned
int
bin
=
histoBin
(
chan
);
plot2D
(
bin
,
node
.
unbiasedResidual
(),
"unbiasedResSector"
+
layerName
,
"unbiasedResSector"
+
layerName
,
99.5
,
500.5
,
-
2.
,
2.
,
401
,
200
);
plot2D
(
bin
,
node
.
residual
(),
"biasedResSector"
+
layerName
,
"/biasedResSector"
+
layerName
,
99.5
,
500.5
,
-
2.
,
2.
,
401
,
200
);
}
}
// nodes
// make overlap histograms
for
(
size_t
ilay
=
0
;
ilay
<
4
;
++
ilay
)
{
// info() << "UTNoClusterTrackMonitor<TFitResult, TNode>::fillHistograms"
// << " 5.1" << endmsg;
const
char
*
layname
[
4
]
=
{
"UTaX"
,
"UTaU"
,
"UTbV"
,
"UTbX"
};
// std::string prefix = std::string( "/" ) + layname[ilay] + "/";
std
::
string
prefix
=
std
::
string
(
layname
[
ilay
]
)
+
"/"
;
std
::
string
prefix
=
std
::
string
(
layname
[
ilay
]
)
+
"/"
;
plot
(
nodesByUTLayer
[
ilay
].
size
(),
prefix
+
"Number of hits"
,
"Number of hits"
,
-
0.5
,
5.5
);
// if ( nodesByUTLayer[ilay].size() == 2 ) {
// const auto& firstnode = nodesByUTLayer[ilay].front();
// const auto& secondnode = nodesByUTLayer[ilay].back();
// if ( firstnode->measurement().isSameDetectorElement( secondnode->measurement() ) ) {
// if ( firstnode->measurement().toGlobal( Gaudi::XYZPoint() ).x() >
// secondnode->measurement().toGlobal( Gaudi::XYZPoint() ).x() ) {
// std::swap( firstnode, secondnode );
// }
// auto firstTrajectory = firstnode->measurement().getIf<LHCb::Measurement::UT>()->trajectory;
// auto secondTrajectory = secondnode->measurement().getIf<LHCb::Measurement::UT>()->trajectory;
// int firstsign = firstTrajectory.direction( 0 ).y() > 0 ? 1 : -1;
// int secondsign = secondTrajectory.direction( 0 ).y() > 0 ? 1 : -1;
// double firstresidual = firstsign * firstnode->residual();
// double secondresidual = secondsign * secondnode->residual();
// double diff = firstresidual - secondresidual;
// // let's still make the correction for the track angle, such that we really look in the wafer plane.
// Gaudi::XYZVector localdir = firstnode->measurement().toLocal( firstnode->state().slopes() );
// double localTx = localdir.x() / localdir.z();
// diff *= std::sqrt( 1 + localTx * localTx );
// const std::string layerName = UTNames().UniqueLayerToString( firstnode->measurement().lhcbID().utID() );
// plot( diff, prefix + "Overlap residual", std::string( "Overlap residuals in " ) + layerName, -1.0, 1.0, 100
// ); plot( firstresidual * std::sqrt( firstnode->errMeasure2() / firstnode->errResidual2() ),
// prefix + "Residuals in overlaps (left)", std::string( "Residuals in overlaps (left) in " ) + layerName,
// -0.5, 0.5, 100 );
// plot( secondresidual * std::sqrt( secondnode->errMeasure2() / secondnode->errResidual2() ),
// prefix + "Residuals in overlaps (right)", std::string( "Residuals in overlaps (right) in " ) +
// layerName, -0.5, 0.5, 100 );
// // this needs to be fixed: can we somehow can a consecutive ladder ID?
// size_t sectorID = utUniqueSectorID( firstnode->measurement().lhcbID().utID() );
// profile1D( double( sectorID ), diff, prefix + "Overlap residual versus sector ID",
// "Average overlap residual versus sector ID", -0.5, 47.5, 48 );
// if ( fullDetail() ) {
// std::string firstname = firstnode->measurement().name().substr( 55, 10 );
// std::string secondname = secondnode->measurement().name().substr( 55, 10 );
// plot( diff, prefix + "Overlap residual for " + firstname + " and " + secondname,
// "Overlap residual for " + firstname + " and " + secondname, -1.0, 1.0, 50 );
// }
// }
// }
}
}
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