32 desc.
add<
bool>(
"produceTrackCollection",
true);
33 desc.
add<
bool>(
"produceMask",
true);
34 descriptions.
add(
"trackSelectorByRegion", desc);
56 for (
size_t i = 0;
i < mask.size();
i++) {
59 output_tracks.reserve(size);
60 for (
size_t i = 0;
i < mask.size();
i++) {
62 output_tracks.push_back(
tracks[i]);
const edm::EDPutTokenT< std::vector< bool > > outputMaskToken_
TrackSelectorByRegion(const edm::ParameterSet &conf)
#define DEFINE_FWK_MODULE(type)
std::vector< Track > TrackCollection
collection of Tracks
const edm::EDPutTokenT< reco::TrackCollection > outputTracksToken_
auto const & tracks
cannot be loose
outputMaskToken_(produceMask_?produces< std::vector< bool >>():edm::EDPutTokenT< std::vector< bool >>{})
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const bool produceCollection_
const edm::EDGetTokenT< edm::OwnVector< TrackingRegion > > inputTrkRegionToken_
bool get(ProductID const &oid, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &) const override
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< reco::TrackCollection > tracksToken_
std::vector< bool > MaskCollection
tuple size
Write out results.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)