36 : dashedLineWidth_(104), dashedLine_( std::
string(dashedLineWidth_,
'-') ),
37 myName_(
"RPCGeometryServTest" )
39 std::cout <<
"======================== Opening output file"<< std::endl;
57 std::cout <<
" Geometry node for RPCGeom is " << &(*pDD) << std::endl;
58 cout <<
" I have "<<pDD->detTypes().size() <<
" detTypes" << endl;
59 cout <<
" I have "<<pDD->detUnits().size() <<
" detUnits" << endl;
60 cout <<
" I have "<<pDD->dets().size() <<
" dets" << endl;
61 cout <<
" I have "<<pDD->rolls().size() <<
" rolls" << endl;
62 cout <<
" I have "<<pDD->chambers().size() <<
" chambers" << endl;
64 std::cout <<
myName() <<
": Begin iteration over geometry..." << std::endl;
71 for(TrackingGeometry::DetContainer::const_iterator it =
72 pDD->dets().begin(); it != pDD->dets().end(); it++){
76 if( dynamic_cast< const RPCChamber* >( *it ) != 0 ){
80 std::vector< const RPCRoll*> rollsRaf = (ch->
rolls());
81 for(std::vector<const RPCRoll*>::iterator
r = rollsRaf.begin();
82 r != rollsRaf.end(); ++
r){
84 std::cout<<
"Region = "<<(*r)->id().region()
85 <<
" Ring = "<<(*r)->id().ring()
86 <<
" Station = "<<(*r)->id().station()
87 <<
" Sector = "<<(*r)->id().sector()
88 <<
" Layer = "<<(*r)->id().layer()
89 <<
" Subsector = "<<(*r)->id().subsector()
90 <<
" Roll = "<<(*r)->id().roll()<<std::endl;
93 std::cout <<
s.name()<<
" eta partition "<<
s.eta_partition()<<
" nroll="<<ch->
nrolls()
94 <<
" z="<<g.z()<<
" phi="<<g.phi()<<
" R="<<g.perp()
97 if((*r)->id().region() == 0 ){
100 double cmin = cic.first;
101 double cmax = cic.second;
106 std::pair<double,double> cic2(cmin,cmax);
109 std::pair<double, double> cic(g.z(),g.z());
113 else if((*r)->id().region() == +1 ){
116 double cmin = cic.first;
117 double cmax = cic.second;
122 std::pair<double,double> cic2(cmin,cmax);
125 std::pair<double, double> cic(g.perp(),g.perp());
129 else if((*r)->id().region() == -1 ){
132 double cmin = cic.first;
133 double cmax = cic.second;
138 std::pair<double,double> cic2(cmin,cmax);
141 std::pair<double, double> cic(g.perp(),g.perp());
150 std::map<int, std::pair<double, double> >::iterator ieta;
153 std::cout <<
" Eta "<<ieta->first<<
" Radii = ( "<<ieta->second.first
154 <<
", "<<ieta->second.second<<
")"<<std::endl;
158 std::cout <<
" Eta "<<ieta->first<<
" Z = ( "<<ieta->second.first
159 <<
", "<<ieta->second.second<<
")"<<std::endl;
163 std::cout <<
" Eta "<<ieta->first<<
" Radii = ( "<<ieta->second.first
164 <<
", "<<ieta->second.second<<
")"<<std::endl;
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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
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.
std::map< int, std::pair< double, double > > forRranges
RPCGeometryServTest(const edm::ParameterSet &pset)
int nrolls() const
Retunr numbers of rolls.
const std::string & myName()
const std::string dashedLine_
std::map< int, std::pair< double, double > > bacRranges