#include <MTDNavigationPrinter.h>
Description: class to print the MTDNavigationSchool
- Author
- : L. Gray - FNAL
Definition at line 22 of file MTDNavigationPrinter.h.
◆ MTDNavigationPrinter() [1/2]
◆ MTDNavigationPrinter() [2/2]
for ( tkfiter = tkbackward.begin(); tkfiter != tkbackward.end(); tkfiter++ ) printLayer(*tkfiter);
Definition at line 78 of file MTDNavigationPrinter.cc.
82 PRINT(
"MTDNavigationPrinter") <<
"MTDNavigationPrinter::MTDNavigationPrinter" << std::endl;
85 PRINT(
"MTDNavigationPrinter") <<
"================================" << std::endl;
86 PRINT(
"MTDNavigationPrinter") <<
"BARREL:" << std::endl;
87 const vector<const BarrelDetLayer*>& tkbarrel =
tracker->barrelLayers();
88 PRINT(
"MTDNavigationPrinter") <<
"There are " << tkbarrel.size() <<
" Tk Barrel DetLayers" << std::endl;
91 PRINT(
"MTDNavigationPrinter") <<
"There are " <<
barrel.size() <<
" Mu Barrel DetLayers";
94 PRINT(
"MTDNavigationPrinter") <<
"================================" << std::endl;
95 PRINT(
"MTDNavigationPrinter") <<
"BACKWARD:" << std::endl;
96 const vector<const ForwardDetLayer*>& tkbackward =
tracker->negForwardLayers();
97 PRINT(
"MTDNavigationPrinter") <<
"There are " << tkbackward.size() <<
" Tk Backward DetLayers" << std::endl;
100 PRINT(
"MTDNavigationPrinter") <<
"There are " << backward.size() <<
" Mu Backward DetLayers << std::endl";
101 for (
auto i : backward)
103 PRINT(
"MTDNavigationPrinter") <<
"==============================" << std::endl;
104 PRINT(
"MTDNavigationPrinter") <<
"FORWARD:" << std::endl;
105 const vector<const ForwardDetLayer*>& tkforward =
tracker->posForwardLayers();
106 PRINT(
"MTDNavigationPrinter") <<
"There are " << tkforward.size() <<
" Tk Forward DetLayers" << std::endl;
110 PRINT(
"MTDNavigationPrinter") <<
"There are " << forward.size() <<
" Mu Forward DetLayers";
111 for (
auto i : forward)
References MTDDetLayerGeometry::allBackwardLayers(), MTDDetLayerGeometry::allBarrelLayers(), MTDDetLayerGeometry::allForwardLayers(), Reference_intrackfit_cff::barrel, mps_fire::i, PRINT, printLayer(), and PbPb_ZMuSkimMuonDPG_cff::tracker.
◆ printLayer()
void MTDNavigationPrinter::printLayer |
( |
const DetLayer * |
layer | ) |
const |
|
private |
print layer
Definition at line 116 of file MTDNavigationPrinter.cc.
119 if (
const BarrelDetLayer* bdl = dynamic_cast<const BarrelDetLayer*>(layer)) {
121 <<
" layer at R: " << setiosflags(ios::showpoint |
ios::fixed) << setw(8)
122 << setprecision(2) << bdl->specificSurface().radius() <<
" length: " << setw(6)
125 }
else if (
const ForwardDetLayer* fdl = dynamic_cast<const ForwardDetLayer*>(layer)) {
126 PRINT(
"MTDNavigationPrinter") << endl
128 <<
"layer at z: " << setiosflags(ios::showpoint |
ios::fixed) << setw(8)
129 << setprecision(2) << layer->
surface().
position().
z() <<
" inner r: " << setw(6)
130 << setprecision(2) << fdl->specificSurface().innerRadius() <<
" outer r: " << setw(6)
131 << setprecision(2) << fdl->specificSurface().outerRadius() << std::endl;
133 PRINT(
"MTDNavigationPrinter") <<
" has " << nextLayers.size()
134 <<
" next layers in the direction inside-out: " << std::endl;
140 PRINT(
"MTDNavigationPrinter") <<
" has " << nextLayers.size()
141 <<
" next layers in the direction outside-in: " << std::endl;
144 PRINT(
"MTDNavigationPrinter") <<
" has " << compatibleLayers.size()
145 <<
" compatible layers in the direction inside-out:: " << std::endl;
147 compatibleLayers.clear();
150 PRINT(
"MTDNavigationPrinter") <<
" has " << compatibleLayers.size()
151 <<
" compatible layers in the direction outside-in: " << std::endl;
References Surface::bounds(), NavigationSchool::compatibleLayers(), alignBH_cfg::fixed, insideOut, Bounds::length(), DetLayer::location(), NavigationSchool::nextLayers(), outsideIn, GloballyPositioned< T >::position(), PRINT, printLayers(), school, DetLayer::subDetector(), GeometricSearchDet::surface(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by MTDNavigationPrinter().
◆ printLayers()
void MTDNavigationPrinter::printLayers |
( |
const std::vector< const DetLayer * > & |
nextLayers | ) |
const |
|
private |
print next layers
Definition at line 156 of file MTDNavigationPrinter.cc.
157 for (vector<const DetLayer*>::const_iterator inext = nextLayers.begin(); inext != nextLayers.end(); inext++) {
158 PRINT(
"MTDNavigationPrinter") <<
" --> " << std::endl;
160 const BarrelDetLayer*
l = dynamic_cast<const BarrelDetLayer*>(&(**inext));
161 PRINT(
"MTDNavigationPrinter") << (*inext)->location() <<
" " << (*inext)->subDetector()
162 <<
" layer at R: " << setiosflags(ios::showpoint |
ios::fixed) << setw(8)
163 << setprecision(2) <<
l->specificSurface().radius() <<
" " << std::endl;
165 const ForwardDetLayer*
l = dynamic_cast<const ForwardDetLayer*>(&(**inext));
166 PRINT(
"MTDNavigationPrinter") << (*inext)->location() <<
" " << (*inext)->subDetector()
167 <<
" layer at z: " << setiosflags(ios::showpoint |
ios::fixed) << setw(8)
168 << setprecision(2) <<
l->surface().position().z() <<
" " << std::endl;
170 PRINT(
"MTDNavigationPrinter") << setiosflags(ios::showpoint |
ios::fixed) << setprecision(1) << setw(6)
171 << (*inext)->surface().bounds().length() <<
", " << setw(6)
172 << (*inext)->surface().bounds().width() <<
", " << setw(4)
173 << (*inext)->surface().bounds().thickness() <<
" : " << (*inext)->surface().position()
References GeomDetEnumerators::barrel, alignBH_cfg::fixed, cmsLHEtoEOSManager::l, and PRINT.
Referenced by printLayer().
◆ school
return detector part (barrel, forward, backward)
return detector module (pixel, silicon, msgc, dt, csc, rpc)
Definition at line 38 of file MTDNavigationPrinter.h.
Referenced by printLayer().
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel,...