CMS 3D CMS Logo

Macros | Typedefs
FWRecoGeometryESProducer.cc File Reference
#include <fstream>
#include <streambuf>
#include "Fireworks/Geometry/interface/FWRecoGeometryESProducer.h"
#include "Fireworks/Geometry/interface/FWRecoGeometry.h"
#include "Fireworks/Geometry/interface/FWTGeoRecoGeometry.h"
#include "Fireworks/Geometry/interface/FWRecoGeometryRecord.h"
#include "DataFormats/GeometrySurface/interface/RectangularPlaneBounds.h"
#include "DataFormats/GeometrySurface/interface/TrapezoidalPlaneBounds.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
#include "Geometry/HGCalGeometry/interface/HGCalGeometry.h"
#include "Geometry/HGCalGeometry/interface/FastTimeGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include "Geometry/CSCGeometry/interface/CSCGeometry.h"
#include "Geometry/DTGeometry/interface/DTGeometry.h"
#include "Geometry/CSCGeometry/interface/CSCChamber.h"
#include "Geometry/CSCGeometry/interface/CSCLayer.h"
#include "Geometry/DTGeometry/interface/DTChamber.h"
#include "Geometry/DTGeometry/interface/DTLayer.h"
#include "Geometry/RPCGeometry/interface/RPCGeometry.h"
#include "Geometry/GEMGeometry/interface/GEMGeometry.h"
#include "Geometry/GEMGeometry/interface/ME0Geometry.h"
#include "Geometry/Records/interface/CaloGeometryRecord.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/TrackerGeometryBuilder/interface/RectangularPixelTopology.h"
#include "Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h"
#include "Geometry/TrackerGeometryBuilder/interface/StripGeomDetUnit.h"
#include "Geometry/TrackerGeometryBuilder/interface/StripGeomDetType.h"
#include "Geometry/CommonTopologies/interface/PixelTopology.h"
#include "Geometry/CommonTopologies/interface/StripTopology.h"
#include "Geometry/CommonTopologies/interface/RectangularStripTopology.h"
#include "Geometry/CommonTopologies/interface/TrapezoidalStripTopology.h"
#include "Geometry/CommonTopologies/interface/GEMStripTopology.h"
#include "TNamed.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"

Go to the source code of this file.

Macros

#define ADD_SISTRIP_TOPOLOGY(rawid, detUnit)
 

Typedefs

using Phase2TrackerGeomDetUnit = PixelGeomDetUnit
 
using Phase2TrackerTopology = PixelTopology
 

Macro Definition Documentation

◆ ADD_SISTRIP_TOPOLOGY

#define ADD_SISTRIP_TOPOLOGY (   rawid,
  detUnit 
)
Value:
const StripGeomDetUnit* det = dynamic_cast<const StripGeomDetUnit*>(detUnit); \
if (det) { \
if (const StripTopology* topo = dynamic_cast<const StripTopology*>(&det->specificTopology())) { \
fwRecoGeometry.idToName[rawid].topology[0] = 0; \
fwRecoGeometry.idToName[rawid].topology[1] = topo->nstrips(); \
fwRecoGeometry.idToName[rawid].topology[2] = topo->stripLength(); \
} else if (const RadialStripTopology* rtop = \
dynamic_cast<const RadialStripTopology*>(&(det->specificType().specificTopology()))) { \
fwRecoGeometry.idToName[rawid].topology[0] = 1; \
fwRecoGeometry.idToName[rawid].topology[3] = rtop->yAxisOrientation(); \
fwRecoGeometry.idToName[rawid].topology[4] = rtop->originToIntersection(); \
fwRecoGeometry.idToName[rawid].topology[5] = rtop->phiOfOneEdge(); \
fwRecoGeometry.idToName[rawid].topology[6] = rtop->angularWidth(); \
} else if (dynamic_cast<const RectangularStripTopology*>(&(det->specificType().specificTopology()))) { \
fwRecoGeometry.idToName[rawid].topology[0] = 2; \
fwRecoGeometry.idToName[rawid].topology[3] = topo->pitch(); \
} else if (dynamic_cast<const TrapezoidalStripTopology*>(&(det->specificType().specificTopology()))) { \
fwRecoGeometry.idToName[rawid].topology[0] = 3; \
fwRecoGeometry.idToName[rawid].topology[3] = topo->pitch(); \
} \
} else { \
const Phase2TrackerGeomDetUnit* det = dynamic_cast<const Phase2TrackerGeomDetUnit*>(detUnit); \
if (det) { \
if (const Phase2TrackerTopology* topo = \
dynamic_cast<const Phase2TrackerTopology*>(&(det->specificTopology()))) { \
fwRecoGeometry.idToName[rawid].topology[0] = topo->pitch().first; \
fwRecoGeometry.idToName[rawid].topology[1] = topo->pitch().second; \
} \
} \
}

Definition at line 63 of file FWRecoGeometryESProducer.cc.

Typedef Documentation

◆ Phase2TrackerGeomDetUnit

Definition at line 60 of file FWRecoGeometryESProducer.cc.

◆ Phase2TrackerTopology

Definition at line 61 of file FWRecoGeometryESProducer.cc.

RadialStripTopology
Definition: RadialStripTopology.h:28
PixelGeomDetUnit
Definition: PixelGeomDetUnit.h:15
PixelTopology
Definition: PixelTopology.h:10
StripGeomDetUnit::specificType
virtual StripGeomDetType const & specificType() const
Definition: StripGeomDetUnit.cc:13
StripGeomDetType::specificTopology
virtual const TopologyType & specificTopology() const
Definition: StripGeomDetType.h:23
StripGeomDetUnit::specificTopology
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
Definition: StripGeomDetUnit.cc:17
StripTopology
Definition: StripTopology.h:11
StripGeomDetUnit
Definition: StripGeomDetUnit.h:15