#include <CaloTowerGeometry.h>
Public Types | |
enum | { k_NumberOfCellsForCorners = CaloTowerDetId::kSizeForDenseIndexing } |
enum | { k_NumberOfShapes = 41 } |
enum | { k_NumberOfParametersPerShape = 5 } |
typedef CaloTowerGeometryRecord | AlignedRecord |
typedef CaloTowerAlignmentRcd | AlignmentRecord |
typedef CaloTowerDetId | DetIdType |
typedef PCaloTowerRcd | PGeometryRecord |
Public Member Functions | |
CaloTowerGeometry () | |
virtual unsigned int | numberOfParametersPerShape () const |
virtual unsigned int | numberOfShapes () const |
virtual | ~CaloTowerGeometry () |
Static Public Member Functions | |
static unsigned int | alignmentTransformIndexGlobal (const DetId &id) |
static unsigned int | alignmentTransformIndexLocal (const DetId &id) |
static std::string | dbString () |
static std::vector < HepGeom::Point3D< double > > | localCorners (const double *pv, unsigned int i, HepGeom::Point3D< double > &ref) |
static CaloCellGeometry * | newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, CaloCellGeometry::CornersMgr *mgr, const double *parm, const DetId &detId) |
static unsigned int | numberOfAlignments () |
static std::string | producerTag () |
Only DetId::Calo, subdet=1 DetIds are handled by this class.
Definition at line 17 of file CaloTowerGeometry.h.
Definition at line 22 of file CaloTowerGeometry.h.
Definition at line 21 of file CaloTowerGeometry.h.
Definition at line 24 of file CaloTowerGeometry.h.
Definition at line 23 of file CaloTowerGeometry.h.
anonymous enum |
Definition at line 26 of file CaloTowerGeometry.h.
anonymous enum |
Definition at line 28 of file CaloTowerGeometry.h.
{ k_NumberOfShapes = 41 } ;
anonymous enum |
Definition at line 30 of file CaloTowerGeometry.h.
{ k_NumberOfParametersPerShape = 5 } ;
CaloTowerGeometry::CaloTowerGeometry | ( | ) |
Definition at line 6 of file CaloTowerGeometry.cc.
{ }
CaloTowerGeometry::~CaloTowerGeometry | ( | ) | [virtual] |
Definition at line 10 of file CaloTowerGeometry.cc.
{}
unsigned int CaloTowerGeometry::alignmentTransformIndexGlobal | ( | const DetId & | id | ) | [static] |
Definition at line 35 of file CaloTowerGeometry.cc.
References DetId::Calo.
{ return (unsigned int) DetId::Calo - 1 ; }
unsigned int CaloTowerGeometry::alignmentTransformIndexLocal | ( | const DetId & | id | ) | [static] |
Definition at line 14 of file CaloTowerGeometry.cc.
References CaloGenericDetId::isCaloTower(), CaloTowerDetId::kBarIEta, CaloTowerDetId::kEndIEta, and evf::evtn::offset().
{ const CaloGenericDetId gid ( id ) ; assert( gid.isCaloTower() ) ; const CaloTowerDetId cid ( id ) ; const unsigned int iea ( cid.ietaAbs() ) ; const unsigned int ip ( ( cid.iphi() - 1 )/4 ) ; const int izoff ( ( cid.zside() + 1 )/2 ) ; const unsigned int offset ( izoff*3*18) ; return ( offset + ip + ( CaloTowerDetId::kEndIEta < iea ? 36 : ( CaloTowerDetId::kBarIEta < iea ? 18 : 0 ) ) ) ; }
static std::string CaloTowerGeometry::dbString | ( | ) | [inline, static] |
Definition at line 32 of file CaloTowerGeometry.h.
{ return "PCaloTowerRcd" ; }
std::vector< HepGeom::Point3D< double > > CaloTowerGeometry::localCorners | ( | const double * | pv, |
unsigned int | i, | ||
HepGeom::Point3D< double > & | ref | ||
) | [static] |
Definition at line 41 of file CaloTowerGeometry.cc.
References calogeom::IdealObliquePrism::localCorners().
{ return ( calogeom::IdealObliquePrism::localCorners( pv, ref ) ) ; }
CaloCellGeometry * CaloTowerGeometry::newCell | ( | const GlobalPoint & | f1, |
const GlobalPoint & | f2, | ||
const GlobalPoint & | f3, | ||
CaloCellGeometry::CornersMgr * | mgr, | ||
const double * | parm, | ||
const DetId & | detId | ||
) | [static] |
Definition at line 49 of file CaloTowerGeometry.cc.
References CaloGenericDetId::isCaloTower().
{ const CaloGenericDetId cgid ( detId ) ; assert( cgid.isCaloTower() ) ; return ( new calogeom::IdealObliquePrism( f1, mgr, parm ) ) ; }
static unsigned int CaloTowerGeometry::numberOfAlignments | ( | ) | [inline, static] |
Definition at line 43 of file CaloTowerGeometry.h.
{ return 0 ; }
virtual unsigned int CaloTowerGeometry::numberOfParametersPerShape | ( | ) | const [inline, virtual] |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 35 of file CaloTowerGeometry.h.
References k_NumberOfParametersPerShape.
{ return k_NumberOfParametersPerShape ; }
virtual unsigned int CaloTowerGeometry::numberOfShapes | ( | ) | const [inline, virtual] |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 34 of file CaloTowerGeometry.h.
References k_NumberOfShapes.
{ return k_NumberOfShapes ; }
static std::string CaloTowerGeometry::producerTag | ( | ) | [inline, static] |
Definition at line 41 of file CaloTowerGeometry.h.
Referenced by PCaloGeometryBuilder::beginRun(), and CaloGeometryBuilder::produceAligned().
{ return "TOWER" ; }