#include <ZdcGeometry.h>
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 CaloCellGeometry * | cellGeomPtr (uint32_t index) const |
Private Attributes | |
DetId::Detector | lastReqDet_ |
int | lastReqSubdet_ |
CellVec | m_cellVec |
bool | m_ownsTopology |
const ZdcTopology * | theTopology |
Definition at line 12 of file ZdcGeometry.h.
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.
typedef std::vector<IdealZDCTrapezoid> ZdcGeometry::CellVec |
Definition at line 16 of file ZdcGeometry.h.
typedef HcalZDCDetId ZdcGeometry::DetIdType |
Definition at line 26 of file ZdcGeometry.h.
typedef PZdcRcd ZdcGeometry::PGeometryRecord |
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.
anonymous enum |
Definition at line 28 of file ZdcGeometry.h.
anonymous enum |
Definition at line 30 of file ZdcGeometry.h.
{ k_NumberOfShapes = 3 } ;
anonymous enum |
Definition at line 32 of file ZdcGeometry.h.
{ k_NumberOfParametersPerShape = 4 } ;
ZdcGeometry::ZdcGeometry | ( | ) |
Definition at line 12 of file ZdcGeometry.cc.
: theTopology( new ZdcTopology ), lastReqDet_(DetId::Detector(0)), lastReqSubdet_(0), m_ownsTopology ( true ), m_cellVec ( k_NumberOfCellsForCorners ) { }
ZdcGeometry::ZdcGeometry | ( | const ZdcTopology * | topology | ) | [explicit] |
Definition at line 21 of file ZdcGeometry.cc.
: theTopology(topology), lastReqDet_(DetId::Detector(0)), lastReqSubdet_(0), m_ownsTopology ( false ), m_cellVec ( k_NumberOfCellsForCorners ) { }
ZdcGeometry::~ZdcGeometry | ( | ) | [virtual] |
Definition at line 30 of file ZdcGeometry.cc.
References m_ownsTopology, and theTopology.
{ if( m_ownsTopology ) delete theTopology ; }
unsigned int ZdcGeometry::alignmentTransformIndexGlobal | ( | const DetId & | id | ) | [static] |
Definition at line 64 of file ZdcGeometry.cc.
References DetId::Calo.
{ return (unsigned int)DetId::Calo - 1 ; }
unsigned int ZdcGeometry::alignmentTransformIndexLocal | ( | const DetId & | id | ) | [static] |
Definition at line 54 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 96 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 70 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 79 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.
{ return 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] |
Definition at line 46 of file ZdcGeometry.h.
Referenced by PCaloGeometryBuilder::beginRun(), CaloGeometryBuilder::produceAligned(), and ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP().
{ return "ZDC" ; }
DetId::Detector ZdcGeometry::lastReqDet_ [mutable, private] |
Definition at line 72 of file ZdcGeometry.h.
int ZdcGeometry::lastReqSubdet_ [mutable, private] |
Definition at line 73 of file ZdcGeometry.h.
CellVec ZdcGeometry::m_cellVec [private] |
Definition at line 76 of file ZdcGeometry.h.
Referenced by cellGeomPtr(), and newCell().
bool ZdcGeometry::m_ownsTopology [private] |
Definition at line 74 of file ZdcGeometry.h.
Referenced by ~ZdcGeometry().
const ZdcTopology* ZdcGeometry::theTopology [private] |
Definition at line 71 of file ZdcGeometry.h.
Referenced by ~ZdcGeometry().