CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
Primary4DVertexValidation::recoPrimaryVertex Struct Reference

Public Member Functions

void addTrack (unsigned int iev, double twos, double wt)
 
bool is_fake ()
 
bool is_real ()
 
bool is_signal ()
 
bool other_fake ()
 
 recoPrimaryVertex (double x1, double y1, double z1)
 
int split_from ()
 

Public Attributes

double closest_vertex_distance_z
 
unsigned int matchQuality = 0
 
double maxwnt = 0
 
double maxwos = 0
 
int maxwosnt = 0
 
int nRecoTrk
 
int num_matched_sim_tracks
 
int OriginalIndex = -1
 
double pt
 
double ptsq
 
double r
 
const reco::VertexrecVtx
 
reco::VertexBaseRef recVtxRef
 
unsigned int sim = NOT_MATCHED
 
double sumwnt = 0
 
double sumwos = 0
 
std::map< unsigned int, double > wnt
 
unsigned int wntmatch
 
std::map< unsigned int, double > wos
 
unsigned int wosmatch
 
double x
 
double y
 
double z
 

Detailed Description

Definition at line 117 of file Primary4DVertexValidation.cc.

Constructor & Destructor Documentation

◆ recoPrimaryVertex()

Primary4DVertexValidation::recoPrimaryVertex::recoPrimaryVertex ( double  x1,
double  y1,
double  z1 
)
inline

Definition at line 118 of file Primary4DVertexValidation.cc.

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

119  : x(x1),
120  y(y1),
121  z(z1),
122  pt(0),
123  ptsq(0),
125  nRecoTrk(0),
127  recVtx(nullptr) {
128  r = sqrt(x * x + y * y);
129  };
T sqrt(T t)
Definition: SSEVec.h:19

Member Function Documentation

◆ addTrack()

void Primary4DVertexValidation::recoPrimaryVertex::addTrack ( unsigned int  iev,
double  twos,
double  wt 
)
inline

Definition at line 167 of file Primary4DVertexValidation.cc.

References caHitNtupletGeneratorKernels::iev, sumwnt, sumwos, wnt, and wos.

167  {
168  sumwnt += wt;
169  if (wnt.find(iev) == wnt.end()) {
170  wnt[iev] = wt;
171  } else {
172  wnt[iev] += wt;
173  }
174 
175  sumwos += twos;
176  if (wos.find(iev) == wos.end()) {
177  wos[iev] = twos;
178  } else {
179  wos[iev] += twos;
180  }
181  }
TkSoAView< TrackerTraits > HitToTuple< TrackerTraits > const *__restrict__ int32_t int32_t int iev

◆ is_fake()

bool Primary4DVertexValidation::recoPrimaryVertex::is_fake ( )
inline

Definition at line 154 of file Primary4DVertexValidation.cc.

References matchQuality.

Referenced by other_fake().

◆ is_real()

bool Primary4DVertexValidation::recoPrimaryVertex::is_real ( )
inline

Definition at line 152 of file Primary4DVertexValidation.cc.

References matchQuality.

Referenced by split_from().

◆ is_signal()

bool Primary4DVertexValidation::recoPrimaryVertex::is_signal ( )
inline

Definition at line 156 of file Primary4DVertexValidation.cc.

156 { return (sim == 0); }

◆ other_fake()

bool Primary4DVertexValidation::recoPrimaryVertex::other_fake ( )
inline

◆ split_from()

int Primary4DVertexValidation::recoPrimaryVertex::split_from ( )
inline

Member Data Documentation

◆ closest_vertex_distance_z

double Primary4DVertexValidation::recoPrimaryVertex::closest_vertex_distance_z

Definition at line 133 of file Primary4DVertexValidation.cc.

◆ matchQuality

unsigned int Primary4DVertexValidation::recoPrimaryVertex::matchQuality = 0

Definition at line 150 of file Primary4DVertexValidation.cc.

Referenced by is_fake(), and is_real().

◆ maxwnt

double Primary4DVertexValidation::recoPrimaryVertex::maxwnt = 0

Definition at line 147 of file Primary4DVertexValidation.cc.

◆ maxwos

double Primary4DVertexValidation::recoPrimaryVertex::maxwos = 0

Definition at line 146 of file Primary4DVertexValidation.cc.

Referenced by split_from().

◆ maxwosnt

int Primary4DVertexValidation::recoPrimaryVertex::maxwosnt = 0

Definition at line 148 of file Primary4DVertexValidation.cc.

◆ nRecoTrk

int Primary4DVertexValidation::recoPrimaryVertex::nRecoTrk

Definition at line 134 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getRecoPVs().

◆ num_matched_sim_tracks

int Primary4DVertexValidation::recoPrimaryVertex::num_matched_sim_tracks

Definition at line 135 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getRecoPVs().

◆ OriginalIndex

int Primary4DVertexValidation::recoPrimaryVertex::OriginalIndex = -1

Definition at line 138 of file Primary4DVertexValidation.cc.

◆ pt

double Primary4DVertexValidation::recoPrimaryVertex::pt

◆ ptsq

double Primary4DVertexValidation::recoPrimaryVertex::ptsq

Definition at line 132 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getRecoPVs().

◆ r

double Primary4DVertexValidation::recoPrimaryVertex::r

Definition at line 129 of file Primary4DVertexValidation.cc.

Referenced by recoPrimaryVertex().

◆ recVtx

const reco::Vertex* Primary4DVertexValidation::recoPrimaryVertex::recVtx

Definition at line 136 of file Primary4DVertexValidation.cc.

◆ recVtxRef

reco::VertexBaseRef Primary4DVertexValidation::recoPrimaryVertex::recVtxRef

Definition at line 137 of file Primary4DVertexValidation.cc.

◆ sim

unsigned int Primary4DVertexValidation::recoPrimaryVertex::sim = NOT_MATCHED

Definition at line 149 of file Primary4DVertexValidation.cc.

◆ sumwnt

double Primary4DVertexValidation::recoPrimaryVertex::sumwnt = 0

Definition at line 145 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ sumwos

double Primary4DVertexValidation::recoPrimaryVertex::sumwos = 0

Definition at line 144 of file Primary4DVertexValidation.cc.

Referenced by addTrack(), and split_from().

◆ wnt

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

Definition at line 141 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ wntmatch

unsigned int Primary4DVertexValidation::recoPrimaryVertex::wntmatch

Definition at line 143 of file Primary4DVertexValidation.cc.

◆ wos

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

Definition at line 140 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ wosmatch

unsigned int Primary4DVertexValidation::recoPrimaryVertex::wosmatch

Definition at line 142 of file Primary4DVertexValidation.cc.

Referenced by split_from().

◆ x

double Primary4DVertexValidation::recoPrimaryVertex::x

◆ y

double Primary4DVertexValidation::recoPrimaryVertex::y

◆ z

double Primary4DVertexValidation::recoPrimaryVertex::z