CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
SimpleVertexTree Class Reference

#include <SimpleVertexTree.h>

Public Member Functions

void fill (const TransientVertex &recv, const TrackingVertex *simv=0, reco::RecoToSimCollection *recSimColl=0, const float &time=0.)
 
void fill (const TransientVertex &recv, const TrackingVertex *simv=0, 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=0)
 
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]
 
VertexFitterResultresult
 
float simPos [3]
 
TString theFitterName
 
bool trackTest
 
TTree * vertexTree
 

Detailed Description

Definition at line 41 of file SimpleVertexTree.h.

Constructor & Destructor Documentation

SimpleVertexTree::SimpleVertexTree ( const char *  fitterName = "VertexFitter",
const MagneticField magField = 0 
)

The constructor

Parameters
fitterNameThe name of the TTree, and of the associated histograms.

Definition at line 10 of file SimpleVertexTree.cc.

SimpleVertexTree::~SimpleVertexTree ( )
virtual

Definition at line 70 of file SimpleVertexTree.cc.

Member Function Documentation

void SimpleVertexTree::defineTrackBranch ( const TString &  prefix,
const TString &  type,
const float *(VertexFitterResult::*)(const int) const  pfunc,
const TString &  index 
)
private

Definition at line 57 of file SimpleVertexTree.cc.

void SimpleVertexTree::fill ( const TransientVertex recv,
const TrackingVertex simv = 0,
reco::RecoToSimCollection recSimColl = 0,
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 133 of file SimpleVertexTree.cc.

void SimpleVertexTree::fill ( const TransientVertex recv,
const TrackingVertex simv = 0,
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 140 of file SimpleVertexTree.cc.

void SimpleVertexTree::fill ( const TrackingVertex simv)

Entry for a TkSimVertex, without RecVertex.

Definition at line 146 of file SimpleVertexTree.cc.

void SimpleVertexTree::fill ( void  )

To be used if one wants to record "Failed Fits", e.g. to synchronise two Trees

Definition at line 167 of file SimpleVertexTree.cc.

Member Data Documentation

float SimpleVertexTree::chiProb
private

Definition at line 99 of file SimpleVertexTree.h.

float SimpleVertexTree::chiTot
private

Definition at line 99 of file SimpleVertexTree.h.

int SimpleVertexTree::maxTrack
private

Definition at line 106 of file SimpleVertexTree.h.

float SimpleVertexTree::ndf
private

Definition at line 99 of file SimpleVertexTree.h.

int SimpleVertexTree::numberOfVertices
private

Definition at line 100 of file SimpleVertexTree.h.

TString* SimpleVertexTree::parameterNames[5]
private

Definition at line 107 of file SimpleVertexTree.h.

float SimpleVertexTree::recErr[3]
private

Definition at line 98 of file SimpleVertexTree.h.

float SimpleVertexTree::recPos[3]
private

Definition at line 97 of file SimpleVertexTree.h.

VertexFitterResult* SimpleVertexTree::result
private

Definition at line 102 of file SimpleVertexTree.h.

float SimpleVertexTree::simPos[3]
private

Definition at line 96 of file SimpleVertexTree.h.

TString SimpleVertexTree::theFitterName
private

Definition at line 103 of file SimpleVertexTree.h.

bool SimpleVertexTree::trackTest
private

Definition at line 105 of file SimpleVertexTree.h.

TTree* SimpleVertexTree::vertexTree
private

Definition at line 101 of file SimpleVertexTree.h.