80 produces<std::vector<VertexConstraint> >();
81 produces<TrackVtxConstraintAssociationCollection>();
103 std::unique_ptr<std::vector<VertexConstraint> > pairs(
new std::vector<VertexConstraint>);
110 if (!theVertexHandle->empty()){
112 for (reco::TrackCollection::const_iterator
i=theTCollection->begin();
i!=theTCollection->end();
i++) {
121 pairs->push_back(tmp);
122 output->insert(
reco::TrackRef(theTCollection,index),
edm::Ref<std::vector<VertexConstraint> >(rPairs,index) );
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::AssociationMap< edm::OneToOne< reco::TrackCollection, std::vector< VertexConstraint > > > TrackVtxConstraintAssociationCollection
void produce(edm::StreamID streamid, edm::Event &, const edm::EventSetup &) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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
#define DEFINE_FWK_MODULE(type)
std::pair< GlobalPoint, GlobalError > VertexConstraint
double z() const
z coordinate
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
RefProd< PROD > getRefBeforePut()
double x() const
x coordinate
edm::EDGetTokenT< reco::TrackCollection > trkToken_
const edm::InputTag srcVtxTag_
std::vector< std::vector< double > > tmp
const edm::InputTag srcTrkTag_
VertexConstraintProducer(const edm::ParameterSet &)