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
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

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.

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

Referenced by DAClusterizerInZ_vect::fill().

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  }
void insertItem(unsigned int i, double new_zpca, double new_dz2, const reco::TransientTrack *new_tt, double new_tkwt)
void DAClusterizerInZ_vect::track_t::extractRaw ( )
inline

Definition at line 61 of file DAClusterizerInZ_vect.h.

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().

61  {
62  zpca = &zpca_vec.front();
63  dz2 = &dz2_vec.front();
64  tkwt = &tkwt_vec.front();
65  sum_Z = &sum_Z_vec.front();
66  }
unsigned int DAClusterizerInZ_vect::track_t::getSize ( ) const
inline
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.

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

Referenced by addItemSorted().

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  }
std::vector< const reco::TransientTrack * > tt
std::vector< unsigned int > kmin
std::vector< unsigned int > kmax

Member Data Documentation

double* __restrict__ DAClusterizerInZ_vect::track_t::dz2
std::vector<double> DAClusterizerInZ_vect::track_t::dz2_vec
std::vector<unsigned int> DAClusterizerInZ_vect::track_t::kmax
std::vector<unsigned int> DAClusterizerInZ_vect::track_t::kmin
double DAClusterizerInZ_vect::track_t::osumtkwt
double* __restrict__ DAClusterizerInZ_vect::track_t::sum_Z
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().

double* __restrict__ DAClusterizerInZ_vect::track_t::tkwt
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().

std::vector<const reco::TransientTrack *> DAClusterizerInZ_vect::track_t::tt
double* __restrict__ DAClusterizerInZ_vect::track_t::zpca
std::vector<double> DAClusterizerInZ_vect::track_t::zpca_vec