33 edm::LogInfo (
"MuonNavigationPrinter")<<
"MuonNavigationPrinter::MuonNavigationPrinter" ;
34 vector<DetLayer*>::const_iterator iter;
35 edm::LogInfo (
"MuonNavigationPrinter")<<
"================================";
41 edm::LogInfo (
"MuonNavigationPrinter")<<
"There are "<<barrel.size()<<
" Barrel DetLayers";
42 for ( iter = barrel.begin(); iter != barrel.end(); iter++ ) printLayer(*iter);
43 edm::LogInfo (
"MuonNavigationPrinter")<<
"================================";
46 vector<DetLayer*> backward;
50 edm::LogInfo (
"MuonNavigationPrinter")<<
"There are "<<backward.size()<<
" Backward DetLayers";
51 for ( iter = backward.begin(); iter != backward.end(); iter++ ) printLayer(*iter);
52 edm::LogInfo (
"MuonNavigationPrinter") <<
"==============================";
54 vector<DetLayer*> forward;
58 edm::LogInfo (
"MuonNavigationPrinter")<<
"There are "<<forward.size()<<
" Forward DetLayers";
59 for ( iter = forward.begin(); iter != forward.end(); iter++ ) printLayer(*iter);
65 edm::LogInfo (
"MuonNavigationPrinter")<<
"MuonNavigationPrinter::MuonNavigationPrinter" ;
66 vector<DetLayer*>::const_iterator iter;
69 edm::LogInfo (
"MuonNavigationPrinter")<<
"================================";
71 vector<BarrelDetLayer*> tkbarrel = tracker->
barrelLayers();
72 edm::LogInfo (
"MuonNavigationPrinter")<<
"There are "<<tkbarrel.size()<<
" Tk Barrel DetLayers";
75 edm::LogInfo (
"MuonNavigationPrinter")<<
"There are "<<barrel.size()<<
" Mu Barrel DetLayers";
76 for ( iter = barrel.begin(); iter != barrel.end(); iter++ ) printLayer(*iter);
77 edm::LogInfo (
"MuonNavigationPrinter")<<
"================================";
80 edm::LogInfo (
"MuonNavigationPrinter")<<
"There are "<<tkbackward.size()<<
" Tk Backward DetLayers";
83 edm::LogInfo (
"MuonNavigationPrinter")<<
"There are "<<backward.size()<<
" Mu Backward DetLayers";
84 for ( iter = backward.begin(); iter != backward.end(); iter++ ) printLayer(*iter);
85 edm::LogInfo (
"MuonNavigationPrinter") <<
"==============================";
88 edm::LogInfo (
"MuonNavigationPrinter")<<
"There are "<<tkforward.size()<<
" Tk Forward DetLayers";
92 edm::LogInfo (
"MuonNavigationPrinter")<<
"There are "<<forward.size()<<
" Mu Forward DetLayers";
93 for ( iter = forward.begin(); iter != forward.end(); iter++ ) printLayer(*iter);
104 << setiosflags(ios::showpoint | ios::fixed)
105 << setw(8) << setprecision(2)
106 << bdl->specificSurface().radius() <<
" length: "
107 << setw(6) << setprecision(2)
111 else if (
ForwardDetLayer* fdl = dynamic_cast<ForwardDetLayer*>(layer)) {
114 << setiosflags(ios::showpoint | ios::fixed)
115 << setw(8) << setprecision(2)
117 << setw(6) << setprecision(2)
118 << fdl->specificSurface().innerRadius() <<
" outer r: "
119 << setw(6) << setprecision(2)
120 << fdl->specificSurface().outerRadius();
122 edm::LogInfo (
"MuonNavigationPrinter") <<
" has " << nextLayers.size() <<
" next layers in the direction inside-out: ";
123 printLayers(nextLayers);
128 edm::LogInfo (
"MuonNavigationPrinter") <<
" has " << nextLayers.size() <<
" next layers in the direction outside-in: ";
129 printLayers(nextLayers);
131 edm::LogInfo (
"MuonNavigationPrinter") <<
" has " << compatibleLayers.size() <<
" compatible layers in the direction inside-out:: ";
132 printLayers(compatibleLayers);
133 compatibleLayers.clear();
136 edm::LogInfo (
"MuonNavigationPrinter") <<
" has " << compatibleLayers.size() <<
" compatible layers in the direction outside-in: ";
137 printLayers(compatibleLayers);
144 for ( vector<const DetLayer*>::const_iterator inext = nextLayers.begin();
145 inext != nextLayers.end(); inext++ ) {
150 edm::LogInfo (
"MuonNavigationPrinter") << (*inext)->location() <<
" "
151 << (*inext)->subDetector()
153 << setiosflags(ios::showpoint | ios::fixed)
154 << setw(8) << setprecision(2)
159 edm::LogInfo (
"MuonNavigationPrinter") << (*inext)->location() <<
" "
160 << (*inext)->subDetector()
162 << setiosflags(ios::showpoint | ios::fixed)
163 << setw(8) << setprecision(2)
166 edm::LogInfo (
"MuonNavigationPrinter") << setiosflags(ios::showpoint | ios::fixed)
168 << setw(6) << (*inext)->surface().bounds().length() <<
", "
169 << setw(6) << (*inext)->surface().bounds().width() <<
", "
170 << setw(4) <<(*inext)->surface().bounds().thickness() <<
" : "
171 << (*inext)->surface().position();
virtual const BoundSurface & surface() const =0
The surface of the GeometricSearchDet.
virtual float length() const =0
std::vector< const DetLayer * > compatibleLayers(Args &&...args) const
Returns all layers compatible.
virtual Location location() const =0
Which part of the detector (barrel, endcap)
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
const Bounds & bounds() const
const std::vector< DetLayer * > & allForwardLayers() const
return all forward (+Z) layers (CSC+RPC), inside-out
const std::vector< DetLayer * > & allDTLayers() const
return the DT DetLayers (barrel), inside-out
void printLayers(const std::vector< const DetLayer * > &) const
print next layers
void printLayer(DetLayer *) const
print layer
std::vector< BarrelDetLayer * > const & barrelLayers() const
MuonNavigationPrinter(const MuonDetLayerGeometry *, bool enableRPC=true)
virtual const BoundSurface & surface() const GCC11_FINAL
The surface of the GeometricSearchDet.
std::vector< ForwardDetLayer * > const & negForwardLayers() const
const std::vector< DetLayer * > & allBackwardLayers() const
return all backward (-Z) layers (CSC+RPC), inside-out
std::vector< ForwardDetLayer * > const & posForwardLayers() const
const std::vector< DetLayer * > & backwardCSCLayers() const
return the backward (-Z) CSC DetLayers, inside-out
const std::vector< DetLayer * > & forwardCSCLayers() const
return the forward (+Z) CSC DetLayers, inside-out
const PositionType & position() const
virtual const BoundCylinder & specificSurface() const GCC11_FINAL
Extension of the interface.
std::vector< const DetLayer * > nextLayers(Args &&...args) const
const std::vector< DetLayer * > & allBarrelLayers() const
return all barrel DetLayers (DT+RPC), inside-out