37 #include "CLHEP/Geometry/Point3D.h"
38 #include "CLHEP/Geometry/Vector3D.h"
39 #include "CLHEP/Units/GlobalSystemOfUnits.h"
40 #include "CLHEP/Units/GlobalPhysicalConstants.h"
84 geometrySource_ =
cfg.getUntrackedParameter<std::vector<std::string> >(
"geometrySource");
188 std::vector<float> hitVtxX = infoLayer->
hitvtxX();
189 std::vector<float> hitVtxY = infoLayer->
hitvtxY();
190 std::vector<float> hitVtxZ = infoLayer->
hitvtxZ();
191 std::vector<unsigned int> hitDet = infoLayer->
hitDets();
192 std::vector<unsigned int> hitIdx = infoLayer->
hitIndex();
195 std::vector<float> edepLayerEE = infoLayer->
eehgcEdep();
196 std::vector<float> edepLayerHE = infoLayer->
hefhgcEdep();
197 std::vector<float> edepLayerHB = infoLayer->
hebhgcEdep();
200 for (
i = 0;
i < edepLayerEE.size();
i++) {
204 for (
i = 0;
i < edepLayerHE.size();
i++) {
208 for (
i = 0;
i < edepLayerHB.size();
i++) {
218 for (
unsigned int i = 0;
i < hitVtxX.size();
i++) {
219 hitVtxX.at(
i) =
mmtocm * hitVtxX.at(
i);
220 hitVtxY.at(
i) =
mmtocm * hitVtxY.at(
i);
221 hitVtxZ.at(
i) =
mmtocm * hitVtxZ.at(
i);
227 std::pair<float, float>
xy;
229 int subdet, wafer, celltype, cell;
239 xy =
hgcGeometry_[
dtype]->locateCell(layer,
id.waferU(),
id.waferV(),
id.cellU(),
id.cellV(),
true,
true);
270 }
else if (
dtype == 1) {