44 std::pair<float,float> pitch = topo->
pitch();
46 m_fwGeometry->idToName[rawid].topology[1] = pitch.second;
56 # define ADD_SISTRIP_TOPOLOGY( rawid, detUnit ) \ 57 const StripGeomDetUnit* det = dynamic_cast<const StripGeomDetUnit*>( detUnit ); \ 60 const StripTopology* topo = dynamic_cast<const StripTopology*>( &det->specificTopology() ); \ 61 m_fwGeometry->idToName[rawid].topology[0] = 0; \ 62 m_fwGeometry->idToName[rawid].topology[1] = topo->nstrips(); \ 63 m_fwGeometry->idToName[rawid].topology[2] = topo->stripLength(); \ 64 if( const RadialStripTopology* rtop = dynamic_cast<const RadialStripTopology*>( &(det->specificType().specificTopology()) ) ) \ 66 m_fwGeometry->idToName[rawid].topology[0] = 1; \ 67 m_fwGeometry->idToName[rawid].topology[3] = rtop->yAxisOrientation(); \ 68 m_fwGeometry->idToName[rawid].topology[4] = rtop->originToIntersection(); \ 69 m_fwGeometry->idToName[rawid].topology[5] = rtop->phiOfOneEdge(); \ 70 m_fwGeometry->idToName[rawid].topology[6] = rtop->angularWidth(); \ 72 else if( dynamic_cast<const RectangularStripTopology*>( &(det->specificType().specificTopology()) ) ) \ 74 m_fwGeometry->idToName[rawid].topology[0] = 2; \ 75 m_fwGeometry->idToName[rawid].topology[3] = topo->pitch(); \ 77 else if( dynamic_cast<const TrapezoidalStripTopology*>( &(det->specificType().specificTopology()) ) ) \ 79 m_fwGeometry->idToName[rawid].topology[0] = 3; \ 80 m_fwGeometry->idToName[rawid].topology[3] = topo->pitch(); \ 85 const std::array<std::string,3> hgcal_geom_names = { {
"HGCalEESensitive",
86 "HGCalHESiliconSensitive",
87 "HGCalHEScintillatorSensitive" } };
103 std::shared_ptr<FWRecoGeometry>
161 for(
auto it = cscGeometry->
chambers().begin(),
170 unsigned int current =
insert_id( rawid );
175 for( std::vector< const CSCLayer* >::const_iterator lit = chamber->
layers().begin(),
176 lend = chamber->
layers().end();
184 unsigned int current =
insert_id( rawid );
213 for(
auto it = dtGeometry->
chambers().begin(),
222 unsigned int current =
insert_id( rawid );
228 for(
auto it = dtGeometry->
layers().begin(),
236 unsigned int rawid = layer->
id().
rawId();
237 unsigned int current =
insert_id( rawid );
251 m_fwGeometry->idToName[current].topology[6] = surf.bounds().width();
252 m_fwGeometry->idToName[current].topology[7] = surf.bounds().thickness();
253 m_fwGeometry->idToName[current].topology[8] = surf.bounds().length();
266 for(
auto it = rpcGeom->
rolls().begin(),
274 unsigned int current =
insert_id( rawid );
288 m_fwGeometry->extraDet.Add(
new TNamed(
"RE4",
"RPC endcap station 4"));
290 catch (std::runtime_error &
e) {
312 unsigned int rawid =
sc->geographicalId().rawId();
313 unsigned int current =
insert_id( rawid );
322 unsigned int rawid = ch->geographicalId().rawId();
323 unsigned int current =
insert_id( rawid );
332 unsigned int rawid = roll->geographicalId().rawId();
333 unsigned int current =
insert_id( rawid );
344 m_fwGeometry->idToName[current].topology[3] = roll->localPitch(lTop);
345 m_fwGeometry->idToName[current].topology[4] = roll->localPitch(lBottom);
346 m_fwGeometry->idToName[current].topology[5] = roll->npads();
350 m_fwGeometry->extraDet.Add(
new TNamed(
"GEM",
"GEM muon detector"));
354 m_fwGeometry->extraDet.Add(
new TNamed(
"GE2",
"GEM endcap station 2"));
356 catch (std::runtime_error &
e) {
363 edm::LogError(
"FWRecoGeometry") <<
" GEM geometry not found " << exception.
what() << std::endl;
382 unsigned int rawid = roll->geographicalId().rawId();
383 unsigned int current =
insert_id( rawid );
394 m_fwGeometry->idToName[current].topology[3] = roll->localPitch(lTop);
395 m_fwGeometry->idToName[current].topology[4] = roll->localPitch(lBottom);
396 m_fwGeometry->idToName[current].topology[5] = roll->npads();
399 m_fwGeometry->extraDet.Add(
new TNamed(
"ME0",
"ME0 muon detector"));
403 edm::LogError(
"FWRecoGeometry") <<
" ME0 geometry not found " << exception.
what() << std::endl;
419 unsigned int rawid = detid.
rawId();
420 unsigned int current =
insert_id( rawid );
440 unsigned int rawid = detid.
rawId();
441 unsigned int current =
insert_id( rawid );
461 unsigned int rawid = detid.
rawId();
462 unsigned int current =
insert_id( rawid );
482 unsigned int rawid = detid.
rawId();
483 unsigned int current =
insert_id( rawid );
503 unsigned int rawid = detid.
rawId();
504 unsigned int current =
insert_id( rawid );
524 unsigned int rawid = detid.
rawId();
525 unsigned int current =
insert_id( rawid );
537 for( std::vector<DetId>::const_iterator it = vid.begin(),
540 unsigned int id =
insert_id( it->rawId());
557 for( std::vector<DetId>::const_iterator it = vid.begin(),
560 unsigned int id =
insert_id( it->rawId());
566 for( std::vector<DetId>::const_iterator it = vid.begin(),
569 unsigned int id =
insert_id( it->rawId());
588 unsigned int index( 0 );
589 for( std::vector<GlobalPoint>::const_iterator
i = begin;
i !=
end; ++
i )
591 assert( index < 23 );
608 std::array< const float, 4 >
const & par = b2->parameters ();
658 path +=
"trackerParameters.xml";
660 std::ifstream
t(fullPath);
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)
constexpr uint32_t rawId() const
get the raw id
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.
bool isThere(GeomDetEnumerators::SubDetector subdet) const
void fillShapeAndPlacement(unsigned int id, const GeomDet *det)
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)
const DepRecordT getRecord() const
void writeTrackerParametersXML()
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
std::string fullPath() 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.