CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
Primary4DVertexValidation::simPrimaryVertex Struct Reference

Public Member Functions

void addTrack (unsigned int irecv, double twos, double twt)
 
 simPrimaryVertex (double x1, double y1, double z1, double t1)
 

Public Attributes

float average_match_quality
 
double closest_vertex_distance_z
 
EncodedEventId eventId
 
unsigned int matchQuality = 0
 
int nGenTrk
 
int num_matched_reco_tracks
 
unsigned int nwntmatch = 0
 
unsigned int nwosmatch = 0
 
int OriginalIndex = -1
 
LorentzVector p4
 
HepMC::FourVector ptot
 
double ptsq
 
double r
 
unsigned int rec = NOT_MATCHED
 
TrackingVertexRef sim_vertex
 
double sumwnt = 0
 
double sumwos = 0
 
double t
 
std::map< unsigned int, double > wnt
 
std::map< unsigned int, double > wos
 
std::vector< unsigned int > wos_dominated_recv
 
double x
 
double y
 
double z
 

Detailed Description

Definition at line 57 of file Primary4DVertexValidation.cc.

Constructor & Destructor Documentation

Primary4DVertexValidation::simPrimaryVertex::simPrimaryVertex ( double  x1,
double  y1,
double  z1,
double  t1 
)
inline

Definition at line 58 of file Primary4DVertexValidation.cc.

References p4, ptot, r, mathSSE::sqrt(), x, and y.

59  : x(x1),
60  y(y1),
61  z(z1),
62  t(t1),
63  ptsq(0),
65  nGenTrk(0),
68  ptot.setPx(0);
69  ptot.setPy(0);
70  ptot.setPz(0);
71  ptot.setE(0);
72  p4 = LorentzVector(0, 0, 0, 0);
73  r = sqrt(x * x + y * y);
74  };
math::XYZTLorentzVector LorentzVector
T sqrt(T t)
Definition: SSEVec.h:19

Member Function Documentation

void Primary4DVertexValidation::simPrimaryVertex::addTrack ( unsigned int  irecv,
double  twos,
double  twt 
)
inline

Definition at line 98 of file Primary4DVertexValidation.cc.

References sumwnt, sumwos, wnt, and wos.

98  {
99  sumwnt += twt;
100  if (wnt.find(irecv) == wnt.end()) {
101  wnt[irecv] = twt;
102  } else {
103  wnt[irecv] += twt;
104  }
105 
106  sumwos += twos;
107  if (wos.find(irecv) == wos.end()) {
108  wos[irecv] = twos;
109  } else {
110  wos[irecv] += twos;
111  }
112  }

Member Data Documentation

float Primary4DVertexValidation::simPrimaryVertex::average_match_quality

Definition at line 82 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getSimPVs().

double Primary4DVertexValidation::simPrimaryVertex::closest_vertex_distance_z

Definition at line 79 of file Primary4DVertexValidation.cc.

EncodedEventId Primary4DVertexValidation::simPrimaryVertex::eventId
unsigned int Primary4DVertexValidation::simPrimaryVertex::matchQuality = 0

Definition at line 96 of file Primary4DVertexValidation.cc.

int Primary4DVertexValidation::simPrimaryVertex::nGenTrk

Definition at line 80 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getSimPVs().

int Primary4DVertexValidation::simPrimaryVertex::num_matched_reco_tracks

Definition at line 81 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getSimPVs().

unsigned int Primary4DVertexValidation::simPrimaryVertex::nwntmatch = 0

Definition at line 88 of file Primary4DVertexValidation.cc.

unsigned int Primary4DVertexValidation::simPrimaryVertex::nwosmatch = 0

Definition at line 87 of file Primary4DVertexValidation.cc.

int Primary4DVertexValidation::simPrimaryVertex::OriginalIndex = -1

Definition at line 85 of file Primary4DVertexValidation.cc.

LorentzVector Primary4DVertexValidation::simPrimaryVertex::p4
HepMC::FourVector Primary4DVertexValidation::simPrimaryVertex::ptot
double Primary4DVertexValidation::simPrimaryVertex::ptsq

Definition at line 78 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getSimPVs().

double Primary4DVertexValidation::simPrimaryVertex::r

Definition at line 74 of file Primary4DVertexValidation.cc.

Referenced by simPrimaryVertex().

unsigned int Primary4DVertexValidation::simPrimaryVertex::rec = NOT_MATCHED

Definition at line 95 of file Primary4DVertexValidation.cc.

TrackingVertexRef Primary4DVertexValidation::simPrimaryVertex::sim_vertex

Definition at line 84 of file Primary4DVertexValidation.cc.

double Primary4DVertexValidation::simPrimaryVertex::sumwnt = 0

Definition at line 94 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

double Primary4DVertexValidation::simPrimaryVertex::sumwos = 0

Definition at line 93 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

double Primary4DVertexValidation::simPrimaryVertex::t

Definition at line 74 of file Primary4DVertexValidation.cc.

std::map<unsigned int, double> Primary4DVertexValidation::simPrimaryVertex::wnt

Definition at line 91 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

std::map<unsigned int, double> Primary4DVertexValidation::simPrimaryVertex::wos

Definition at line 92 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

std::vector<unsigned int> Primary4DVertexValidation::simPrimaryVertex::wos_dominated_recv

Definition at line 89 of file Primary4DVertexValidation.cc.

double Primary4DVertexValidation::simPrimaryVertex::x
double Primary4DVertexValidation::simPrimaryVertex::y
double Primary4DVertexValidation::simPrimaryVertex::z