1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef RECOVTX_H
#define RECOVTX_H
#include <vector>
#include <TChain.h>
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
/** \class RECOVertex
*
* $Date: Dec 2009
* $Revision:
*/
class RECOVertex {
public:
RECOVertex();
~RECOVertex();
void setup(const edm::ParameterSet &pSet, TTree *tree, std::string vertexType);
void clear(void);
/** Analyze the Data */
void analyze(edm::Handle<reco::VertexCollection> recoVertexs, TTree *tree);
private:
// Tree variables
int NVrtx;
float *VertexCand_x, *VertexCand_y, *VertexCand_z;
int *VertexCand_tracks;
float *VertexCand_chi2;
float *VertexCand_ndof;
// input variables
bool _Debug;
};
#endif
|