Skip to content
Snippets Groups Projects
Commit 58231416 authored by Hangyi Wu's avatar Hangyi Wu
Browse files

remove useless comments

parent 2953691e
No related branches found
No related tags found
2 merge requests!3795Draft: Sazak monitoring dev tae,!3559UThit position methods
......@@ -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 );
// }
// }
// }
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment