48 produces<edm::ValueMap<bool>>(
"isFromLostTrack");
94 unsigned int Nit = srcIsoTracks->size();
95 std::vector<bool> v_isFromLostTrack(Nit,
false);
97 for (
unsigned int iit=0; iit<Nit; iit++){
99 auto isotrack = srcIsoTracks->ptrAt(iit);
109 filler.
insert(srcIsoTracks,v_isFromLostTrack.begin(),v_isFromLostTrack.end());
111 iEvent.
put(
std::move(vm_isFromLostTrack),
"isFromLostTrack");
121 desc.
add<
edm::InputTag>(
"srcIsoTracks")->setComment(
"isolated track input collection");
122 desc.
add<
edm::InputTag>(
"packedPFCandidates")->setComment(
"packed PF Candidates collection ");
123 desc.
add<
edm::InputTag>(
"lostTracks")->setComment(
"lost tracks collection");
126 modname=
"isFromLostTrack map producer";
127 descriptions.
add(modname,desc);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
bool isNonnull() const
Checks for non-null.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< pat::PackedCandidate > PackedCandidateCollection
void insert(const H &h, I begin, I end)
ProductID id() const
Accessor for product ID.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
~IsFromLostTrackMapProducer() override
edm::EDGetTokenT< pat::PackedCandidateCollection > lt_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< pat::PackedCandidateCollection > pc_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< edm::View< pat::IsolatedTrack > > srcIsoTracks_
IsFromLostTrackMapProducer(const edm::ParameterSet &iConfig)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)