|
|
Go to the documentation of this file.
59 nVertices_ = fs->
make<TH1F>(
"nVertices",
"number of reconstructed primary vertices", 50, 0, 50);
60 nTracks_ = fs->
make<TH1F>(
"nTracks",
"number of tracks at primary vertex", 100, 0, 300);
61 x_ = fs->
make<TH1F>(
"pvX",
"primary vertex x", 100, -0.1, 0.1);
62 y_ = fs->
make<TH1F>(
"pvY",
"primary vertex y", 100, -0.1, 0.1);
63 z_ = fs->
make<TH1F>(
"pvZ",
"primary vertex z", 100, -30, 30);
64 xErr_ = fs->
make<TH1F>(
"pvErrorX",
"primary vertex x error", 100, 0, 0.005);
65 yErr_ = fs->
make<TH1F>(
"pvErrorY",
"primary vertex y error", 100, 0, 0.005);
66 zErr_ = fs->
make<TH1F>(
"pvErrorZ",
"primary vertex z error", 100, 0, 0.01);
67 xDelta_ = fs->
make<TH1F>(
"pvDeltaX",
"x shift wrt simulated vertex", 100, -0.01, 0.01);
68 yDelta_ = fs->
make<TH1F>(
"pvDeltaY",
"y shift wrt simulated vertex", 100, -0.01, 0.01);
69 zDelta_ = fs->
make<TH1F>(
"pvDeltaZ",
"z shift wrt simulated vertex", 100, -0.02, 0.02);
70 xPull_ = fs->
make<TH1F>(
"pvPullX",
"primary vertex x pull", 100, -5, 5);
71 yPull_ = fs->
make<TH1F>(
"pvPullY",
"primary vertex y pull", 100, -5, 5);
72 zPull_ = fs->
make<TH1F>(
"pvPullZ",
"primary vertex z pull", 100, -5, 5);
91 if (!pvHandle->empty()) {
108 xPull_->Fill((
pv.x() - simPV.X()) /
pv.xError());
109 yPull_->Fill((
pv.y() - simPV.Y()) /
pv.yError());
110 zPull_->Fill((
pv.z() - simPV.Z()) /
pv.zError());
PatVertexAnalyzer(const edm::ParameterSet ¶ms)
constructor and destructor
edm::EDGetTokenT< reco::GenParticleCollection > genParticlesToken_
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
edm::EDGetTokenT< reco::VertexCollection > srcToken_
~PatVertexAnalyzer() override
#define DEFINE_FWK_MODULE(type)
XYZPointD XYZPoint
point in space with cartesian internal representation
void analyze(const edm::Event &event, const edm::EventSetup &es) override
T * make(const Args &...args) const
make new ROOT object
std::vector< Vertex > VertexCollection