15 for (
size_t i = 0;
i < subdetectors.size(); ++
i) {
17 subdetectors[
i], pSimHitCollections.
getParameter<std::vector<std::string>>(subdetectors[i])));
27 std::vector<const CrossingFrame<PSimHit> *> cfPSimHitProductPointers;
34 for (std::size_t
i = 0;
i < pSimHitCollections->second.size(); ++
i) {
35 event.getByLabel(
mixLabel_, pSimHitCollections->second[
i], cfPSimHits);
36 cfPSimHitProductPointers.push_back(cfPSimHits.
product());
40 if (cfPSimHitProductPointers.empty())
48 selection.push_back(*pSimHit);
T getParameter(std::string const &) const
PSimHitSelector(edm::ParameterSet const &)
Constructor by pset.
def setup(process, global_tag, zero_tesla=False)
std::vector< std::string > getParameterNames() const
std::vector< PSimHit > PSimHitCollection
T const * product() const
PSimHitCollectionMap pSimHitCollectionMap_
virtual void select(PSimHitCollection &, edm::Event const &, edm::EventSetup const &) const
Select the psimhit add them to a PSimHitCollection.