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) {
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 <<
")" const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
const std::vector< const RPCRoll * > & rolls() const
Return a vector of all RPC rolls.
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
const DetTypeContainer & detTypes() const override
Return a vector of all det types.
U second(std::pair< T, U > const &p)
std::map< int, std::pair< double, double > > barzranges
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
const std::vector< const RPCChamber * > & chambers() const
Return a vector of all RPC chambers.
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
std::map< int, std::pair< double, double > > forRranges
int nrolls() const
Retunr numbers of rolls.
const std::string & myName()
const std::string dashedLine_
std::map< int, std::pair< double, double > > bacRranges