13 const HepGeom::Transform3D& tr,
21 #include "Geometry/CaloEventSetup/interface/CaloGeometryLoader.icc"
29 const HepGeom::Transform3D& tr,
31 const double&
scale) {
32 std::vector<CCGFloat>
pv;
33 pv.reserve(vv.size());
34 for (
unsigned int i(0);
i != vv.size(); ++
i) {
40 std::vector<GlobalPoint> corners(8);
46 const GlobalPoint front(0.25 * (corners[0].
x() + corners[1].
x() + corners[2].
x() + corners[3].
x()),
47 0.25 * (corners[0].
y() + corners[1].
y() + corners[2].
y() + corners[3].
y()),
48 0.25 * (corners[0].
z() + corners[1].
z() + corners[2].
z() + corners[3].
z()));
50 const GlobalPoint back(0.25 * (corners[4].
x() + corners[5].
x() + corners[6].
x() + corners[7].
x()),
51 0.25 * (corners[4].
y() + corners[5].
y() + corners[6].
y() + corners[7].
y()),
52 0.25 * (corners[4].
z() + corners[5].
z() + corners[6].
z() + corners[7].
z()));
54 geom->newCell(front, back, corners[0], parmPtr,
id);
68 const std::vector<double>& fvec = valnPhi.doubles();
72 geom->setNumXtalsPhiDirection((
int)fvec[0]);
78 const std::vector<double>& fmvec = valnEta.doubles();
83 geom->setNumXtalsEtaDirection((
int)fmvec[0]);
91 const std::vector<double>& ebvec = valEtaB.doubles();
93 std::vector<int> EtaBaskets;
94 EtaBaskets.resize(ebvec.size());
95 for (
unsigned i = 0;
i < ebvec.size(); ++
i)
96 EtaBaskets[
i] = (
int)ebvec[
i];
97 geom->setEtaBaskets(EtaBaskets);
105 const std::vector<double>& pvec = valPhi.doubles();
107 geom->setBasketSizeInPhi((
int)pvec[0]);
123 std::vector<double> tempD = fv.
get<std::vector<double> >(specName,
"nxtalEta");
124 assert(tempD.size() == 1);
125 geom->setNumXtalsEtaDirection((
int)tempD[0]);
128 tempD = fv.
get<std::vector<double> >(specName,
"nxtalPhi");
129 assert(tempD.size() == 1);
130 geom->setNumXtalsPhiDirection((
int)tempD[0]);
133 tempD = fv.
get<std::vector<double> >(specName,
"EtaBaskets");
138 tempD = fv.
get<std::vector<double> >(specName,
"PhiBaskets");
140 geom->setBasketSizeInPhi((
int)tempD[0]);