40 const std::string&
myName() {
return myName_;}
53 : dashedLineWidth_(104), dashedLine_( std::string(dashedLineWidth_,
'-') ),
54 myName_(
"RPCGeometryServTest" )
56 std::cout <<
"======================== Opening output file"<< std::endl;
74 std::cout <<
" Geometry node for RPCGeom is " << &(*pDD) << std::endl;
75 cout <<
" I have "<<pDD->detTypes().size() <<
" detTypes" << endl;
76 cout <<
" I have "<<pDD->detUnits().size() <<
" detUnits" << endl;
77 cout <<
" I have "<<pDD->dets().size() <<
" dets" << endl;
78 cout <<
" I have "<<pDD->rolls().size() <<
" rolls" << endl;
79 cout <<
" I have "<<pDD->chambers().size() <<
" chambers" << endl;
81 std::cout <<
myName() <<
": Begin iteration over geometry..." << std::endl;
88 for(TrackingGeometry::DetContainer::const_iterator it =
89 pDD->dets().begin(); it != pDD->dets().end(); it++){
93 if( dynamic_cast< RPCChamber* >( *it ) != 0 ){
98 std::vector< const RPCRoll*> rollsRaf = (ch->
rolls());
99 for(std::vector<const RPCRoll*>::iterator
r = rollsRaf.begin();
100 r != rollsRaf.end(); ++
r){
102 std::cout<<
"Region = "<<(*r)->id().region()
103 <<
" Ring = "<<(*r)->id().ring()
104 <<
" Station = "<<(*r)->id().station()
105 <<
" Sector = "<<(*r)->id().sector()
106 <<
" Layer = "<<(*r)->id().layer()
107 <<
" Subsector = "<<(*r)->id().subsector()
108 <<
" Roll = "<<(*r)->id().roll()<<std::endl;
111 std::cout <<
s.name()<<
" eta partition "<<
s.eta_partition()<<
" nroll="<<ch->
nrolls()
112 <<
" z="<<g.z()<<
" phi="<<g.phi()<<
" R="<<g.perp()
115 if((*r)->id().region() == 0 ){
118 double cmin = cic.first;
119 double cmax = cic.second;
124 std::pair<double,double> cic2(cmin,cmax);
127 std::pair<double, double> cic(g.z(),g.z());
131 else if((*r)->id().region() == +1 ){
134 double cmin = cic.first;
135 double cmax = cic.second;
140 std::pair<double,double> cic2(cmin,cmax);
143 std::pair<double, double> cic(g.perp(),g.perp());
147 else if((*r)->id().region() == -1 ){
150 double cmin = cic.first;
151 double cmax = cic.second;
156 std::pair<double,double> cic2(cmin,cmax);
159 std::pair<double, double> cic(g.perp(),g.perp());
168 std::map<int, std::pair<double, double> >::iterator ieta;
171 std::cout <<
" Eta "<<ieta->first<<
" Radii = ( "<<ieta->second.first
172 <<
", "<<ieta->second.second<<
")"<<std::endl;
176 std::cout <<
" Eta "<<ieta->first<<
" Z = ( "<<ieta->second.first
177 <<
", "<<ieta->second.second<<
")"<<std::endl;
181 std::cout <<
" Eta "<<ieta->first<<
" Radii = ( "<<ieta->second.first
182 <<
", "<<ieta->second.second<<
")"<<std::endl;
virtual void analyze(const edm::Event &, const edm::EventSetup &)
#define DEFINE_FWK_MODULE(type)
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
RPCDetId id() const
Return the RPCChamberId of this chamber.
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
const int nrolls() const
Retunr numbers of rolls.
std::map< int, std::pair< double, double > > forRranges
RPCGeometryServTest(const edm::ParameterSet &pset)
const std::string myName_
const std::string & myName()
const std::string dashedLine_
std::map< int, std::pair< double, double > > bacRranges
const int dashedLineWidth_