34 : dashedLineWidth_(104), dashedLine_(
std::
string(dashedLineWidth_,
'-')), myName_(
"RPCGeometryServTest") {
35 std::cout <<
"======================== Opening output file" << std::endl;
47 std::cout <<
" Geometry node for RPCGeom is " << &(*pDD) << std::endl;
48 cout <<
" I have " << pDD->
detTypes().size() <<
" detTypes" << endl;
49 cout <<
" I have " << pDD->
detUnits().size() <<
" detUnits" << endl;
50 cout <<
" I have " << pDD->
dets().size() <<
" dets" << endl;
51 cout <<
" I have " << pDD->
rolls().size() <<
" rolls" << endl;
52 cout <<
" I have " << pDD->
chambers().size() <<
" chambers" << endl;
54 std::cout <<
myName() <<
": Begin iteration over geometry..." << std::endl;
59 for (TrackingGeometry::DetContainer::const_iterator it = pDD->
dets().begin(); it != pDD->
dets().end(); it++) {
62 if (dynamic_cast<const RPCChamber*>(*it) !=
nullptr) {
64 const RPCChamber* ch = dynamic_cast<const RPCChamber*>(*it);
66 std::vector<const RPCRoll*> rollsRaf = (ch->
rolls());
67 for (std::vector<const RPCRoll*>::iterator
r = rollsRaf.begin();
r != rollsRaf.end(); ++
r) {
69 std::cout <<
"Region = " << (*r)->id().region() <<
" Ring = " << (*r)->id().ring()
70 <<
" Station = " << (*r)->id().station() <<
" Sector = " << (*r)->id().sector()
71 <<
" Layer = " << (*r)->id().layer() <<
" Subsector = " << (*r)->id().subsector()
72 <<
" Roll = " << (*r)->id().roll() << std::endl;
75 std::cout <<
s.name() <<
" eta partition " <<
s.eta_partition() <<
" nroll=" << ch->
nrolls() <<
" z=" <<
g.z()
76 <<
" phi=" <<
g.phi() <<
" R=" <<
g.perp() << std::endl;
78 if ((*r)->id().region() == 0) {
81 double cmin = cic.first;
82 double cmax = cic.second;
87 std::pair<double, double> cic2(cmin, cmax);
90 std::pair<double, double> cic(
g.z(),
g.z());
93 }
else if ((*r)->id().region() == +1) {
96 double cmin = cic.first;
97 double cmax = cic.second;
102 std::pair<double, double> cic2(cmin, cmax);
105 std::pair<double, double> cic(
g.perp(),
g.perp());
108 }
else if ((*r)->id().region() == -1) {
111 double cmin = cic.first;
112 double cmax = cic.second;
117 std::pair<double, double> cic2(cmin, cmax);
120 std::pair<double, double> cic(
g.perp(),
g.perp());
129 std::map<int, std::pair<double, double> >::iterator
ieta;
132 std::cout <<
" Eta " <<
ieta->first <<
" Radii = ( " <<
ieta->second.first <<
", " <<
ieta->second.second <<
")"
137 std::cout <<
" Eta " <<
ieta->first <<
" Z = ( " <<
ieta->second.first <<
", " <<
ieta->second.second <<
")"
142 std::cout <<
" Eta " <<
ieta->first <<
" Radii = ( " <<
ieta->second.first <<
", " <<
ieta->second.second <<
")"