8 : events_v0{0}, total_v0{0}, total_lambda{0}, total_kshort{0} {
9 LambdaCollectionToken_ =
10 consumes<reco::VertexCompositeCandidateCollection>(ps.getParameter<
edm::InputTag>(
"LambdaTag"));
11 KShortCollectionToken_ =
12 consumes<reco::VertexCompositeCandidateCollection>(ps.getParameter<
edm::InputTag>(
"KShortTag"));
14 produces<pat::CompositeCandidateCollection>(
"Kshort");
15 produces<pat::CompositeCandidateCollection>(
"Lambda");
31 for (reco::VertexCompositeCandidateCollection::const_iterator ik = kcandidates->begin(); ik != kcandidates->end();
38 Enhanced_kShortCandidates->emplace_back(
std::move(kc));
42 for (reco::VertexCompositeCandidateCollection::const_iterator il = lcandidates->begin(); il != lcandidates->end();
49 Enhanced_lambdaCandidates->emplace_back(
std::move(lc));
59 if (exits_k || exits_l)
62 event.put(
std::move(Enhanced_kShortCandidates),
"Kshort");
63 event.put(
std::move(Enhanced_lambdaCandidates),
"Lambda");
67 edm::LogVerbatim(
"OniaAddV0TracksSummary") <<
"############################\n"
68 "OniaAddV0Tracks producer report \n"
69 "############################\n"
70 "Total events with v0 : "
76 "Total number of lambda : "
79 "Total number of kshort : "
82 "############################";
Analysis-level particle class.
Log< level::Info, true > LogVerbatim
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > KShortCollectionToken_
#define DEFINE_FWK_MODULE(type)
std::atomic< int > total_lambda
std::atomic< int > events_v0
void produce(edm::StreamID, edm::Event &event, const edm::EventSetup &esetup) const override
std::vector< CompositeCandidate > CompositeCandidateCollection
std::atomic< int > total_v0
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > LambdaCollectionToken_
OniaAddV0TracksProducer(const edm::ParameterSet &ps)
std::atomic< int > total_kshort