Definition at line 38 of file ShallowSimhitClustersProducer.cc.
41 int size = clustermap.size();
42 auto hits = std::make_unique<std::vector<unsigned>>(
size, 0);
43 auto strip = std::make_unique<std::vector<float>>(
size, -100);
44 auto localtheta = std::make_unique<std::vector<float>>(
size, -100);
45 auto localphi = std::make_unique<std::vector<float>>(
size, -100);
46 auto localx = std::make_unique<std::vector<float>>(
size, -100);
47 auto localy = std::make_unique<std::vector<float>>(
size, -100);
48 auto localz = std::make_unique<std::vector<float>>(
size, -100);
49 auto momentum = std::make_unique<std::vector<float>>(
size, 0);
50 auto energyloss = std::make_unique<std::vector<float>>(
size, -1);
51 auto time = std::make_unique<std::vector<float>>(
size, -1);
52 auto particle = std::make_unique<std::vector<int>>(
size, -500);
53 auto process = std::make_unique<std::vector<unsigned short>>(
size, 0);
65 const uint32_t
id =
hit.detUnitId();
66 const StripGeomDetUnit* theStripDet = dynamic_cast<const StripGeomDetUnit*>(theTrackerGeometry->idToDet(
id));
72 shallow::CLUSTERMAP::const_iterator cluster =
match_cluster(
id, driftedstrip_, clustermap, *
clusters);
73 if (cluster != clustermap.end()) {
74 unsigned i = cluster->second;
76 if (
hits->at(
i) == 1) {
78 localtheta->at(
i) =
hit.thetaAtEntry();
79 localphi->at(
i) =
hit.phiAtEntry();
80 localx->at(
i) =
hit.localPosition().
x();
81 localy->at(
i) =
hit.localPosition().
y();
82 localz->at(
i) =
hit.localPosition().
z();
83 momentum->at(
i) =
hit.pabs();
84 energyloss->at(
i) =
hit.energyLoss();
86 particle->at(
i) =
hit.particleType();
References bsc_activity_cfg::clusters, clusters_token_, shallow::drift(), geomToken_, edm::EventSetup::getHandle(), hfClusterShapes_cfi::hits, mps_fire::i, iEvent, laToken_, volumeBasedMagneticField_160812_cfi::magfield, magFieldToken_, shallow::make_cluster_map(), match_cluster(), eostools::move(), Prefix, LaserDQM_cfg::process, HLTBitAnalyser_cfi::simhits, simhits_tokens_, findQualityFiles::size, StripGeomDetUnit::specificTopology(), digitizers_cfi::strip, StripTopology::strip(), ntuplemaker::time, hit::x, hit::y, and hit::z.