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 addItem (double new_z, double new_dz2, const reco::TransientTrack *new_tt, double new_pi)
 
void addItemSorted (double new_z, double new_dz2, const reco::TransientTrack *new_tt, double new_pi)
 
void extractRaw ()
 
unsigned int getSize () const
 
void insertItem (unsigned int i, double new_z, double new_dz2, const reco::TransientTrack *new_tt, double new_pi)
 

Public Attributes

std::vector< double > dz2
 
double *__restrict__ dz2_ptr
 
std::vector< unsigned int > kmax
 
std::vector< unsigned int > kmin
 
std::vector< double > pi
 
double *__restrict__ pi_ptr
 
std::vector< const reco::TransientTrack * > tt
 
std::vector< double > z
 
double *__restrict__ z_ptr
 
std::vector< double > Z_sum
 
double *__restrict__ Z_sum_ptr
 

Detailed Description

Definition at line 23 of file DAClusterizerInZ_vect.h.

Member Function Documentation

◆ addItem()

void DAClusterizerInZ_vect::track_t::addItem ( double  new_z,
double  new_dz2,
const reco::TransientTrack new_tt,
double  new_pi 
)
inline

Definition at line 24 of file DAClusterizerInZ_vect.h.

24  {
25  z.push_back(new_z);
26  dz2.push_back(new_dz2);
27  tt.push_back(new_tt);
28 
29  pi.push_back(new_pi); // track weight
30  Z_sum.push_back(1.0); // Z[i] for DA clustering, initial value as done in ::fill
31 
32  kmin.push_back(0);
33  kmax.push_back(0);
34  }

References dz2, kmax, kmin, pi, tt, z, and Z_sum.

◆ addItemSorted()

void DAClusterizerInZ_vect::track_t::addItemSorted ( double  new_z,
double  new_dz2,
const reco::TransientTrack new_tt,
double  new_pi 
)
inline

Definition at line 36 of file DAClusterizerInZ_vect.h.

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

References dz2, mps_fire::i, insertItem(), and z.

Referenced by DAClusterizerInZ_vect::fill().

◆ extractRaw()

void DAClusterizerInZ_vect::track_t::extractRaw ( )
inline

Definition at line 60 of file DAClusterizerInZ_vect.h.

60  {
61  z_ptr = &z.front();
62  dz2_ptr = &dz2.front();
63  Z_sum_ptr = &Z_sum.front();
64  pi_ptr = &pi.front();
65  }

References dz2, dz2_ptr, pi, pi_ptr, z, z_ptr, Z_sum, and Z_sum_ptr.

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_z,
double  new_dz2,
const reco::TransientTrack new_tt,
double  new_pi 
)
inline

Definition at line 46 of file DAClusterizerInZ_vect.h.

46  {
47  z.insert(z.begin() + i, new_z);
48  dz2.insert(dz2.begin() + i, new_dz2);
49  tt.insert(tt.begin() + i, new_tt);
50  pi.insert(pi.begin() + i, new_pi); // track weight
51 
52  Z_sum.insert(Z_sum.begin() + i, 1.0); // Z[i] for DA clustering, initial value as done in ::fill
53  kmin.insert(kmin.begin() + i, 0);
54  kmax.insert(kmax.begin() + i, 0);
55  }

References dz2, mps_fire::i, kmax, kmin, pi, tt, z, and Z_sum.

Referenced by addItemSorted().

Member Data Documentation

◆ dz2

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

◆ dz2_ptr

double* __restrict__ DAClusterizerInZ_vect::track_t::dz2_ptr

◆ kmax

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

◆ kmin

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

◆ pi

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

◆ pi_ptr

double* __restrict__ DAClusterizerInZ_vect::track_t::pi_ptr

◆ tt

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

◆ z

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

◆ z_ptr

double* __restrict__ DAClusterizerInZ_vect::track_t::z_ptr

◆ Z_sum

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

◆ Z_sum_ptr

double* __restrict__ DAClusterizerInZ_vect::track_t::Z_sum_ptr
mps_fire.i
i
Definition: mps_fire.py:355
DAClusterizerInZ_vect::track_t::insertItem
void insertItem(unsigned int i, double new_z, double new_dz2, const reco::TransientTrack *new_tt, double new_pi)
Definition: DAClusterizerInZ_vect.h:46
DAClusterizerInZ_vect::track_t::tt
std::vector< const reco::TransientTrack * > tt
Definition: DAClusterizerInZ_vect.h:79
DAClusterizerInZ_vect::track_t::pi_ptr
double *__restrict__ pi_ptr
Definition: DAClusterizerInZ_vect.h:71
DAClusterizerInZ_vect::track_t::kmax
std::vector< unsigned int > kmax
Definition: DAClusterizerInZ_vect.h:78
DAClusterizerInZ_vect::track_t::kmin
std::vector< unsigned int > kmin
Definition: DAClusterizerInZ_vect.h:77
DAClusterizerInZ_vect::track_t::Z_sum_ptr
double *__restrict__ Z_sum_ptr
Definition: DAClusterizerInZ_vect.h:70
DAClusterizerInZ_vect::track_t::dz2_ptr
double *__restrict__ dz2_ptr
Definition: DAClusterizerInZ_vect.h:68
DAClusterizerInZ_vect::track_t::z
std::vector< double > z
Definition: DAClusterizerInZ_vect.h:73
DAClusterizerInZ_vect::track_t::dz2
std::vector< double > dz2
Definition: DAClusterizerInZ_vect.h:74
DAClusterizerInZ_vect::track_t::pi
std::vector< double > pi
Definition: DAClusterizerInZ_vect.h:76
DAClusterizerInZ_vect::track_t::z_ptr
double *__restrict__ z_ptr
Definition: DAClusterizerInZ_vect.h:67
DAClusterizerInZ_vect::track_t::Z_sum
std::vector< double > Z_sum
Definition: DAClusterizerInZ_vect.h:75