CMS 3D CMS Logo

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

#include <VertexFitterResult.h>

Public Types

typedef std::vector
< reco::TransientTrack
TTrackCont
 

Public Member Functions

const float * chi2Information () const
 
void fill (const TransientVertex &recv, const TrackingVertex *simv=0, reco::RecoToSimCollection *recSimColl=0, const float &time=0)
 
void fill (const TransientVertex &recVertex, const TTrackCont &recTrackV, const TrackingVertex *simv=0, reco::RecoToSimCollection *recSimColl=0, const float &time=0)
 
const int * numberRecTracks ()
 
const int * numberSimTracks ()
 
const float * recErrors (const int i) const
 
const float * recParameters (const int i) const
 
const int * recTrack_simIndex ()
 
const float * recTrackWeight ()
 
const float * recVertexErr () const
 
const float * recVertexPos () const
 
const float * refErrors (const int i) const
 
const float * refParameters (const int i) const
 
void reset ()
 
const float * simParameters (const int i) const
 
const int * simTrack_recIndex ()
 
const float * simVertexPos () const
 
const float * time () const
 
const int * trackInformation () const
 
 VertexFitterResult (const int maxTracks=100, const MagneticField *=0)
 
const int * vertexPresent () const
 
 ~VertexFitterResult ()
 

Private Member Functions

void fillErrors (const PerigeeTrajectoryError &pte, float *errors[5], int trackNumber)
 
void fillParameters (const reco::TrackBase::ParameterVector &perigee, float *params[5], int trackNumber)
 
void fillParameters (const PerigeeTrajectoryParameters &ptp, float *params[5], int trackNumber)
 

Private Attributes

float chi [3]
 
float fitTime
 
int numberOfRecTracks
 
int numberOfSimTracks
 
float recErr [3]
 
float * recErrs [5]
 
int * recIndex
 
float * recPars [5]
 
float recPos [3]
 
float * refErrs [5]
 
float * refPars [5]
 
int * simIndex
 
float * simPars [5]
 
float simPos [3]
 
const MagneticFieldtheMagField
 
int theMaxTracks
 
int tracks [3]
 
float * trackWeight
 
int vertex
 

Detailed Description

Very basic class containing only the positions of the simulated and reconstructed vertices, total chi**2, chi**2 probability and number of degrees of freedom. The only thing to be done is to call the method fill for each vertex.

Definition at line 25 of file VertexFitterResult.h.

Member Typedef Documentation

Definition at line 29 of file VertexFitterResult.h.

Constructor & Destructor Documentation

VertexFitterResult::VertexFitterResult ( const int  maxTracks = 100,
const MagneticField magField = 0 
)

Definition at line 9 of file VertexFitterResult.cc.

VertexFitterResult::~VertexFitterResult ( )

Definition at line 38 of file VertexFitterResult.cc.

Member Function Documentation

const float* VertexFitterResult::chi2Information ( ) const
inline

Definition at line 47 of file VertexFitterResult.h.

References chi.

47 {return chi;}
void VertexFitterResult::fill ( const TransientVertex recv,
const TrackingVertex simv = 0,
reco::RecoToSimCollection recSimColl = 0,
const float &  time = 0 
)

Definition at line 55 of file VertexFitterResult.cc.

void VertexFitterResult::fill ( const TransientVertex recVertex,
const TTrackCont recTrackV,
const TrackingVertex simv = 0,
reco::RecoToSimCollection recSimColl = 0,
const float &  time = 0 
)

Definition at line 64 of file VertexFitterResult.cc.

void VertexFitterResult::fillErrors ( const PerigeeTrajectoryError pte,
float *  errors[5],
int  trackNumber 
)
private

Definition at line 205 of file VertexFitterResult.cc.

void VertexFitterResult::fillParameters ( const reco::TrackBase::ParameterVector perigee,
float *  params[5],
int  trackNumber 
)
private

Definition at line 184 of file VertexFitterResult.cc.

void VertexFitterResult::fillParameters ( const PerigeeTrajectoryParameters ptp,
float *  params[5],
int  trackNumber 
)
private

Definition at line 194 of file VertexFitterResult.cc.

const int* VertexFitterResult::numberRecTracks ( )
inline

Definition at line 52 of file VertexFitterResult.h.

References numberOfRecTracks.

const int* VertexFitterResult::numberSimTracks ( )
inline

Definition at line 51 of file VertexFitterResult.h.

References numberOfSimTracks.

const float* VertexFitterResult::recErrors ( const int  i) const
inline

Definition at line 73 of file VertexFitterResult.h.

References i, and recErrs.

74  {
75  if ( i<0 || i>=5 ) return 0;
76  return recErrs[i];
77  }
int i
Definition: DBlmapReader.cc:9
const float* VertexFitterResult::recParameters ( const int  i) const
inline

Definition at line 58 of file VertexFitterResult.h.

References i, and recPars.

59  {
60  if ( i<0 || i>=5 ) return 0;
61  return recPars[i];
62  }
int i
Definition: DBlmapReader.cc:9
const int* VertexFitterResult::recTrack_simIndex ( )
inline

Definition at line 56 of file VertexFitterResult.h.

References simIndex.

56 {return simIndex;}
const float* VertexFitterResult::recTrackWeight ( )
inline

Definition at line 57 of file VertexFitterResult.h.

References trackWeight.

57 {return trackWeight;}
const float* VertexFitterResult::recVertexErr ( ) const
inline

Definition at line 45 of file VertexFitterResult.h.

References recErr.

45 {return recErr;}
const float* VertexFitterResult::recVertexPos ( ) const
inline

Definition at line 44 of file VertexFitterResult.h.

References recPos.

44 {return recPos;}
const float* VertexFitterResult::refErrors ( const int  i) const
inline

Definition at line 78 of file VertexFitterResult.h.

References i, and refErrs.

79  {
80  if ( i<0 || i>=5 ) return 0;
81  return refErrs[i];
82  }
int i
Definition: DBlmapReader.cc:9
const float* VertexFitterResult::refParameters ( const int  i) const
inline

Definition at line 63 of file VertexFitterResult.h.

References i, and refPars.

64  {
65  if ( i<0 || i>=5 ) return 0;
66  return refPars[i];
67  }
int i
Definition: DBlmapReader.cc:9
void VertexFitterResult::reset ( void  )

Definition at line 215 of file VertexFitterResult.cc.

const float* VertexFitterResult::simParameters ( const int  i) const
inline

Definition at line 68 of file VertexFitterResult.h.

References i, and simPars.

69  {
70  if ( i<0 || i>=5 ) return 0;
71  return simPars[i];
72  }
int i
Definition: DBlmapReader.cc:9
const int* VertexFitterResult::simTrack_recIndex ( )
inline

Definition at line 54 of file VertexFitterResult.h.

References recIndex.

54 {return recIndex;}
const float* VertexFitterResult::simVertexPos ( ) const
inline

Definition at line 43 of file VertexFitterResult.h.

References simPos.

43 {return simPos;}
const float* VertexFitterResult::time ( ) const
inline

Definition at line 49 of file VertexFitterResult.h.

References fitTime.

49 {return &fitTime;}
const int* VertexFitterResult::trackInformation ( ) const
inline

Definition at line 46 of file VertexFitterResult.h.

References tracks.

46 {return tracks;}
const int* VertexFitterResult::vertexPresent ( ) const
inline

Definition at line 48 of file VertexFitterResult.h.

References vertex.

48 {return &vertex;}

Member Data Documentation

float VertexFitterResult::chi[3]
private

Definition at line 120 of file VertexFitterResult.h.

Referenced by chi2Information().

float VertexFitterResult::fitTime
private

Definition at line 123 of file VertexFitterResult.h.

Referenced by time().

int VertexFitterResult::numberOfRecTracks
private

Definition at line 131 of file VertexFitterResult.h.

Referenced by numberRecTracks().

int VertexFitterResult::numberOfSimTracks
private

Definition at line 131 of file VertexFitterResult.h.

Referenced by numberSimTracks().

float VertexFitterResult::recErr[3]
private

Definition at line 119 of file VertexFitterResult.h.

Referenced by recVertexErr().

float* VertexFitterResult::recErrs[5]
private

Definition at line 129 of file VertexFitterResult.h.

Referenced by recErrors().

int * VertexFitterResult::recIndex
private

Definition at line 133 of file VertexFitterResult.h.

Referenced by simTrack_recIndex().

float* VertexFitterResult::recPars[5]
private

Definition at line 127 of file VertexFitterResult.h.

Referenced by recParameters().

float VertexFitterResult::recPos[3]
private

Definition at line 118 of file VertexFitterResult.h.

Referenced by recVertexPos().

float* VertexFitterResult::refErrs[5]
private

Definition at line 130 of file VertexFitterResult.h.

Referenced by refErrors().

float* VertexFitterResult::refPars[5]
private

Definition at line 128 of file VertexFitterResult.h.

Referenced by refParameters().

int* VertexFitterResult::simIndex
private

Definition at line 133 of file VertexFitterResult.h.

Referenced by recTrack_simIndex().

float* VertexFitterResult::simPars[5]
private

Definition at line 126 of file VertexFitterResult.h.

Referenced by simParameters().

float VertexFitterResult::simPos[3]
private

Definition at line 117 of file VertexFitterResult.h.

Referenced by simVertexPos().

const MagneticField* VertexFitterResult::theMagField
private

Definition at line 115 of file VertexFitterResult.h.

int VertexFitterResult::theMaxTracks
private

Definition at line 125 of file VertexFitterResult.h.

int VertexFitterResult::tracks[3]
private

Definition at line 121 of file VertexFitterResult.h.

Referenced by trackInformation().

float* VertexFitterResult::trackWeight
private

Definition at line 132 of file VertexFitterResult.h.

Referenced by recTrackWeight().

int VertexFitterResult::vertex
private

Definition at line 122 of file VertexFitterResult.h.

Referenced by Tau.Tau::dxy(), and vertexPresent().