54 for (
auto & parameterName : parameterNames){
55 if ( parameterName ==
"Debug" )
_Debug = myHltParams.
getParameter<
bool>( parameterName );
58 TString br_recoNVrt =
"recoNVrt";
59 br_recoNVrt.Append(vertexType);
60 HltTree->Branch(br_recoNVrt, &
NVrtx,
"NVrtx/I");
62 TString br_recoVrtX =
"recoVrtX";
63 br_recoVrtX.Append(vertexType);
64 HltTree->Branch(br_recoVrtX,
VertexCand_x,
"recoVrtX[NVrtx]/F");
66 TString br_recoVrtY =
"recoVrtY";
67 br_recoVrtY.Append(vertexType);
68 HltTree->Branch(br_recoVrtY,
VertexCand_y,
"recoVrtY[NVrtx]/F");
70 TString br_recoVrtZ =
"recoVrtZ";
71 br_recoVrtZ.Append(vertexType);
72 HltTree->Branch(br_recoVrtZ,
VertexCand_z,
"recoVrtZ[NVrtx]/F");
74 TString br_recoVrtNtrk =
"recoVrtNtrk";
75 br_recoVrtNtrk.Append(vertexType);
78 TString br_recoVrtChi2 =
"recoVrtChi2";
79 br_recoVrtChi2.Append(vertexType);
80 HltTree->Branch(br_recoVrtChi2,
VertexCand_chi2,
"recoVrtChi2[NVrtx]/F");
82 TString br_recoVrtNdof =
"recoVrtNdof";
83 br_recoVrtNdof.Append(vertexType);
84 HltTree->Branch(br_recoVrtNdof,
VertexCand_ndof,
"recoVrtNdof[NVrtx]/F");
98 reco::VertexCollection::const_iterator vertex_i;
104 if (
_Debug)
std::cout <<
"Found " << vertexs->size() <<
" vertices" << std::endl;
105 for (vertex_i = vertexs->begin(); vertex_i != vertexs->end(); vertex_i++){
106 if (nVertexCand>=
NVrtx)
break;
114 std::cout <<
"RECOVertex -- VX, VY VZ = " 119 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