40 std::pair<float,float> pitch = topo->
pitch();
42 m_fwGeometry->idToName[rawid].topology[1] = pitch.second;
52 # define ADD_SISTRIP_TOPOLOGY( rawid, detUnit ) \ 53 const StripGeomDetUnit* det = dynamic_cast<const StripGeomDetUnit*>( detUnit ); \ 56 const StripTopology* topo = dynamic_cast<const StripTopology*>( &det->specificTopology() ); \ 57 m_fwGeometry->idToName[rawid].topology[0] = 0; \ 58 m_fwGeometry->idToName[rawid].topology[1] = topo->nstrips(); \ 59 m_fwGeometry->idToName[rawid].topology[2] = topo->stripLength(); \ 60 if( const RadialStripTopology* rtop = dynamic_cast<const RadialStripTopology*>( &(det->specificType().specificTopology()) ) ) \ 62 m_fwGeometry->idToName[rawid].topology[0] = 1; \ 63 m_fwGeometry->idToName[rawid].topology[3] = rtop->yAxisOrientation(); \ 64 m_fwGeometry->idToName[rawid].topology[4] = rtop->originToIntersection(); \ 65 m_fwGeometry->idToName[rawid].topology[5] = rtop->phiOfOneEdge(); \ 66 m_fwGeometry->idToName[rawid].topology[6] = rtop->angularWidth(); \ 68 else if( dynamic_cast<const RectangularStripTopology*>( &(det->specificType().specificTopology()) ) ) \ 70 m_fwGeometry->idToName[rawid].topology[0] = 2; \ 71 m_fwGeometry->idToName[rawid].topology[3] = topo->pitch(); \ 73 else if( dynamic_cast<const TrapezoidalStripTopology*>( &(det->specificType().specificTopology()) ) ) \ 75 m_fwGeometry->idToName[rawid].topology[0] = 3; \ 76 m_fwGeometry->idToName[rawid].topology[3] = topo->pitch(); \ 81 const std::array<std::string,3> hgcal_geom_names = { {
"HGCalEESensitive",
82 "HGCalHESiliconSensitive",
83 "HGCalHEScintillatorSensitive" } };
99 std::shared_ptr<FWRecoGeometry>
155 for(
auto it = cscGeometry->
chambers().begin(),
164 unsigned int current =
insert_id( rawid );
169 for( std::vector< const CSCLayer* >::const_iterator lit = chamber->
layers().begin(),
170 lend = chamber->
layers().end();
178 unsigned int current =
insert_id( rawid );
207 for(
auto it = dtGeometry->
chambers().begin(),
216 unsigned int current =
insert_id( rawid );
222 for(
auto it = dtGeometry->
layers().begin(),
230 unsigned int rawid = layer->
id().
rawId();
231 unsigned int current =
insert_id( rawid );
245 m_fwGeometry->idToName[current].topology[6] = surf.bounds().width();
246 m_fwGeometry->idToName[current].topology[7] = surf.bounds().thickness();
247 m_fwGeometry->idToName[current].topology[8] = surf.bounds().length();
260 for(
auto it = rpcGeom->
rolls().begin(),
268 unsigned int current =
insert_id( rawid );
282 m_fwGeometry->extraDet.Add(
new TNamed(
"RE4",
"RPC endcap station 4"));
284 catch (std::runtime_error &
e) {
306 unsigned int rawid =
sc->geographicalId().rawId();
307 unsigned int current =
insert_id( rawid );
316 unsigned int rawid = ch->geographicalId().rawId();
317 unsigned int current =
insert_id( rawid );
326 unsigned int rawid = roll->geographicalId().rawId();
327 unsigned int current =
insert_id( rawid );
338 m_fwGeometry->idToName[current].topology[3] = roll->localPitch(lTop);
339 m_fwGeometry->idToName[current].topology[4] = roll->localPitch(lBottom);
340 m_fwGeometry->idToName[current].topology[5] = roll->npads();
344 m_fwGeometry->extraDet.Add(
new TNamed(
"GEM",
"GEM muon detector"));
348 m_fwGeometry->extraDet.Add(
new TNamed(
"GE2",
"GEM endcap station 2"));
350 catch (std::runtime_error &
e) {
357 edm::LogError(
"FWRecoGeometry") <<
" GEM geometry not found " << exception.
what() << std::endl;
376 unsigned int rawid = roll->geographicalId().rawId();
377 unsigned int current =
insert_id( rawid );
388 m_fwGeometry->idToName[current].topology[3] = roll->localPitch(lTop);
389 m_fwGeometry->idToName[current].topology[4] = roll->localPitch(lBottom);
390 m_fwGeometry->idToName[current].topology[5] = roll->npads();
393 m_fwGeometry->extraDet.Add(
new TNamed(
"ME0",
"ME0 muon detector"));
397 edm::LogError(
"FWRecoGeometry") <<
" ME0 geometry not found " << exception.
what() << std::endl;
413 unsigned int rawid = detid.
rawId();
414 unsigned int current =
insert_id( rawid );
434 unsigned int rawid = detid.
rawId();
435 unsigned int current =
insert_id( rawid );
455 unsigned int rawid = detid.
rawId();
456 unsigned int current =
insert_id( rawid );
476 unsigned int rawid = detid.
rawId();
477 unsigned int current =
insert_id( rawid );
497 unsigned int rawid = detid.
rawId();
498 unsigned int current =
insert_id( rawid );
518 unsigned int rawid = detid.
rawId();
519 unsigned int current =
insert_id( rawid );
531 for( std::vector<DetId>::const_iterator it = vid.begin(),
534 unsigned int id =
insert_id( it->rawId());
551 for( std::vector<DetId>::const_iterator it = vid.begin(),
554 unsigned int id =
insert_id( it->rawId());
560 for( std::vector<DetId>::const_iterator it = vid.begin(),
563 unsigned int id =
insert_id( it->rawId());
582 unsigned int index( 0 );
583 for( std::vector<GlobalPoint>::const_iterator
i = begin;
i !=
end; ++
i )
585 assert( index < 23 );
602 std::array< const float, 4 >
const & par = b2->parameters ();
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
T getUntrackedParameter(std::string const &, T const &) const
edm::ESHandle< FastTimeGeometry > m_ftlBarrelGeom
virtual float stripLength() const =0
const std::vector< const CSCLayer * > & layers() const
Return all layers.
const std::vector< const DTChamber * > & chambers() const
Return a vector of all Chamber.
void addPixelForwardGeometry(void)
const CSCWireTopology * wireTopology() const
void addTIBGeometry(void)
void addTECGeometry(void)
std::shared_ptr< FWRecoGeometry > m_fwGeometry
float centreToIntersection() const override
FWRecoGeometryESProducer(const edm::ParameterSet &)
DTLayerId id() const
Return the DetId of this SL.
const std::vector< const RPCRoll * > & rolls() const
Return a vector of all RPC rolls.
void addRPCGeometry(void)
virtual std::pair< float, float > pitch() const =0
float cellWidth() const
Returns the cell width.
const_iterator begin() const
edm::ESHandle< GlobalTrackingGeometry > m_geomRecord
char const * what() const override
const ChamberContainer & chambers() const
Return a vector of all chambers.
double wireSpacing() const
virtual bool isItBigPixelInX(int ixbin) const =0
const StripTopology & specificTopology() const
const TrackerGeometry * m_trackerGeom
const Plane & surface() const
The nominal surface of the GeomDet.
CornersVec getCorners(const DetId &id) const
Returns the corner points of this cell's volume.
const std::vector< DetId > & getValidDetIds(DetId::Detector det=DetId::Detector(0), int subdet=0) const override
Get a list of valid detector ids (for the given subdetector)
void ADD_PIXEL_TOPOLOGY(unsigned int rawid, const GeomDet *detUnit)
void swap(Association< C > &lhs, Association< C > &rhs)
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 TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
const DTTopology & specificTopology() const
const DetContainer & detsTEC() const
float yCentreOfStripPlane() const override
void addCaloGeometry(void)
edm::ESHandle< FastTimeGeometry > m_ftlEndcapGeom
void addCSCGeometry(void)
void addFTLGeometry(void)
void get(HolderT &iHolder) const
const DetContainer & detsPXB() const
void addGEMGeometry(void)
const std::vector< const GEMEtaPartition * > & etaPartitions() const
Return a vector of all GEM eta partitions.
const TrackingGeometry * slaveGeometry(DetId id) const
Return the pointer to the actual geometry for a given DetId.
virtual float localX(float mpX) const =0
DetId geographicalId() const
The label of this GeomDet.
float phiOfOneEdge() const override
float cellHeight() const
Returns the cell height.
unsigned int insert_id(unsigned int id)
const DetContainer & detsTIB() const
const std::vector< const GEMSuperChamber * > & superChambers() const
Return a vector of all GEM super chambers.
void addTIDGeometry(void)
const std::vector< ME0EtaPartition const * > & etaPartitions() const
Return a vector of all ME0 eta partitions.
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
float yAxisOrientation() const override
int channels() const
Returns the number of wires in the layer.
const CaloGeometry * m_caloGeom
const std::vector< const DTLayer * > & layers() const
Return a vector of all SuperLayer.
virtual int nstrips() const =0
void addME0Geometry(void)
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
#define ADD_SISTRIP_TOPOLOGY(rawid, detUnit)
std::shared_ptr< FWRecoGeometry > produce(const FWRecoGeometryRecord &)
const std::vector< const GEMChamber * > & chambers() const
Return a vector of all GEM chambers.
~FWRecoGeometryESProducer(void) override
float angularWidth() const override
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
const_iterator end() const
const DetContainer & detsPXF() const
const TrackerGeomDet * idToDet(DetId) const override
const DetContainer & detsTOB() const
std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id.
const RotationType & rotation() const
virtual float pitch() const =0
virtual float localY(float mpY) const =0
float wireAngle() const override
const PositionType & position() const
T const * product() const
const CSCLayerGeometry * geometry() const
void addTOBGeometry(void)
const DetContainer & detsTID() const
CornersVec getCorners(const DetId &id) const
Returns the corner points of this cell's volume.