CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DAClusterizerInZ_vect::track_t Struct Reference

#include <DAClusterizerInZ_vect.h>

Public Member Functions

void addItemSorted (double new_zpca, double new_dz2, const reco::TransientTrack *new_tt, double new_tkwt)
 
void extractRaw ()
 
unsigned int getSize () const
 
void insertItem (unsigned int i, double new_zpca, double new_dz2, const reco::TransientTrack *new_tt, double new_tkwt)
 

Public Attributes

double *__restrict__ dz2
 
std::vector< double > dz2_vec
 
std::vector< unsigned int > kmax
 
std::vector< unsigned int > kmin
 
double osumtkwt
 
double *__restrict__ sum_Z
 
std::vector< double > sum_Z_vec
 
double *__restrict__ tkwt
 
std::vector< double > tkwt_vec
 
std::vector< const reco::TransientTrack * > tt
 
double *__restrict__ zpca
 
std::vector< double > zpca_vec
 

Detailed Description

Definition at line 26 of file DAClusterizerInZ_vect.h.

Member Function Documentation

◆ addItemSorted()

void DAClusterizerInZ_vect::track_t::addItemSorted ( double  new_zpca,
double  new_dz2,
const reco::TransientTrack new_tt,
double  new_tkwt 
)
inline

Definition at line 37 of file DAClusterizerInZ_vect.h.

37  {
38  // sort tracks with decreasing resolution (note that dz2 = 1/sigma^2)
39  unsigned int i = 0;
40  for (i = 0; i < zpca_vec.size(); i++) {
41  if (new_dz2 > dz2_vec[i])
42  break;
43  }
44  insertItem(i, new_zpca, new_dz2, new_tt, new_tkwt);
45  }

References dz2_vec, mps_fire::i, insertItem(), and zpca_vec.

Referenced by DAClusterizerInZ_vect::fill().

◆ extractRaw()

void DAClusterizerInZ_vect::track_t::extractRaw ( )
inline

Definition at line 61 of file DAClusterizerInZ_vect.h.

61  {
62  zpca = &zpca_vec.front();
63  dz2 = &dz2_vec.front();
64  tkwt = &tkwt_vec.front();
65  sum_Z = &sum_Z_vec.front();
66  }

References dz2, dz2_vec, sum_Z, sum_Z_vec, tkwt, tkwt_vec, zpca, and zpca_vec.

Referenced by DAClusterizerInZ_vect::fill(), and DAClusterizerInZ_vect::vertices().

◆ getSize()

unsigned int DAClusterizerInZ_vect::track_t::getSize ( ) const
inline

◆ insertItem()

void DAClusterizerInZ_vect::track_t::insertItem ( unsigned int  i,
double  new_zpca,
double  new_dz2,
const reco::TransientTrack new_tt,
double  new_tkwt 
)
inline

Definition at line 47 of file DAClusterizerInZ_vect.h.

48  {
49  zpca_vec.insert(zpca_vec.begin() + i, new_zpca);
50  dz2_vec.insert(dz2_vec.begin() + i, new_dz2);
51  tt.insert(tt.begin() + i, new_tt);
52  tkwt_vec.insert(tkwt_vec.begin() + i, new_tkwt);
53  sum_Z_vec.insert(sum_Z_vec.begin() + i, 1.0);
54  kmin.insert(kmin.begin() + i, 0);
55  kmax.insert(kmax.begin() + i, 0);
56  }

References dz2_vec, mps_fire::i, kmax, kmin, sum_Z_vec, tkwt_vec, tt, and zpca_vec.

Referenced by addItemSorted().

Member Data Documentation

◆ dz2

double* __restrict__ DAClusterizerInZ_vect::track_t::dz2

◆ dz2_vec

std::vector<double> DAClusterizerInZ_vect::track_t::dz2_vec

◆ kmax

std::vector<unsigned int> DAClusterizerInZ_vect::track_t::kmax

◆ kmin

std::vector<unsigned int> DAClusterizerInZ_vect::track_t::kmin

◆ osumtkwt

double DAClusterizerInZ_vect::track_t::osumtkwt

◆ sum_Z

double* __restrict__ DAClusterizerInZ_vect::track_t::sum_Z

◆ sum_Z_vec

std::vector<double> DAClusterizerInZ_vect::track_t::sum_Z_vec

Definition at line 29 of file DAClusterizerInZ_vect.h.

Referenced by extractRaw(), insertItem(), and DAClusterizerInZ_vect::verify().

◆ tkwt

double* __restrict__ DAClusterizerInZ_vect::track_t::tkwt

◆ tkwt_vec

std::vector<double> DAClusterizerInZ_vect::track_t::tkwt_vec

Definition at line 30 of file DAClusterizerInZ_vect.h.

Referenced by extractRaw(), insertItem(), and DAClusterizerInZ_vect::verify().

◆ tt

std::vector<const reco::TransientTrack *> DAClusterizerInZ_vect::track_t::tt

◆ zpca

double* __restrict__ DAClusterizerInZ_vect::track_t::zpca

◆ zpca_vec

std::vector<double> DAClusterizerInZ_vect::track_t::zpca_vec
mps_fire.i
i
Definition: mps_fire.py:428
DAClusterizerInZ_vect::track_t::sum_Z
double *__restrict__ sum_Z
Definition: DAClusterizerInZ_vect.h:72
DAClusterizerInZ_vect::track_t::tkwt
double *__restrict__ tkwt
Definition: DAClusterizerInZ_vect.h:71
DAClusterizerInZ_vect::track_t::tt
std::vector< const reco::TransientTrack * > tt
Definition: DAClusterizerInZ_vect.h:33
DAClusterizerInZ_vect::track_t::kmax
std::vector< unsigned int > kmax
Definition: DAClusterizerInZ_vect.h:32
DAClusterizerInZ_vect::track_t::kmin
std::vector< unsigned int > kmin
Definition: DAClusterizerInZ_vect.h:31
DAClusterizerInZ_vect::track_t::insertItem
void insertItem(unsigned int i, double new_zpca, double new_dz2, const reco::TransientTrack *new_tt, double new_tkwt)
Definition: DAClusterizerInZ_vect.h:47
DAClusterizerInZ_vect::track_t::zpca
double *__restrict__ zpca
Definition: DAClusterizerInZ_vect.h:69
DAClusterizerInZ_vect::track_t::dz2_vec
std::vector< double > dz2_vec
Definition: DAClusterizerInZ_vect.h:28
DAClusterizerInZ_vect::track_t::sum_Z_vec
std::vector< double > sum_Z_vec
Definition: DAClusterizerInZ_vect.h:29
DAClusterizerInZ_vect::track_t::dz2
double *__restrict__ dz2
Definition: DAClusterizerInZ_vect.h:70
DAClusterizerInZ_vect::track_t::tkwt_vec
std::vector< double > tkwt_vec
Definition: DAClusterizerInZ_vect.h:30
DAClusterizerInZ_vect::track_t::zpca_vec
std::vector< double > zpca_vec
Definition: DAClusterizerInZ_vect.h:27