32 #include "CLHEP/Geometry/Point3D.h"
33 #include "CLHEP/Geometry/Vector3D.h"
34 #include "CLHEP/Units/GlobalSystemOfUnits.h"
35 #include "CLHEP/Units/GlobalPhysicalConstants.h"
54 std::vector<edm::ESGetToken<HGCalDDDConstants, IdealGeometryRecord>>
geomToken_;
79 geometrySource_ =
cfg.getUntrackedParameter<std::vector<std::string>>(
"geometrySource");
83 esConsumes<HGCalDDDConstants, IdealGeometryRecord, edm::Transition::BeginRun>(
edm::ESInputTag{
"",
name}));
169 std::vector<float> hitVtxX = infoLayer->
hitvtxX();
170 std::vector<float> hitVtxY = infoLayer->
hitvtxY();
171 std::vector<float> hitVtxZ = infoLayer->
hitvtxZ();
172 std::vector<unsigned int> hitDet = infoLayer->
hitDets();
173 std::vector<unsigned int> hitIdx = infoLayer->
hitIndex();
176 std::vector<float> edepLayerEE = infoLayer->
eehgcEdep();
177 std::vector<float> edepLayerHE = infoLayer->
hefhgcEdep();
178 std::vector<float> edepLayerHB = infoLayer->
hebhgcEdep();
181 for (
i = 0;
i < edepLayerEE.size();
i++) {
185 for (
i = 0;
i < edepLayerHE.size();
i++) {
189 for (
i = 0;
i < edepLayerHB.size();
i++) {
199 for (
unsigned int i = 0;
i < hitVtxX.size();
i++) {
200 hitVtxX.at(
i) =
mmtocm * hitVtxX.at(
i);
201 hitVtxY.at(
i) =
mmtocm * hitVtxY.at(
i);
202 hitVtxZ.at(
i) =
mmtocm * hitVtxZ.at(
i);
208 std::pair<float, float>
xy;
210 int subdet, wafer, celltype, cell;
251 }
else if (
dtype == 1) {