23 #include "CLHEP/Units/GlobalSystemOfUnits.h"
36 std::string attribute =
"ReadOutName";
37 std::string
value =
"MuonRPCHits";
38 DDValue val(attribute, value, 0.0);
57 std::cout <<
"Building the geometry service"<<std::endl;
62 std::cout <<
"About to run through the RPC structure" << std::endl;
69 std::cout <<
"doSubDets = " << doSubDets << std::endl;
80 std::cout <<
"Getting the Muon base Number"<<std::endl;
85 std::cout <<
"Start the Rpc Numbering Schema"<<std::endl;
92 std::cout <<
"Getting the Unit Number"<<std::endl;
96 std::cout <<
"Getting the RPC det Id "<<detid <<std::endl;
102 std::cout <<
"The RPCDetid is "<<rpcid<<std::endl;
105 DDValue numbOfStrips(
"nStrips");
107 std::vector<const DDsvalues_type* > specs(fview.
specifics());
108 std::vector<const DDsvalues_type* >::iterator is=specs.begin();
110 for (;is!=specs.end(); is++){
111 if (
DDfetch( *is, numbOfStrips)){
112 nStrips=int(numbOfStrips.
doubles()[0]);
117 std::cout <<
"No strip found!!"<<std::endl;
133 rota.GetComponents(x,y,z);
136 float(y.X()),
float(y.Y()),
float(y.Z()),
137 float(z.X()),
float(z.Y()),
float(z.Z()));
139 std::vector<float> pars;
146 float width = dpar[0]/cm;
147 float length = dpar[1]/cm;
148 float thickness = dpar[2]/cm;
152 pars.push_back(width);
153 pars.push_back(length);
154 pars.push_back(numbOfStrips.
doubles()[0]);
160 if (tran.z() >-1500. ){
172 <<
" "<<length<<
" "<<thickness;
175 float be = dpar[4]/cm;
176 float te = dpar[8]/cm;
177 float ap = dpar[0]/cm;
182 pars.push_back(dpar[4]/cm);
183 pars.push_back(dpar[8]/cm);
184 pars.push_back(dpar[0]/cm);
185 pars.push_back(numbOfStrips.
doubles()[0]);
189 <<
" par "<<dpar[4]/cm
190 <<
" "<<dpar[8]/cm<<
" "<<dpar[3]/cm<<
" "
206 std::cout <<
" Number of strips "<<nStrips<<std::endl;
217 std::list<RPCRoll *> rls;
228 ich !=
chids.end(); ich++){
230 std::list<RPCRoll * > rls = ich->second;
235 for(std::list<RPCRoll *>::iterator rl=rls.begin();
236 rl!=rls.end(); rl++){
245 for(std::list<RPCRoll *>::iterator rl=rls.begin();
246 rl!=rls.end(); rl++){
const std::vector< double > & parameters() const
Don't use (only meant to be used by DDbox(), DDtub(), ...)
void add(RPCRoll *rl)
Add Roll to the chamber which takes ownership.
~RPCGeometryBuilderFromDDD()
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
const std::vector< double > & doubles() const
a reference to the double-valued values stored in the given instance of DDValue
void addFilter(const DDFilter &, log_op op=AND)
bool nextSibling()
set the current node to the next sibling ...
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
type of data representation of DDCompactView
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
RPCGeometry * build(const DDCompactView *cview, const MuonDDDConstants &muonConstants)
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
void add(RPCRoll *roll)
Add a RPC roll to the Geometry.
TkRotation & rotateAxes(const Basic3DVector< T > &newX, const Basic3DVector< T > &newY, const Basic3DVector< T > &newZ)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
RPCGeometry * buildGeometry(DDFilteredView &fview, const MuonDDDConstants &muonConstants)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
std::map< RPCDetId, std::list< RPCRoll * > > chids
virtual int baseNumberToUnitNumber(const MuonBaseNumber)
RPCGeometryBuilderFromDDD(bool comp11)
tuple filter
USE THIS FOR SKIMMED TRACKS process.p = cms.Path(process.hltLevel1GTSeed*process.skimming*process.offlineBeamSpot*process.TrackRefitter2) OTHERWISE USE THIS.
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
ESHandle< TrackerGeometry > geometry
int subsector() const
SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel...
const DDSolid & solid() const
Returns a reference object of the solid being the shape of this LogicalPart.
bool firstChild()
set the current node to the first child ...
void setCriteria(const DDValue &nameVal, comp_op, log_op l=AND, bool asString=true, bool merged=true)
const DDTranslation & translation() const
The absolute translation of the current node.
std::vector< const DDsvalues_type * > specifics() const
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history)
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
const std::string & name() const
Returns the name.
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.