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);
PSimHitSelector(edm::ParameterSet const &)
Constructor by pset.
std::vector< std::string > getParameterNames() const
std::vector< PSimHit > PSimHitCollection
T const * product() const
T getParameter(std::string const &) const
tuple config
parse the configuration file
PSimHitCollectionMap pSimHitCollectionMap_
virtual void select(PSimHitCollection &, edm::Event const &, edm::EventSetup const &) const
Select the psimhit add them to a PSimHitCollection.