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

Constructor & Destructor Documentation

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

Definition at line 117 of file Primary4DVertexValidation.cc.

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

Member Function Documentation

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

Definition at line 166 of file Primary4DVertexValidation.cc.

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

166  {
167  sumwnt += wt;
168  if (wnt.find(iev) == wnt.end()) {
169  wnt[iev] = wt;
170  } else {
171  wnt[iev] += wt;
172  }
173 
174  sumwos += twos;
175  if (wos.find(iev) == wos.end()) {
176  wos[iev] = twos;
177  } else {
178  wos[iev] += twos;
179  }
180  }
HitContainer const *__restrict__ TkSoA const *__restrict__ Quality const *__restrict__ CAHitNtupletGeneratorKernelsGPU::HitToTuple const *__restrict__ int32_t int iev
bool Primary4DVertexValidation::recoPrimaryVertex::is_fake ( )
inline

Definition at line 153 of file Primary4DVertexValidation.cc.

References matchQuality.

Referenced by other_fake().

153 { return (matchQuality <= 0) || (matchQuality >= 99); }
bool Primary4DVertexValidation::recoPrimaryVertex::is_real ( )
inline

Definition at line 151 of file Primary4DVertexValidation.cc.

References matchQuality.

Referenced by split_from().

bool Primary4DVertexValidation::recoPrimaryVertex::is_signal ( )
inline

Definition at line 155 of file Primary4DVertexValidation.cc.

155 { return (sim == 0); }
Definition: sim.h:19
bool Primary4DVertexValidation::recoPrimaryVertex::other_fake ( )
inline
int Primary4DVertexValidation::recoPrimaryVertex::split_from ( )
inline

Member Data Documentation

double Primary4DVertexValidation::recoPrimaryVertex::closest_vertex_distance_z

Definition at line 132 of file Primary4DVertexValidation.cc.

unsigned int Primary4DVertexValidation::recoPrimaryVertex::matchQuality = 0

Definition at line 149 of file Primary4DVertexValidation.cc.

Referenced by is_fake(), and is_real().

double Primary4DVertexValidation::recoPrimaryVertex::maxwnt = 0

Definition at line 146 of file Primary4DVertexValidation.cc.

double Primary4DVertexValidation::recoPrimaryVertex::maxwos = 0

Definition at line 145 of file Primary4DVertexValidation.cc.

Referenced by split_from().

int Primary4DVertexValidation::recoPrimaryVertex::maxwosnt = 0

Definition at line 147 of file Primary4DVertexValidation.cc.

int Primary4DVertexValidation::recoPrimaryVertex::nRecoTrk

Definition at line 133 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getRecoPVs().

int Primary4DVertexValidation::recoPrimaryVertex::num_matched_sim_tracks

Definition at line 134 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getRecoPVs().

int Primary4DVertexValidation::recoPrimaryVertex::OriginalIndex = -1

Definition at line 137 of file Primary4DVertexValidation.cc.

double Primary4DVertexValidation::recoPrimaryVertex::pt
double Primary4DVertexValidation::recoPrimaryVertex::ptsq

Definition at line 131 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getRecoPVs().

double Primary4DVertexValidation::recoPrimaryVertex::r

Definition at line 128 of file Primary4DVertexValidation.cc.

Referenced by recoPrimaryVertex().

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

Definition at line 135 of file Primary4DVertexValidation.cc.

Referenced by Primary4DVertexValidation::getRecoPVs().

reco::VertexBaseRef Primary4DVertexValidation::recoPrimaryVertex::recVtxRef

Definition at line 136 of file Primary4DVertexValidation.cc.

unsigned int Primary4DVertexValidation::recoPrimaryVertex::sim = NOT_MATCHED

Definition at line 148 of file Primary4DVertexValidation.cc.

double Primary4DVertexValidation::recoPrimaryVertex::sumwnt = 0

Definition at line 144 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

double Primary4DVertexValidation::recoPrimaryVertex::sumwos = 0

Definition at line 143 of file Primary4DVertexValidation.cc.

Referenced by addTrack(), and split_from().

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

Definition at line 140 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

unsigned int Primary4DVertexValidation::recoPrimaryVertex::wntmatch

Definition at line 142 of file Primary4DVertexValidation.cc.

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

Definition at line 139 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

unsigned int Primary4DVertexValidation::recoPrimaryVertex::wosmatch

Definition at line 141 of file Primary4DVertexValidation.cc.

Referenced by split_from().

double Primary4DVertexValidation::recoPrimaryVertex::x
double Primary4DVertexValidation::recoPrimaryVertex::y
double Primary4DVertexValidation::recoPrimaryVertex::z