CMS 3D CMS Logo

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 58 of file Primary4DVertexValidation.cc.

Constructor & Destructor Documentation

◆ simPrimaryVertex()

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

Definition at line 59 of file Primary4DVertexValidation.cc.

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

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

Member Function Documentation

◆ addTrack()

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

Definition at line 99 of file Primary4DVertexValidation.cc.

References sumwnt, sumwos, wnt, and wos.

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

Member Data Documentation

◆ average_match_quality

float Primary4DVertexValidation::simPrimaryVertex::average_match_quality

Definition at line 83 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getSimPVs().

◆ closest_vertex_distance_z

double Primary4DVertexValidation::simPrimaryVertex::closest_vertex_distance_z

Definition at line 80 of file Primary4DVertexValidation.cc.

◆ eventId

EncodedEventId Primary4DVertexValidation::simPrimaryVertex::eventId

Definition at line 84 of file Primary4DVertexValidation.cc.

Referenced by ntupleDataFormat.Event::eventIdStr().

◆ matchQuality

unsigned int Primary4DVertexValidation::simPrimaryVertex::matchQuality = 0

Definition at line 97 of file Primary4DVertexValidation.cc.

◆ nGenTrk

int Primary4DVertexValidation::simPrimaryVertex::nGenTrk

Definition at line 81 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getSimPVs().

◆ num_matched_reco_tracks

int Primary4DVertexValidation::simPrimaryVertex::num_matched_reco_tracks

Definition at line 82 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getSimPVs().

◆ nwntmatch

unsigned int Primary4DVertexValidation::simPrimaryVertex::nwntmatch = 0

Definition at line 89 of file Primary4DVertexValidation.cc.

◆ nwosmatch

unsigned int Primary4DVertexValidation::simPrimaryVertex::nwosmatch = 0

Definition at line 88 of file Primary4DVertexValidation.cc.

◆ OriginalIndex

int Primary4DVertexValidation::simPrimaryVertex::OriginalIndex = -1

Definition at line 86 of file Primary4DVertexValidation.cc.

◆ p4

LorentzVector Primary4DVertexValidation::simPrimaryVertex::p4

◆ ptot

HepMC::FourVector Primary4DVertexValidation::simPrimaryVertex::ptot

◆ ptsq

double Primary4DVertexValidation::simPrimaryVertex::ptsq

◆ r

double Primary4DVertexValidation::simPrimaryVertex::r

Definition at line 75 of file Primary4DVertexValidation.cc.

Referenced by simPrimaryVertex().

◆ rec

unsigned int Primary4DVertexValidation::simPrimaryVertex::rec = NOT_MATCHED

Definition at line 96 of file Primary4DVertexValidation.cc.

◆ sim_vertex

TrackingVertexRef Primary4DVertexValidation::simPrimaryVertex::sim_vertex

Definition at line 85 of file Primary4DVertexValidation.cc.

◆ sumwnt

double Primary4DVertexValidation::simPrimaryVertex::sumwnt = 0

Definition at line 95 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ sumwos

double Primary4DVertexValidation::simPrimaryVertex::sumwos = 0

Definition at line 94 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ t

double Primary4DVertexValidation::simPrimaryVertex::t

Definition at line 75 of file Primary4DVertexValidation.cc.

◆ wnt

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

Definition at line 92 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ wos

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

Definition at line 93 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ wos_dominated_recv

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

Definition at line 90 of file Primary4DVertexValidation.cc.

◆ x

double Primary4DVertexValidation::simPrimaryVertex::x

◆ y

double Primary4DVertexValidation::simPrimaryVertex::y

◆ z

double Primary4DVertexValidation::simPrimaryVertex::z