16 for (
size_t i = 0;
i < subdetectors.size(); ++
i)
21 pSimHitCollections.
getParameter<std::vector<std::string> >(subdetectors[i])
33 std::vector<const CrossingFrame<PSimHit> *> cfPSimHitProductPointers;
41 for (std::size_t
i = 0;
i < pSimHitCollections->second.size(); ++
i)
43 event.getByLabel(
mixLabel_, pSimHitCollections->second[
i], cfPSimHits);
44 cfPSimHitProductPointers.push_back(cfPSimHits.
product());
48 if (cfPSimHitProductPointers.empty())
return;
55 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.