#include <SimpleVertexTree.h>
Public Member Functions | |
void | fill (const TransientVertex &recv, const TrackingVertex *simv=nullptr, reco::RecoToSimCollection *recSimColl=nullptr, const float &time=0.) |
void | fill (const TransientVertex &recv, const TrackingVertex *simv=nullptr, const float &time=0.) |
void | fill (const TransientVertex &recv, const float &time=0.) |
void | fill (const TrackingVertex *simv) |
void | fill () |
SimpleVertexTree (const char *fitterName="VertexFitter", const MagneticField *magField=nullptr) | |
virtual | ~SimpleVertexTree () |
Private Member Functions | |
void | defineTrackBranch (const TString &prefix, const TString &type, const float *(VertexFitterResult::*pfunc)(const int) const, const TString &index) |
Private Attributes | |
float | chiProb |
float | chiTot |
int | maxTrack |
float | ndf |
int | numberOfVertices |
TString * | parameterNames [5] |
float | recErr [3] |
float | recPos [3] |
VertexFitterResult * | result |
float | simPos [3] |
TString | theFitterName |
bool | trackTest |
TTree * | vertexTree |
Definition at line 41 of file SimpleVertexTree.h.
SimpleVertexTree::SimpleVertexTree | ( | const char * | fitterName = "VertexFitter" , |
const MagneticField * | magField = nullptr |
||
) |
The constructor
fitterName | The name of the TTree, and of the associated histograms. |
Definition at line 10 of file SimpleVertexTree.cc.
References VertexFitterResult::chi2Information(), defineTrackBranch(), pdwgDoubleElectron_cfi::filterName, maxTrack, numberOfVertices, VertexFitterResult::numberRecTracks(), VertexFitterResult::numberSimTracks(), parameterNames, VertexFitterResult::recErrors(), VertexFitterResult::recParameters(), VertexFitterResult::recTrack_simIndex(), VertexFitterResult::recTrackWeight(), VertexFitterResult::recVertexErr(), VertexFitterResult::recVertexPos(), VertexFitterResult::refErrors(), VertexFitterResult::refParameters(), result, VertexFitterResult::simParameters(), VertexFitterResult::simTrack_recIndex(), VertexFitterResult::simVertexPos(), VertexFitterResult::time(), VertexFitterResult::trackInformation(), VertexFitterResult::vertexPresent(), and vertexTree.
|
virtual |
Definition at line 63 of file SimpleVertexTree.cc.
References chiProb, gather_cfg::cout, numberOfVertices, theFitterName, and vertexTree.
|
private |
Definition at line 51 of file SimpleVertexTree.cc.
References electrons_cff::branchName, mps_fire::i, parameterNames, hcallasereventfilter2012_cfi::prefix, result, and vertexTree.
Referenced by SimpleVertexTree().
void SimpleVertexTree::fill | ( | const TransientVertex & | recv, |
const TrackingVertex * | simv = nullptr , |
||
reco::RecoToSimCollection * | recSimColl = nullptr , |
||
const float & | time = 0. |
||
) |
Entry for a RecVertex. If the vertex was not associated to a TkSimVertex, an empty pointer can be given (would be identical to the next method). Timing information for the fit can also be provided.
Definition at line 124 of file SimpleVertexTree.cc.
References VertexFitterResult::fill(), fill(), result, and protons_cff::time.
void SimpleVertexTree::fill | ( | const TransientVertex & | recv, |
const TrackingVertex * | simv = nullptr , |
||
const float & | time = 0. |
||
) |
void SimpleVertexTree::fill | ( | const TransientVertex & | recv, |
const float & | time = 0. |
||
) |
Entry for a RecVertex, without associated vertex. Timing information for the fit can also be provided.
Definition at line 132 of file SimpleVertexTree.cc.
References VertexFitterResult::fill(), fill(), result, and protons_cff::time.
void SimpleVertexTree::fill | ( | const TrackingVertex * | simv | ) |
Entry for a TkSimVertex, without RecVertex.
Definition at line 137 of file SimpleVertexTree.cc.
References VertexFitterResult::fill(), fill(), and result.
void SimpleVertexTree::fill | ( | void | ) |
To be used if one wants to record "Failed Fits", e.g. to synchronise two Trees
Definition at line 157 of file SimpleVertexTree.cc.
References numberOfVertices, VertexFitterResult::reset(), result, and vertexTree.
Referenced by fill().
|
private |
Definition at line 97 of file SimpleVertexTree.h.
Referenced by ~SimpleVertexTree().
|
private |
Definition at line 97 of file SimpleVertexTree.h.
|
private |
Definition at line 104 of file SimpleVertexTree.h.
Referenced by SimpleVertexTree().
|
private |
Definition at line 97 of file SimpleVertexTree.h.
|
private |
Definition at line 98 of file SimpleVertexTree.h.
Referenced by fill(), SimpleVertexTree(), and ~SimpleVertexTree().
|
private |
Definition at line 105 of file SimpleVertexTree.h.
Referenced by defineTrackBranch(), and SimpleVertexTree().
|
private |
Definition at line 96 of file SimpleVertexTree.h.
|
private |
Definition at line 95 of file SimpleVertexTree.h.
|
private |
Definition at line 100 of file SimpleVertexTree.h.
Referenced by defineTrackBranch(), fill(), and SimpleVertexTree().
|
private |
Definition at line 94 of file SimpleVertexTree.h.
|
private |
Definition at line 101 of file SimpleVertexTree.h.
Referenced by ~SimpleVertexTree().
|
private |
Definition at line 103 of file SimpleVertexTree.h.
|
private |
Definition at line 99 of file SimpleVertexTree.h.
Referenced by defineTrackBranch(), fill(), SimpleVertexTree(), and ~SimpleVertexTree().