23 : dashedLineWidth_(104), dashedLine_(
std::
string(dashedLineWidth_,
'-')), myName_(
"RPCGeometryServTest") {
24 std::cout <<
"======================== Opening output file" << std::endl;
36 std::cout <<
" Geometry node for RPCGeom is " << &(*pDD) << std::endl;
37 cout <<
" I have " << pDD->detTypes().size() <<
" detTypes" << endl;
38 cout <<
" I have " << pDD->detUnits().size() <<
" detUnits" << endl;
39 cout <<
" I have " << pDD->dets().size() <<
" dets" << endl;
40 cout <<
" I have " << pDD->rolls().size() <<
" rolls" << endl;
41 cout <<
" I have " << pDD->chambers().size() <<
" chambers" << endl;
43 std::cout <<
myName() <<
": Begin iteration over geometry..." << std::endl;
48 for (TrackingGeometry::DetContainer::const_iterator it = pDD->dets().begin(); it != pDD->dets().end(); it++) {
51 if (dynamic_cast<const RPCChamber*>(*it) !=
nullptr) {
55 std::vector<const RPCRoll*> rollsRaf = (ch->
rolls());
56 for (std::vector<const RPCRoll*>::iterator
r = rollsRaf.begin();
r != rollsRaf.end(); ++
r) {
58 std::cout <<
"Region = " << (*r)->id().region() <<
" Ring = " << (*r)->id().ring()
59 <<
" Station = " << (*r)->id().station() <<
" Sector = " << (*r)->id().sector()
60 <<
" Layer = " << (*r)->id().layer() <<
" Subsector = " << (*r)->id().subsector()
61 <<
" Roll = " << (*r)->id().roll() << std::endl;
64 std::cout <<
s.name() <<
" eta partition " <<
s.eta_partition() <<
" nroll=" << ch->
nrolls() <<
" z=" <<
g.z()
65 <<
" phi=" <<
g.phi() <<
" R=" <<
g.perp() << std::endl;
67 if ((*r)->id().region() == 0) {
70 double cmin = cic.first;
71 double cmax = cic.second;
76 std::pair<double, double> cic2(cmin, cmax);
79 std::pair<double, double> cic(
g.z(),
g.z());
82 }
else if ((*r)->id().region() == +1) {
85 double cmin = cic.first;
86 double cmax = cic.second;
91 std::pair<double, double> cic2(cmin, cmax);
94 std::pair<double, double> cic(
g.perp(),
g.perp());
97 }
else if ((*r)->id().region() == -1) {
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.perp(),
g.perp());
118 std::map<int, std::pair<double, double> >::iterator
ieta;
121 std::cout <<
" Eta " <<
ieta->first <<
" Radii = ( " <<
ieta->second.first <<
", " <<
ieta->second.second <<
")" 126 std::cout <<
" Eta " <<
ieta->first <<
" Z = ( " <<
ieta->second.first <<
", " <<
ieta->second.second <<
")" 131 std::cout <<
" Eta " <<
ieta->first <<
" Radii = ( " <<
ieta->second.first <<
", " <<
ieta->second.second <<
")"
~RPCGeometryServTest() override
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
int nrolls() const
Retunr numbers of rolls.
U second(std::pair< T, U > const &p)
std::map< int, std::pair< double, double > > barzranges
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
std::map< int, std::pair< double, double > > forRranges
void analyze(const edm::Event &, const edm::EventSetup &) override
RPCGeometryServTest(const edm::ParameterSet &pset)
const std::string & myName()
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
const std::string dashedLine_
std::map< int, std::pair< double, double > > bacRranges