31 src_(consumes<std::vector<
reco::
Vertex> >(iConfig.getParameter<edm::
InputTag>(
"src"))),
32 score_(mayConsume<edm::ValueMap<float>>(iConfig.existsAs<edm::
InputTag>(
"score")?iConfig.getParameter<edm::
InputTag>(
"score"):edm::
InputTag())),
33 rekeyScores_(iConfig.existsAs<edm::
InputTag>(
"score"))
35 produces<std::vector<reco::Vertex> >();
44 std::auto_ptr<std::vector<reco::Vertex> > outPtr(
new std::vector<reco::Vertex>());
46 outPtr->reserve(vertices->size());
47 for (
unsigned int i = 0,
n = vertices->size();
i <
n; ++
i) {
51 for(
size_t j=0;
j<3;
j++){
52 for(
size_t k=
j;
k<3;
k++){
53 co(
j,
k) = MiniFloatConverter::reduceMantissaToNbits<10>( co(
j,
k) );
60 auto oh = iEvent.
put(outPtr);
66 for(;idIt!=scores->end();idIt++) {
67 if(idIt.
id() == vertices.
id())
break;
72 vertexScoreFiller.
fill();
73 iEvent.
put( vertexScoreOutput );
edm::EDGetTokenT< edm::ValueMap< float > > score_
PATVertexSlimmer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
const Point & position() const
position
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double chi2() const
chi-squares
container::const_iterator begin() const
container::const_iterator end() const
edm::EDGetTokenT< std::vector< reco::Vertex > > src_