51 for (
auto& parameterName : parameterNames) {
52 if (parameterName ==
"Debug")
56 TString br_recoNVrt =
"recoNVrt";
57 br_recoNVrt.Append(vertexType);
58 HltTree->Branch(br_recoNVrt, &
NVrtx,
"NVrtx/I");
60 TString br_recoVrtX =
"recoVrtX";
61 br_recoVrtX.Append(vertexType);
62 HltTree->Branch(br_recoVrtX,
VertexCand_x,
"recoVrtX[NVrtx]/F");
64 TString br_recoVrtY =
"recoVrtY";
65 br_recoVrtY.Append(vertexType);
66 HltTree->Branch(br_recoVrtY,
VertexCand_y,
"recoVrtY[NVrtx]/F");
68 TString br_recoVrtZ =
"recoVrtZ";
69 br_recoVrtZ.Append(vertexType);
70 HltTree->Branch(br_recoVrtZ,
VertexCand_z,
"recoVrtZ[NVrtx]/F");
72 TString br_recoVrtNtrk =
"recoVrtNtrk";
73 br_recoVrtNtrk.Append(vertexType);
76 TString br_recoVrtChi2 =
"recoVrtChi2";
77 br_recoVrtChi2.Append(vertexType);
78 HltTree->Branch(br_recoVrtChi2,
VertexCand_chi2,
"recoVrtChi2[NVrtx]/F");
80 TString br_recoVrtNdof =
"recoVrtNdof";
81 br_recoVrtNdof.Append(vertexType);
82 HltTree->Branch(br_recoVrtNdof,
VertexCand_ndof,
"recoVrtNdof[NVrtx]/F");
92 reco::VertexCollection::const_iterator vertex_i;
99 std::cout <<
"Found " << vertexs->size() <<
" vertices" << std::endl;
100 for (vertex_i = vertexs->begin(); vertex_i != vertexs->end(); vertex_i++) {
101 if (nVertexCand >=
NVrtx)