50 for ( std::vector<std::string>::iterator iParam = parameterNames.begin();
51 iParam != parameterNames.end(); iParam++ ){
55 HltTree->Branch(
"recoNVrt", &
NVrtx,
"NVrtx/I");
56 HltTree->Branch(
"recoVrtX",
VertexCand_x,
"recoVrtX[NVrtx]/F");
57 HltTree->Branch(
"recoVrtY",
VertexCand_y,
"recoVrtY[NVrtx]/F");
58 HltTree->Branch(
"recoVrtZ",
VertexCand_z,
"recoVrtZ[NVrtx]/F");
60 HltTree->Branch(
"recoVrtChi2",
VertexCand_chi2,
"recoVrtChi2[NVrtx]/F");
61 HltTree->Branch(
"recoVrtNdof",
VertexCand_ndof,
"recoVrtNdof[NVrtx]/F");
73 reco::VertexCollection::const_iterator vertex_i;
79 if (
_Debug)
std::cout <<
"Found " << vertexs->size() <<
" vertices" << std::endl;
80 for (vertex_i = vertexs->begin(); vertex_i != vertexs->end(); vertex_i++){
81 if (nVertexCand>=
NVrtx)
break;
94 std::cout <<
"RECOVertex -- Ntracks, Chi2/Dof = "
T getParameter(std::string const &) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
void setup(const edm::ParameterSet &pSet, TTree *tree)
static const size_t kMaxVrt
void analyze(edm::Handle< reco::VertexCollection > recoVertexs, TTree *tree)
std::vector< std::string > getParameterNames() const
T const * product() const
tuple size
Write out results.