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
 
double pt
 
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 70 of file Primary4DVertexValidation.cc.

Constructor & Destructor Documentation

◆ simPrimaryVertex()

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

Definition at line 71 of file Primary4DVertexValidation.cc.

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

72  : x(x1),
73  y(y1),
74  z(z1),
75  t(t1),
76  pt(0),
77  ptsq(0),
79  nGenTrk(0),
82  ptot.setPx(0);
83  ptot.setPy(0);
84  ptot.setPz(0);
85  ptot.setE(0);
86  p4 = LorentzVector(0, 0, 0, 0);
87  r = sqrt(x * x + y * y);
88  };
math::XYZTLorentzVector LorentzVector
T sqrt(T t)
Definition: SSEVec.h:23

Member Function Documentation

◆ addTrack()

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

Definition at line 113 of file Primary4DVertexValidation.cc.

References sumwnt, sumwos, wnt, and wos.

113  {
114  sumwnt += twt;
115  if (wnt.find(irecv) == wnt.end()) {
116  wnt[irecv] = twt;
117  } else {
118  wnt[irecv] += twt;
119  }
120 
121  sumwos += twos;
122  if (wos.find(irecv) == wos.end()) {
123  wos[irecv] = twos;
124  } else {
125  wos[irecv] += twos;
126  }
127  }

Member Data Documentation

◆ average_match_quality

float Primary4DVertexValidation::simPrimaryVertex::average_match_quality

Definition at line 97 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getSimPVs().

◆ closest_vertex_distance_z

double Primary4DVertexValidation::simPrimaryVertex::closest_vertex_distance_z

Definition at line 94 of file Primary4DVertexValidation.cc.

◆ eventId

EncodedEventId Primary4DVertexValidation::simPrimaryVertex::eventId

Definition at line 98 of file Primary4DVertexValidation.cc.

Referenced by ntupleDataFormat.Event::eventIdStr().

◆ matchQuality

unsigned int Primary4DVertexValidation::simPrimaryVertex::matchQuality = 0

Definition at line 111 of file Primary4DVertexValidation.cc.

◆ nGenTrk

int Primary4DVertexValidation::simPrimaryVertex::nGenTrk

◆ num_matched_reco_tracks

int Primary4DVertexValidation::simPrimaryVertex::num_matched_reco_tracks

◆ nwntmatch

unsigned int Primary4DVertexValidation::simPrimaryVertex::nwntmatch = 0

Definition at line 103 of file Primary4DVertexValidation.cc.

◆ nwosmatch

unsigned int Primary4DVertexValidation::simPrimaryVertex::nwosmatch = 0

Definition at line 102 of file Primary4DVertexValidation.cc.

◆ OriginalIndex

int Primary4DVertexValidation::simPrimaryVertex::OriginalIndex = -1

Definition at line 100 of file Primary4DVertexValidation.cc.

◆ p4

LorentzVector Primary4DVertexValidation::simPrimaryVertex::p4

◆ pt

double Primary4DVertexValidation::simPrimaryVertex::pt

◆ ptot

HepMC::FourVector Primary4DVertexValidation::simPrimaryVertex::ptot

◆ ptsq

double Primary4DVertexValidation::simPrimaryVertex::ptsq

◆ r

double Primary4DVertexValidation::simPrimaryVertex::r

Definition at line 88 of file Primary4DVertexValidation.cc.

Referenced by simPrimaryVertex().

◆ rec

unsigned int Primary4DVertexValidation::simPrimaryVertex::rec = NOT_MATCHED

◆ sim_vertex

TrackingVertexRef Primary4DVertexValidation::simPrimaryVertex::sim_vertex

◆ sumwnt

double Primary4DVertexValidation::simPrimaryVertex::sumwnt = 0

Definition at line 109 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ sumwos

double Primary4DVertexValidation::simPrimaryVertex::sumwos = 0

Definition at line 108 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ t

double Primary4DVertexValidation::simPrimaryVertex::t

◆ wnt

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

Definition at line 106 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ wos

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

Definition at line 107 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ wos_dominated_recv

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

Definition at line 104 of file Primary4DVertexValidation.cc.

◆ x

double Primary4DVertexValidation::simPrimaryVertex::x

◆ y

double Primary4DVertexValidation::simPrimaryVertex::y

◆ z

double Primary4DVertexValidation::simPrimaryVertex::z