File indexing completed on 2024-04-06 12:18:23
0001 #ifndef RECOVTX_H
0002 #define RECOVTX_H
0003
0004 #include <vector>
0005
0006 #include <TChain.h>
0007
0008 #include "DataFormats/VertexReco/interface/Vertex.h"
0009 #include "DataFormats/VertexReco/interface/VertexFwd.h"
0010 #include "FWCore/Framework/interface/Event.h"
0011 #include "FWCore/Framework/interface/EventSetup.h"
0012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0013
0014
0015
0016
0017
0018
0019 class RECOVertex {
0020 public:
0021 RECOVertex();
0022 ~RECOVertex();
0023
0024 void setup(const edm::ParameterSet &pSet, TTree *tree, std::string vertexType);
0025 void clear(void);
0026
0027
0028 void analyze(edm::Handle<reco::VertexCollection> recoVertexs, TTree *tree);
0029
0030 private:
0031
0032 int NVrtx;
0033 float *VertexCand_x, *VertexCand_y, *VertexCand_z;
0034 int *VertexCand_tracks;
0035 float *VertexCand_chi2;
0036 float *VertexCand_ndof;
0037
0038
0039 bool _Debug;
0040 };
0041
0042 #endif