28 # define ADD_PIXEL_TOPOLOGY( rawid, detUnit ) \
29 const PixelGeomDetUnit* det = dynamic_cast<const PixelGeomDetUnit*>( detUnit ); \
32 const PixelTopology* topo = &det->specificTopology(); \
33 m_fwGeometry->idToName[rawid].topology[0] = topo->nrows(); \
34 m_fwGeometry->idToName[rawid].topology[1] = topo->ncolumns(); \
37 # define ADD_SISTRIP_TOPOLOGY( rawid, detUnit ) \
38 const StripGeomDetUnit* det = dynamic_cast<const StripGeomDetUnit*>( detUnit ); \
41 const StripTopology* topo = dynamic_cast<const StripTopology*>( &det->specificTopology() ); \
42 m_fwGeometry->idToName[rawid].topology[0] = 0; \
43 m_fwGeometry->idToName[rawid].topology[1] = topo->nstrips(); \
44 m_fwGeometry->idToName[rawid].topology[2] = topo->stripLength(); \
45 if( const RadialStripTopology* rtop = dynamic_cast<const RadialStripTopology*>( &(det->specificType().specificTopology()) ) ) \
47 m_fwGeometry->idToName[rawid].topology[0] = 1; \
48 m_fwGeometry->idToName[rawid].topology[3] = rtop->yAxisOrientation(); \
49 m_fwGeometry->idToName[rawid].topology[4] = rtop->originToIntersection(); \
50 m_fwGeometry->idToName[rawid].topology[5] = rtop->phiOfOneEdge(); \
51 m_fwGeometry->idToName[rawid].topology[6] = rtop->angularWidth(); \
53 else if( dynamic_cast<const RectangularStripTopology*>( &(det->specificType().specificTopology()) ) ) \
55 m_fwGeometry->idToName[rawid].topology[0] = 2; \
56 m_fwGeometry->idToName[rawid].topology[3] = topo->pitch(); \
58 else if( dynamic_cast<const TrapezoidalStripTopology*>( &(det->specificType().specificTopology()) ) ) \
60 m_fwGeometry->idToName[rawid].topology[0] = 3; \
61 m_fwGeometry->idToName[rawid].topology[3] = topo->pitch(); \
74 boost::shared_ptr<FWRecoGeometry>
112 for( std::vector<CSCChamber*>::const_iterator it = cscGeometry->
chambers().begin(),
126 for( std::vector< const CSCLayer* >::const_iterator lit = chamber->
layers().begin(),
127 lend = chamber->
layers().end();
135 unsigned int current =
insert_id( rawid );
164 for( std::vector<DTChamber *>::const_iterator it = dtGeometry->
chambers().begin(),
179 for( std::vector<DTLayer*>::const_iterator it = dtGeometry->
layers().begin(),
187 unsigned int rawid = layer->
id().
rawId();
217 for( std::vector<RPCRoll *>::const_iterator it = rpcGeom->
rolls().begin(),
244 for( std::vector<GEMEtaPartition *>::const_iterator it = gemGeom->
etaPartitions().begin(),
276 unsigned int rawid = detid.
rawId();
297 unsigned int rawid = detid.
rawId();
318 unsigned int rawid = detid.
rawId();
339 unsigned int rawid = detid.
rawId();
360 unsigned int rawid = detid.
rawId();
381 unsigned int rawid = detid.
rawId();
393 std::vector<DetId> vid =
m_caloGeom->getValidDetIds();
394 for( std::vector<DetId>::const_iterator it = vid.begin(),
399 unsigned int id =
insert_id( it->rawId());
417 unsigned int index( 0 );
418 for( std::vector<GlobalPoint>::const_iterator
i = begin;
i !=
end; ++
i )
420 assert( index < 23 );
437 std::array< const float, 4 >
const & par = b2->parameters ();
450 m_fwGeometry->idToName[id].shape[1] = b2->width() * 0.5;
451 m_fwGeometry->idToName[id].shape[2] = b2->length() * 0.5;
452 m_fwGeometry->idToName[id].shape[3] = b2->thickness() * 0.5;
void swap(ora::Record &rh, ora::Record &lh)
virtual int nstrips() const =0
const std::vector< const CSCLayer * > & layers() const
Return all layers.
void addPixelForwardGeometry(void)
const CSCWireTopology * wireTopology() const
void addTIBGeometry(void)
void addTECGeometry(void)
float yCentreOfStripPlane() const
virtual ~FWRecoGeometryESProducer(void)
FWRecoGeometryESProducer(const edm::ParameterSet &)
DTLayerId id() const
Return the DetId of this SL.
void addRPCGeometry(void)
float cellWidth() const
Returns the cell width.
edm::ESHandle< GlobalTrackingGeometry > m_geomRecord
const ChamberContainer & chambers() const
Return a vector of all chambers.
double wireSpacing() const
const StripTopology & specificTopology() const
const TrackerGeometry * m_trackerGeom
const std::vector< DTLayer * > & layers() const
Return a vector of all SuperLayer.
const Plane & surface() const
The nominal surface of the GeomDet.
boost::shared_ptr< FWRecoGeometry > m_fwGeometry
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
int firstChannel() const
Returns the wire number of the first wire.
uint32_t rawId() const
get the raw id
void fillShapeAndPlacement(unsigned int id, const GeomDet *det)
const DepRecordT & getRecord() const
void addPixelBarrelGeometry(void)
int lastChannel() const
Returns the wire number of the last wire.
const DTTopology & specificTopology() const
virtual float stripLength() const =0
const DetContainer & detsTEC() const
void addCaloGeometry(void)
void addCSCGeometry(void)
float yAxisOrientation() const
const DetContainer & detsPXB() const
void addGEMGeometry(void)
boost::shared_ptr< FWRecoGeometry > produce(const FWRecoGeometryRecord &)
DetId geographicalId() const
The label of this GeomDet.
float centreToIntersection() const
float phiOfOneEdge() const
float cellHeight() const
Returns the cell height.
float angularWidth() const
#define ADD_PIXEL_TOPOLOGY(rawid, detUnit)
virtual const GeomDet * idToDet(DetId) const
unsigned int insert_id(unsigned int id)
const DetContainer & detsTIB() const
const std::vector< DTChamber * > & chambers() const
Return a vector of all Chamber.
void addTIDGeometry(void)
const CSCStripTopology * topology() const
void fillPoints(unsigned int id, std::vector< GlobalPoint >::const_iterator begin, std::vector< GlobalPoint >::const_iterator end)
virtual float stripOffset(void) const
int channels() const
Returns the number of wires in the layer.
#define ADD_SISTRIP_TOPOLOGY(rawid, detUnit)
edm::ESHandle< CaloGeometry > m_caloGeom
virtual const GeomDetUnit * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
virtual float pitch() const =0
const DetContainer & detsPXF() const
const DetContainer & detsTOB() const
const RotationType & rotation() const
const PositionType & position() const
const CSCLayerGeometry * geometry() const
const std::vector< RPCRoll * > & rolls() const
Return a vector of all RPC rolls.
void addTOBGeometry(void)
const DetContainer & detsTID() const
const std::vector< GEMEtaPartition * > & etaPartitions() const
Return a vector of all GEM chambers.