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
 
double ndof
 
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 131 of file Primary4DVertexValidation.cc.

Constructor & Destructor Documentation

◆ recoPrimaryVertex()

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

Definition at line 132 of file Primary4DVertexValidation.cc.

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

133  : x(x1),
134  y(y1),
135  z(z1),
136  pt(0),
137  ptsq(0),
139  nRecoTrk(0),
141  ndof(0.),
142  recVtx(nullptr) {
143  r = sqrt(x * x + y * y);
144  };
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 183 of file Primary4DVertexValidation.cc.

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

183  {
184  sumwnt += wt;
185  if (wnt.find(iev) == wnt.end()) {
186  wnt[iev] = wt;
187  } else {
188  wnt[iev] += wt;
189  }
190 
191  sumwos += twos;
192  if (wos.find(iev) == wos.end()) {
193  wos[iev] = twos;
194  } else {
195  wos[iev] += twos;
196  }
197  }
TkSoAView< TrackerTraits > HitToTuple< TrackerTraits > const *__restrict__ int32_t int32_t int iev

◆ is_fake()

bool Primary4DVertexValidation::recoPrimaryVertex::is_fake ( )
inline

Definition at line 170 of file Primary4DVertexValidation.cc.

References matchQuality.

Referenced by other_fake().

◆ is_real()

bool Primary4DVertexValidation::recoPrimaryVertex::is_real ( )
inline

Definition at line 168 of file Primary4DVertexValidation.cc.

References matchQuality.

Referenced by split_from().

◆ is_signal()

bool Primary4DVertexValidation::recoPrimaryVertex::is_signal ( )
inline

Definition at line 172 of file Primary4DVertexValidation.cc.

172 { 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 148 of file Primary4DVertexValidation.cc.

◆ matchQuality

unsigned int Primary4DVertexValidation::recoPrimaryVertex::matchQuality = 0

Definition at line 166 of file Primary4DVertexValidation.cc.

Referenced by is_fake(), and is_real().

◆ maxwnt

double Primary4DVertexValidation::recoPrimaryVertex::maxwnt = 0

Definition at line 163 of file Primary4DVertexValidation.cc.

◆ maxwos

double Primary4DVertexValidation::recoPrimaryVertex::maxwos = 0

Definition at line 162 of file Primary4DVertexValidation.cc.

Referenced by split_from().

◆ maxwosnt

int Primary4DVertexValidation::recoPrimaryVertex::maxwosnt = 0

Definition at line 164 of file Primary4DVertexValidation.cc.

◆ ndof

double Primary4DVertexValidation::recoPrimaryVertex::ndof

Definition at line 151 of file Primary4DVertexValidation.cc.

◆ nRecoTrk

int Primary4DVertexValidation::recoPrimaryVertex::nRecoTrk

◆ num_matched_sim_tracks

int Primary4DVertexValidation::recoPrimaryVertex::num_matched_sim_tracks

◆ OriginalIndex

int Primary4DVertexValidation::recoPrimaryVertex::OriginalIndex = -1

Definition at line 154 of file Primary4DVertexValidation.cc.

◆ pt

double Primary4DVertexValidation::recoPrimaryVertex::pt

◆ ptsq

double Primary4DVertexValidation::recoPrimaryVertex::ptsq

◆ r

double Primary4DVertexValidation::recoPrimaryVertex::r

Definition at line 144 of file Primary4DVertexValidation.cc.

Referenced by recoPrimaryVertex().

◆ recVtx

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

Definition at line 152 of file Primary4DVertexValidation.cc.

◆ recVtxRef

reco::VertexBaseRef Primary4DVertexValidation::recoPrimaryVertex::recVtxRef

Definition at line 153 of file Primary4DVertexValidation.cc.

◆ sim

unsigned int Primary4DVertexValidation::recoPrimaryVertex::sim = NOT_MATCHED

Definition at line 165 of file Primary4DVertexValidation.cc.

◆ sumwnt

double Primary4DVertexValidation::recoPrimaryVertex::sumwnt = 0

◆ sumwos

double Primary4DVertexValidation::recoPrimaryVertex::sumwos = 0

◆ wnt

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

Definition at line 157 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ wntmatch

unsigned int Primary4DVertexValidation::recoPrimaryVertex::wntmatch

Definition at line 159 of file Primary4DVertexValidation.cc.

◆ wos

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

Definition at line 156 of file Primary4DVertexValidation.cc.

Referenced by addTrack().

◆ wosmatch

unsigned int Primary4DVertexValidation::recoPrimaryVertex::wosmatch

Definition at line 158 of file Primary4DVertexValidation.cc.

Referenced by split_from().

◆ x

double Primary4DVertexValidation::recoPrimaryVertex::x

◆ y

double Primary4DVertexValidation::recoPrimaryVertex::y

◆ z

double Primary4DVertexValidation::recoPrimaryVertex::z