54 for ( std::vector<std::string>::iterator iParam = parameterNames.begin();
55 iParam != parameterNames.end(); iParam++ ){
59 TString br_recoNVrt =
"recoNVrt";
60 br_recoNVrt.Append(vertexType);
61 HltTree->Branch(br_recoNVrt, &
NVrtx,
"NVrtx/I");
63 TString br_recoVrtX =
"recoVrtX";
64 br_recoVrtX.Append(vertexType);
65 HltTree->Branch(br_recoVrtX,
VertexCand_x,
"recoVrtX[NVrtx]/F");
67 TString br_recoVrtY =
"recoVrtY";
68 br_recoVrtY.Append(vertexType);
69 HltTree->Branch(br_recoVrtY,
VertexCand_y,
"recoVrtY[NVrtx]/F");
71 TString br_recoVrtZ =
"recoVrtZ";
72 br_recoVrtZ.Append(vertexType);
73 HltTree->Branch(br_recoVrtZ,
VertexCand_z,
"recoVrtZ[NVrtx]/F");
75 TString br_recoVrtNtrk =
"recoVrtNtrk";
76 br_recoVrtNtrk.Append(vertexType);
79 TString br_recoVrtChi2 =
"recoVrtChi2";
80 br_recoVrtChi2.Append(vertexType);
81 HltTree->Branch(br_recoVrtChi2,
VertexCand_chi2,
"recoVrtChi2[NVrtx]/F");
83 TString br_recoVrtNdof =
"recoVrtNdof";
84 br_recoVrtNdof.Append(vertexType);
85 HltTree->Branch(br_recoVrtNdof,
VertexCand_ndof,
"recoVrtNdof[NVrtx]/F");
99 reco::VertexCollection::const_iterator vertex_i;
105 if (
_Debug)
std::cout <<
"Found " << vertexs->size() <<
" vertices" << std::endl;
106 for (vertex_i = vertexs->begin(); vertex_i != vertexs->end(); vertex_i++){
107 if (nVertexCand>=
NVrtx)
break;
115 std::cout <<
"RECOVertex -- VX, VY VZ = "
120 std::cout <<
"RECOVertex -- Ntracks, Chi2/Dof = "
T getParameter(std::string const &) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
static const size_t kMaxVrt
void setup(const edm::ParameterSet &pSet, TTree *tree, std::string vertexType)
void analyze(edm::Handle< reco::VertexCollection > recoVertexs, TTree *tree)
std::vector< std::string > getParameterNames() const
T const * product() const
tuple size
Write out results.