4 #include <Math/Transform3D.h>
5 #include <Math/EulerAngles.h>
14 k_NumberOfCellsForCorners(cttopo->sizeForDenseIndexing()),
15 k_NumberOfShapes(cttopo->lastHFRing()),
16 m_cellVec ( k_NumberOfCellsForCorners )
31 const int iea ( cid.ietaAbs() ) ;
32 const unsigned int ip ( ( cid.iphi() - 1 )/4 ) ;
33 const int izoff ( ( cid.zside() + 1 )/2 ) ;
34 const unsigned int offset ( izoff*3*18) ;
36 return ( offset + ip +
59 const DetId& detId ) {
77 0 == cell->
param() ? 0 : cell ) ;
94 dVec.push_back( *iv ) ;
103 dinsVec.push_back(
i );
109 tr = HepGeom::Translate3D( gp.x(), gp.y(), gp.z() ) ;
112 const CLHEP::Hep3Vector
tt ( tr.getTranslation() ) ;
113 tVec.push_back(
tt.x() ) ;
114 tVec.push_back(
tt.y() ) ;
115 tVec.push_back(
tt.z() ) ;
117 const CLHEP::HepRotation
rr ( tr.getRotation() ) ;
118 const ROOT::Math::Transform3D rtr (
rr.xx(),
rr.xy(),
rr.xz(),
tt.x(),
122 rtr.GetRotation( ea ) ;
123 tVec.push_back( ea.Phi() ) ;
124 tVec.push_back( ea.Theta() ) ;
125 tVec.push_back( ea.Psi() ) ;
130 unsigned int ishape ( 9999 ) ;
131 for(
unsigned int ivv ( 0 ) ; ivv !=
parVecVec().size() ; ++ivv ) {
135 ok = ok && ( fabs( par[
k] - pv[
k] ) < 1.e-6 ) ;
142 assert( 9999 != ishape ) ;
145 if( iVec.size() < nn ) iVec.push_back( ishape ) ;
std::vector< CCGFloat > DimVec
CaloTowerGeometry(const CaloTowerTopology *cttopo_)
virtual unsigned int numberOfCellsForCorners() const
std::vector< unsigned int > IVec
std::vector< CCGFloat > TrVec
const_iterator begin() const
HepGeom::Transform3D Tr3D
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)
std::vector< Pt3D > Pt3DVec
unsigned int alignmentTransformIndexLocal(const DetId &id)
CaloCellGeometry::CCGFloat CCGFloat
const CCGFloat * param() const
static void localCorners(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref)
virtual void getTransform(Tr3D &tr, Pt3DVec *lptr) const
--------— only needed by specific utility; overloaded when needed -—
virtual unsigned int numberOfParametersPerShape() const
CaloCellGeometry::Pt3D Pt3D
CaloCellGeometry::CCGFloat CCGFloat
const CaloTowerTopology * cttopo
CaloSubdetectorGeometry::IVec m_dins
unsigned int alignmentTransformIndexGlobal(const DetId &id)
CaloCellGeometry::Pt3D Pt3D
uint32_t denseIndex(const DetId &id) const
static void localCorners(Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref)
AlgebraicVector EulerAngles
void addValidID(const DetId &id)
CaloCellGeometry::CornersMgr * cornersMgr()
int firstHEDoublePhiRing() const
CaloCellGeometry::Pt3DVec Pt3DVec
HepGeom::Point3D< CCGFloat > Pt3D
CaloCellGeometry::Tr3D Tr3D
virtual unsigned int numberOfShapes() const
virtual ~CaloTowerGeometry()
MgrType::const_iterator const_iterator
CaloCellGeometry::Pt3DVec Pt3DVec
const_iterator end() const
virtual unsigned int numberOfTransformParms() const
int firstHFQuadPhiRing() const
const GlobalPoint & getPosition() const
Returns the position of reference for this cell.
virtual void getSummary(CaloSubdetectorGeometry::TrVec &trVector, CaloSubdetectorGeometry::IVec &iVector, CaloSubdetectorGeometry::DimVec &dimVector, CaloSubdetectorGeometry::IVec &dinsVector) const
virtual const CaloCellGeometry * cellGeomPtr(uint32_t index) const