12 const HepGeom::Transform3D& tr,
17 EcalBarrelGeometry*
geom );
19 #include "Geometry/CaloEventSetup/interface/CaloGeometryLoader.icc"
28 const HepGeom::Transform3D& tr,
31 std::vector<CCGFloat> pv ;
32 pv.reserve( vv.size() ) ;
33 for(
unsigned int i ( 0 ) ;
i != vv.size() ; ++
i )
35 const CCGFloat factor ( 1==
i || 2==
i || 6==
i || 10==
i ? 1 :
38 pv.push_back( factor*vv[
i] ) ;
41 std::vector<GlobalPoint> corners (8);
43 TruncatedPyramid::createCorners( pv, tr, corners ) ;
47 geom->parVecVec() ) ) ;
53 0.25*( corners[0].
y() +
57 0.25*( corners[0].
z() +
66 0.25*( corners[4].
y() +
70 0.25*( corners[4].
z() +
75 geom->newCell( front, back, corners[0],
83 EcalBarrelGeometry*
geom )
96 const std::vector<double>& fvec = valnPhi.doubles();
99 assert(fvec.size() == 1);
100 geom->setNumXtalsPhiDirection((
int)fvec[0]);
109 const std::vector<double>& fmvec = valnEta.doubles();
112 assert(fmvec.size() == 1);
114 geom->setNumXtalsEtaDirection((
int)fmvec[0]);
124 const std::vector<double>& ebvec = valEtaB.doubles();
125 assert(ebvec.size() > 0);
126 std::vector<int> EtaBaskets;
127 EtaBaskets.resize(ebvec.size());
128 for (
unsigned i = 0;
i<ebvec.size(); ++
i)
129 EtaBaskets[
i] = (
int) ebvec[
i];
130 geom->setEtaBaskets(EtaBaskets);
140 const std::vector<double> & pvec = valPhi.doubles();
141 assert(pvec.size() > 0);
142 geom->setBasketSizeInPhi((
int)pvec[0]);
bool nextSibling()
set the current node to the next sibling ...
std::vector< double > ParmVec
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
CaloCellGeometry::CCGFloat CCGFloat
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
DDsvalues_type mergedSpecifics() const
void fillGeom(T *geom, const ParmVec &pv, const HepGeom::Transform3D &tr, const DetId &id)
void fillNamedParams(const DDFilteredView &fv, T *geom)
static const double k_ScaleFromDDDtoGeant
bool firstChild()
set the current node to the first child ...
CaloGeometryLoader< EcalBarrelGeometry > EcalBGL