CMS 3D CMS Logo

Defines

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/Fireworks/Geometry/src/FWRecoGeometryESProducer.cc File Reference

#include "Fireworks/Geometry/interface/FWRecoGeometryESProducer.h"
#include "Fireworks/Geometry/interface/FWRecoGeometry.h"
#include "Fireworks/Geometry/interface/FWRecoGeometryRecord.h"
#include "DataFormats/GeometrySurface/interface/RectangularPlaneBounds.h"
#include "DataFormats/GeometrySurface/interface/TrapezoidalPlaneBounds.h"
#include "Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.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/Records/interface/CaloGeometryRecord.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/TrackerGeometryBuilder/interface/RectangularPixelTopology.h"
#include "Geometry/TrackerGeometryBuilder/interface/PixelGeomDetUnit.h"
#include "Geometry/TrackerGeometryBuilder/interface/StripGeomDetUnit.h"
#include "Geometry/TrackerGeometryBuilder/interface/StripGeomDetType.h"
#include "Geometry/CommonTopologies/interface/StripTopology.h"
#include "Geometry/CommonTopologies/interface/RectangularStripTopology.h"
#include "Geometry/CommonTopologies/interface/TrapezoidalStripTopology.h"

Go to the source code of this file.

Defines

#define ADD_PIXEL_TOPOLOGY(rawid, detUnit)
#define ADD_SISTRIP_TOPOLOGY(rawid, detUnit)

Define Documentation

#define ADD_PIXEL_TOPOLOGY (   rawid,
  detUnit 
)
Value:
const PixelGeomDetUnit* det = dynamic_cast<const PixelGeomDetUnit*>( detUnit ); \
  if( det )                                                     \
  {                                                             \
    const PixelTopology* topo = &det->specificTopology(); \
    m_fwGeometry->idToName[rawid].topology[0] = topo->nrows();  \
    m_fwGeometry->idToName[rawid].topology[1] = topo->ncolumns(); \
  }                                                             \

Definition at line 27 of file FWRecoGeometryESProducer.cc.

Referenced by FWRecoGeometryESProducer::addPixelBarrelGeometry(), and FWRecoGeometryESProducer::addPixelForwardGeometry().

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

Definition at line 36 of file FWRecoGeometryESProducer.cc.

Referenced by FWRecoGeometryESProducer::addTECGeometry(), FWRecoGeometryESProducer::addTIBGeometry(), FWRecoGeometryESProducer::addTIDGeometry(), and FWRecoGeometryESProducer::addTOBGeometry().