26 : vccToken_{consumes<reco::VertexCompositeCandidateCollection>(
28 produces<std::vector<reco::Track>>();
35 std::unique_ptr<std::vector<reco::Track>> outputTracks(
new std::vector<reco::Track>());
39 for (
const auto& vcc : *vccHandle) {
40 for (
size_t i = 0;
i < vcc.numberOfDaughters(); ++
i) {
43 if (chargedDaughter) {
46 outputTracks->push_back(*trackRef);
52 edm::LogError(
"V0VertexTrackProducer") <<
"Error >> Failed to get VertexCompositeCandidateCollection";
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
bool isNonnull() const
Checks for non-null.
Log< level::Error, false > LogError
reco::TrackRef track() const override
reference to a track
#define DEFINE_FWK_MODULE(type)