6 #include "Geometry/CaloEventSetup/interface/CaloGeometryLoader.icc"
21 const HepGeom::Transform3D& tr ,
24 std::vector<CCGFloat> pv ;
25 pv.reserve( vv.size() ) ;
26 for(
unsigned int i ( 0 ) ;
i != vv.size() ; ++
i )
28 const CCGFloat factor ( 1==
i || 2==
i || 6==
i || 10==
i ? 1 :
31 pv.push_back( factor*vv[
i] ) ;
34 std::vector<GlobalPoint> corners (8);
46 0.25*( corners[0].
y() +
50 0.25*( corners[0].
z() +
59 0.25*( corners[4].
y() +
63 0.25*( corners[4].
z() +
68 geom->
newCell( front, back, corners[0],
88 const std::vector<double>& fvec = valnPhi.doubles();
91 assert(fvec.size() == 1);
101 const std::vector<double>& fmvec = valnEta.doubles();
104 assert(fmvec.size() == 1);
116 const std::vector<double>& ebvec = valEtaB.doubles();
117 assert(ebvec.size() > 0);
118 std::vector<int> EtaBaskets;
119 EtaBaskets.resize(ebvec.size());
120 for (
unsigned i = 0;
i<ebvec.size(); ++
i)
121 EtaBaskets[
i] = (
int) ebvec[
i];
132 const std::vector<double> & pvec = valPhi.doubles();
133 assert(pvec.size() > 0);
void setNumXtalsEtaDirection(const int &nnxtalEta)
bool nextSibling()
set the current node to the next sibling ...
void setBasketSizeInPhi(const int &PhiBaskets)
std::vector< double > ParmVec
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
void setEtaBaskets(const std::vector< int > &EtaBaskets)
void setNumXtalsPhiDirection(const int &nnxtalPhi)
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)
void fillNamedParams(DDFilteredView fv, T *geom)
DDsvalues_type mergedSpecifics() const
void fillGeom(T *geom, const ParmVec &pv, const HepGeom::Transform3D &tr, const DetId &id)
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)
static const double k_ScaleFromDDDtoGeant
static void createCorners(const std::vector< CCGFloat > &pv, const Tr3D &tr, std::vector< GlobalPoint > &co)
bool firstChild()
set the current node to the first child ...
CaloGeometryLoader< EcalBarrelGeometry > EcalBGL