22 #include "CLHEP/Units/GlobalSystemOfUnits.h"
36 const std::vector<DetId>& detids(rgeo.
detIds());
40 std::vector<double>::const_iterator tranStart;
41 std::vector<double>::const_iterator shapeStart;
42 std::vector<double>::const_iterator rotStart;
43 std::vector<std::string>::const_iterator strStart;
45 for (
unsigned int id=0;
id<detids.size();
id++){
60 *(rotStart+3),*(rotStart+4),*(rotStart+5),
61 *(rotStart+6),*(rotStart+7),*(rotStart+8));
63 std::vector<float> pars;
68 if ( rgeo.
shapeEnd(
id) - shapeStart == 4 ) {
69 float width = *(shapeStart+0)/cm;
70 float length = *(shapeStart+1)/cm;
71 float thickness = *(shapeStart+2)/cm;
72 float nstrip = *(shapeStart+3);
76 pars.push_back(width);
77 pars.push_back(length);
78 pars.push_back(nstrip);
84 if ( *(tranStart+2) > -1500.) {
97 float be = *(shapeStart+0)/cm;
98 float te = *(shapeStart+1)/cm;
99 float ap = *(shapeStart+2)/cm;
100 float ti = *(shapeStart+3)/cm;
101 float nstrip = *(shapeStart+4);
108 pars.push_back(nstrip);
126 std::list<RPCRoll *> rls;
134 for( std::map<
RPCDetId, std::list<RPCRoll *> >::iterator ich=
chids.begin();
135 ich !=
chids.end(); ich++){
137 std::list<RPCRoll * > rls = ich->second;
142 for(std::list<RPCRoll *>::iterator rl=rls.begin();
143 rl!=rls.end(); rl++){
152 for(std::list<RPCRoll *>::iterator rl=rls.begin();
153 rl!=rls.end(); rl++){
void add(RPCRoll *rl)
Add Roll to the chamber which takes ownership.
RPCGeometry * build(const RecoIdealGeometry &rgeo)
std::map< RPCDetId, std::list< RPCRoll * > > chids
std::vector< double >::const_iterator rotStart(size_t ind) const
RPCGeometryBuilderFromCondDB(bool comp11)
TkRotation & rotateAxes(const Basic3DVector< T > &newX, const Basic3DVector< T > &newY, const Basic3DVector< T > &newZ)
std::vector< std::string >::const_iterator strStart(size_t ind) const
std::vector< double >::const_iterator tranStart(size_t ind) const
const std::vector< DetId > & detIds() const
~RPCGeometryBuilderFromCondDB()
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
std::vector< double >::const_iterator shapeEnd(size_t ind) const
ESHandle< TrackerGeometry > geometry
int subsector() const
SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel...
std::vector< double >::const_iterator shapeStart(size_t ind) const
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.