70 : srcTrkTag_(iConfig.getParameter<edm::
InputTag>(
"srcTrk")),
71 srcVtxTag_(iConfig.getParameter<edm::
InputTag>(
"srcVtx")) {
77 produces<std::vector<VertexConstraint> >();
78 produces<TrackVtxConstraintAssociationCollection>();
100 std::unique_ptr<std::vector<VertexConstraint> > pairs(
new std::vector<VertexConstraint>);
101 std::unique_ptr<TrackVtxConstraintAssociationCollection>
output(
108 if (!theVertexHandle->empty()) {
110 for (reco::TrackCollection::const_iterator
i = theTCollection->begin();
i != theTCollection->end();
i++) {
118 pairs->push_back(tmp);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
double y() const
y coordinate
~VertexConstraintProducer() override=default
Global3DPoint GlobalPoint
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
void produce(edm::StreamID streamid, edm::Event &, const edm::EventSetup &) const override
edm::AssociationMap< edm::OneToOne< reco::TrackCollection, std::vector< VertexConstraint > > > TrackVtxConstraintAssociationCollection
double z() const
z coordinate
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
RefProd< PROD > getRefBeforePut()
double x() const
x coordinate
edm::EDGetTokenT< reco::TrackCollection > trkToken_
std::pair< GlobalPoint, GlobalError > VertexConstraint
const edm::InputTag srcVtxTag_
const edm::InputTag srcTrkTag_
VertexConstraintProducer(const edm::ParameterSet &)