41 produces<reco::PFRecTrackCollection>();
42 produces<reco::PFDisplacedTrackerVertexCollection>();
45 consumes<reco::PFDisplacedVertexCollection>(iConfig.
getParameter<
InputTag>(
"displacedTrackerVertexColl"));
54 auto pfDisplacedTrackerVertexColl = std::make_unique<reco::PFDisplacedTrackerVertexCollection>();
55 auto pfRecTrackColl = std::make_unique<reco::PFRecTrackCollection>();
78 for (
unsigned it = 0; it < refittedTracks.size(); it++) {
95 pfRecTrackColl->push_back(pfRecTrack);
edm::EDGetTokenT< reco::TrackCollection > pfTrackContainer_
reconstructed track used as an input to particle flow
std::vector< PFDisplacedVertex > PFDisplacedVertexCollection
collection of PFDisplacedVertex objects
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::Event &, const edm::EventSetup &) override
Produce the PFRecTrack collection.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
PFDisplacedTrackerVertexProducer(const edm::ParameterSet &)
Constructor.
edm::EDGetTokenT< reco::PFDisplacedVertexCollection > pfDisplacedVertexContainer_
void beginRun(const edm::Run &, const edm::EventSetup &) override
bool getData(T &iHolder) const
void endRun(const edm::Run &, const edm::EventSetup &) override
PFTrackTransformer * pfTransformer_
PFTrackTransformer.
RefProd< PROD > getRefBeforePut()
~PFDisplacedTrackerVertexProducer() override
Destructor.
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
T getParameter(std::string const &) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
int charge() const
track electric charge
std::vector< PFRecTrack > PFRecTrackCollection
collection of PFRecTrack objects