28 if(!validToken)
return;
31 unsigned int index = 0;
32 const unsigned int covMatrix_dim = 3;
34 for (reco::VertexCollection::const_iterator vtx = vertexCollection->begin(); vtx != vertexCollection->end(); ++vtx, ++
index) {
39 hww.
vtxs_ndof() .push_back( vtx->ndof() );
46 std::vector<float> temp_vec;
49 for(
unsigned int i = 0;
i < covMatrix_dim;
i++ ) {
50 for(
unsigned int j = 0;
j < covMatrix_dim;
j++ ) {
51 temp_vec.push_back( vtx->covariance(
i,
j) );
void Load_vtxs_covMatrix()
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
void Load_vtxs_position()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< reco::VertexCollection > thePVCollection_
std::vector< std::vector< float > > & vtxs_covMatrix()
std::vector< float > & vtxs_zError()
VertexMaker(const edm::ParameterSet &, edm::ConsumesCollector)
void SetVars(HWW &, const edm::Event &, const edm::EventSetup &)
std::vector< float > & vtxs_ndof()
std::vector< LorentzVector > & vtxs_position()
T const * product() const
std::vector< float > & vtxs_xError()
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
std::vector< int > & vtxs_isFake()
std::vector< float > & vtxs_yError()
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > XYZTLorentzVectorF
Lorentz vector with cylindrical internal representation using pseudorapidity.
std::vector< float > & vtxs_sumpt()
math::PtEtaPhiELorentzVectorF LorentzVector