CMS 3D CMS Logo

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes

ZdcGeometry Class Reference

#include <ZdcGeometry.h>

Inheritance diagram for ZdcGeometry:
CaloSubdetectorGeometry

List of all members.

Public Types

enum  { k_NumberOfCellsForCorners = HcalZDCDetId::kSizeForDenseIndexing }
enum  { k_NumberOfShapes = 3 }
enum  { k_NumberOfParametersPerShape = 4 }
typedef ZDCGeometryRecord AlignedRecord
typedef ZDCAlignmentRcd AlignmentRecord
typedef CaloCellGeometry::CCGFloat CCGFloat
typedef std::vector
< IdealZDCTrapezoid
CellVec
typedef HcalZDCDetId DetIdType
typedef PZdcRcd PGeometryRecord
typedef CaloCellGeometry::Pt3D Pt3D
typedef CaloCellGeometry::Pt3DVec Pt3DVec
typedef CaloCellGeometry::Tr3D Tr3D

Public Member Functions

virtual void newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)
virtual unsigned int numberOfParametersPerShape () const
virtual unsigned int numberOfShapes () const
 ZdcGeometry (const ZdcTopology *topology)
 ZdcGeometry ()
virtual ~ZdcGeometry ()

Static Public Member Functions

static unsigned int alignmentTransformIndexGlobal (const DetId &id)
static unsigned int alignmentTransformIndexLocal (const DetId &id)
static std::string dbString ()
static void localCorners (Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref)
static unsigned int numberOfAlignments ()
static std::string producerTag ()

Protected Member Functions

virtual const CaloCellGeometrycellGeomPtr (uint32_t index) const

Private Attributes

DetId::Detector lastReqDet_
int lastReqSubdet_
CellVec m_cellVec
bool m_ownsTopology
const ZdcTopologytheTopology

Detailed Description

Definition at line 12 of file ZdcGeometry.h.


Member Typedef Documentation

Definition at line 24 of file ZdcGeometry.h.

Definition at line 23 of file ZdcGeometry.h.

Reimplemented from CaloSubdetectorGeometry.

Definition at line 18 of file ZdcGeometry.h.

Definition at line 16 of file ZdcGeometry.h.

Definition at line 26 of file ZdcGeometry.h.

Definition at line 25 of file ZdcGeometry.h.

Definition at line 19 of file ZdcGeometry.h.

Definition at line 20 of file ZdcGeometry.h.

Definition at line 21 of file ZdcGeometry.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
k_NumberOfCellsForCorners 

Definition at line 28 of file ZdcGeometry.h.

anonymous enum
Enumerator:
k_NumberOfShapes 

Definition at line 30 of file ZdcGeometry.h.

{ k_NumberOfShapes = 3 } ;
anonymous enum
Enumerator:
k_NumberOfParametersPerShape 

Definition at line 32 of file ZdcGeometry.h.


Constructor & Destructor Documentation

ZdcGeometry::ZdcGeometry ( )
ZdcGeometry::ZdcGeometry ( const ZdcTopology topology) [explicit]

Definition at line 20 of file ZdcGeometry.cc.

ZdcGeometry::~ZdcGeometry ( ) [virtual]

Definition at line 28 of file ZdcGeometry.cc.

References m_ownsTopology, and theTopology.

{
  if( m_ownsTopology ) delete theTopology ;
}

Member Function Documentation

unsigned int ZdcGeometry::alignmentTransformIndexGlobal ( const DetId id) [static]

Definition at line 62 of file ZdcGeometry.cc.

References DetId::Calo.

{
   return (unsigned int)DetId::Calo - 1 ;
}
unsigned int ZdcGeometry::alignmentTransformIndexLocal ( const DetId id) [static]

Definition at line 52 of file ZdcGeometry.cc.

References CaloGenericDetId::isZDC(), and HcalZDCDetId::zside().

{
   const CaloGenericDetId gid ( id ) ;

   assert( gid.isZDC() ) ;

   return ( 0 > HcalZDCDetId( id ).zside() ? 0 : 1 ) ;
}
const CaloCellGeometry * ZdcGeometry::cellGeomPtr ( uint32_t  index) const [protected, virtual]

Implements CaloSubdetectorGeometry.

Definition at line 94 of file ZdcGeometry.cc.

References m_cellVec, and CaloCellGeometry::param().

{
   const CaloCellGeometry* cell ( &m_cellVec[ index ] ) ;
   return ( m_cellVec.size() < index ||
            0 == cell->param() ? 0 : cell ) ;
}
static std::string ZdcGeometry::dbString ( ) [inline, static]

Definition at line 34 of file ZdcGeometry.h.

{ return "PZdcRcd" ; }
void ZdcGeometry::localCorners ( Pt3DVec lc,
const CCGFloat pv,
unsigned int  i,
Pt3D ref 
) [static]

Definition at line 68 of file ZdcGeometry.cc.

{
   IdealZDCTrapezoid::localCorners( lc, pv, ref ) ;
}
void ZdcGeometry::newCell ( const GlobalPoint f1,
const GlobalPoint f2,
const GlobalPoint f3,
const CCGFloat parm,
const DetId detId 
) [virtual]

Implements CaloSubdetectorGeometry.

Definition at line 77 of file ZdcGeometry.cc.

References CaloSubdetectorGeometry::cornersMgr(), CaloGenericDetId::denseIndex(), CaloGenericDetId::isZDC(), m_cellVec, and CaloSubdetectorGeometry::m_validIds.

{
   const CaloGenericDetId cgid ( detId ) ;

   assert( cgid.isZDC() ) ;

   const unsigned int di ( cgid.denseIndex() ) ;

   m_cellVec[ di ] = IdealZDCTrapezoid( f1, cornersMgr(), parm ) ;
   m_validIds.push_back( detId ) ;
}
static unsigned int ZdcGeometry::numberOfAlignments ( ) [inline, static]

Definition at line 48 of file ZdcGeometry.h.

Referenced by FakeCaloAlignmentEP::produceZdcAli(), and TestCaloAlignmentEP::produceZdcAli().

{ return 2 ; }
virtual unsigned int ZdcGeometry::numberOfParametersPerShape ( ) const [inline, virtual]

Reimplemented from CaloSubdetectorGeometry.

Definition at line 37 of file ZdcGeometry.h.

References k_NumberOfParametersPerShape.

virtual unsigned int ZdcGeometry::numberOfShapes ( ) const [inline, virtual]

Reimplemented from CaloSubdetectorGeometry.

Definition at line 36 of file ZdcGeometry.h.

References k_NumberOfShapes.

{ return k_NumberOfShapes ; }
static std::string ZdcGeometry::producerTag ( ) [inline, static]

Member Data Documentation

Definition at line 72 of file ZdcGeometry.h.

int ZdcGeometry::lastReqSubdet_ [mutable, private]

Definition at line 73 of file ZdcGeometry.h.

Definition at line 76 of file ZdcGeometry.h.

Referenced by cellGeomPtr(), and newCell().

Definition at line 74 of file ZdcGeometry.h.

Referenced by ~ZdcGeometry().

Definition at line 71 of file ZdcGeometry.h.

Referenced by ~ZdcGeometry().