52 Cands_(consumes< std::vector<pat::
PackedCandidate> >(iConfig.getParameter<edm::InputTag>(
"packedCandidates"))),
54 AdditionalTracks_(consumes<
reco::
TrackCollection>(iConfig.getParameter<edm::InputTag>(
"additionalTracks")))
56 produces<reco::TrackCollection>();
57 produces<reco::VertexCollection>();
66 using namespace edm;
using namespace std;
using namespace reco;
74 std::auto_ptr< std::vector<reco::Track> > outTks(
new std::vector<reco::Track> );
75 std::vector<unsigned int> asso;
77 for(
unsigned int i=0;
i<cands->size();
i++) {
79 if(c.
charge() != 0 && c.
pt() > 0.95){
89 std::auto_ptr< std::vector<reco::Vertex> > outPv(
new std::vector<reco::Vertex> );
90 for(
unsigned int i = 0;
i < addTracks->size();
i++) {
91 outTks->push_back((*addTracks)[
i]);
94 for(
unsigned int i=0;
i<asso.size();
i++)
100 outPv->push_back(pv);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~PATTrackAndVertexUnpacker()
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< reco::TrackCollection > AdditionalTracks_
std::vector< Vertex > VertexCollection
collection of Vertex objects
virtual float pt() const
transverse momentum
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
virtual int charge() const
electric charge
std::vector< edm::InputTag > VInputTag
edm::EDGetTokenT< std::vector< pat::PackedCandidate > > Cands_
PATTrackAndVertexUnpacker(const edm::ParameterSet &iConfig)
edm::EDGetTokenT< reco::VertexCollection > PVs_
const PVAssoc fromPV() const
virtual reco::Track pseudoTrack() const
Return by value (no caching heavy function) a pseudo track made with candidate kinematics, parameterized error for eta,phi,pt and full IP covariance.