CMS 3D CMS Logo

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

#include <DAClusterizerInZ_vect.h>

Public Member Functions

void addItem (double new_zvtx, double new_rho)
 
void extractRaw ()
 
unsigned int getSize () const
 
void insertItem (unsigned int k, double new_zvtx, double new_rho, track_t &tks)
 
void removeItem (unsigned int k, track_t &tks)
 

Public Attributes

double *__restrict__ exp
 
double *__restrict__ exp_arg
 
std::vector< double > exp_arg_vec
 
std::vector< double > exp_vec
 
double *__restrict__ rho
 
std::vector< double > rho_vec
 
double *__restrict__ se
 
std::vector< double > se_vec
 
double *__restrict__ sw
 
std::vector< double > sw_vec
 
double *__restrict__ swE
 
std::vector< double > swE_vec
 
double *__restrict__ swz
 
std::vector< double > swz_vec
 
double *__restrict__ zvtx
 
std::vector< double > zvtx_vec
 

Detailed Description

Definition at line 76 of file DAClusterizerInZ_vect.h.

Member Function Documentation

◆ addItem()

void DAClusterizerInZ_vect::vertex_t::addItem ( double  new_zvtx,
double  new_rho 
)
inline

Definition at line 89 of file DAClusterizerInZ_vect.h.

89  {
90  zvtx_vec.push_back(new_zvtx);
91  rho_vec.push_back(new_rho);
92  exp_arg_vec.push_back(0.0);
93  exp_vec.push_back(0.0);
94  sw_vec.push_back(0.0);
95  swz_vec.push_back(0.0);
96  se_vec.push_back(0.0);
97  swE_vec.push_back(0.0);
98 
99  extractRaw();
100  }

References exp_arg_vec, exp_vec, extractRaw(), rho_vec, se_vec, sw_vec, swE_vec, swz_vec, and zvtx_vec.

◆ extractRaw()

void DAClusterizerInZ_vect::vertex_t::extractRaw ( )
inline

Definition at line 161 of file DAClusterizerInZ_vect.h.

161  {
162  zvtx = &zvtx_vec.front();
163  rho = &rho_vec.front();
164  exp = &exp_vec.front();
165  sw = &sw_vec.front();
166  swz = &swz_vec.front();
167  se = &se_vec.front();
168  swE = &swE_vec.front();
169  exp_arg = &exp_arg_vec.front();
170  }

References exp, exp_arg, exp_arg_vec, exp_vec, rho, rho_vec, se, se_vec, sw, sw_vec, swE, swE_vec, swz, swz_vec, zvtx, and zvtx_vec.

Referenced by addItem(), insertItem(), and removeItem().

◆ getSize()

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

◆ insertItem()

void DAClusterizerInZ_vect::vertex_t::insertItem ( unsigned int  k,
double  new_zvtx,
double  new_rho,
track_t tks 
)
inline

Definition at line 102 of file DAClusterizerInZ_vect.h.

102  {
103  zvtx_vec.insert(zvtx_vec.begin() + k, new_zvtx);
104  rho_vec.insert(rho_vec.begin() + k, new_rho);
105 
106  exp_arg_vec.insert(exp_arg_vec.begin() + k, 0.0);
107  exp_vec.insert(exp_vec.begin() + k, 0.0);
108  sw_vec.insert(sw_vec.begin() + k, 0.0);
109  swz_vec.insert(swz_vec.begin() + k, 0.0);
110  se_vec.insert(se_vec.begin() + k, 0.0);
111  swE_vec.insert(swE_vec.begin() + k, 0.0);
112 
113  // adjust vertex lists of tracks
114  for (unsigned int i = 0; i < tks.getSize(); i++) {
115  if (tks.kmin[i] > k) {
116  tks.kmin[i]++;
117  }
118  if ((tks.kmax[i] >= k) || (tks.kmax[i] == tks.kmin[i])) {
119  tks.kmax[i]++;
120  }
121  }
122 
123  extractRaw();
124  }

References exp_arg_vec, exp_vec, extractRaw(), DAClusterizerInZ_vect::track_t::getSize(), mps_fire::i, dqmdumpme::k, DAClusterizerInZ_vect::track_t::kmax, DAClusterizerInZ_vect::track_t::kmin, rho_vec, se_vec, sw_vec, swE_vec, swz_vec, and zvtx_vec.

◆ removeItem()

void DAClusterizerInZ_vect::vertex_t::removeItem ( unsigned int  k,
track_t tks 
)
inline

Definition at line 126 of file DAClusterizerInZ_vect.h.

126  {
127  zvtx_vec.erase(zvtx_vec.begin() + k);
128  rho_vec.erase(rho_vec.begin() + k);
129 
130  exp_arg_vec.erase(exp_arg_vec.begin() + k);
131  exp_vec.erase(exp_vec.begin() + k);
132  sw_vec.erase(sw_vec.begin() + k);
133  swz_vec.erase(swz_vec.begin() + k);
134  se_vec.erase(se_vec.begin() + k);
135  swE_vec.erase(swE_vec.begin() + k);
136 
137  // adjust vertex lists of tracks
138  for (unsigned int i = 0; i < tks.getSize(); i++) {
139  if (tks.kmax[i] > k) {
140  tks.kmax[i]--;
141  }
142  if ((tks.kmin[i] > k) || (((tks.kmax[i] < (tks.kmin[i] + 1)) && (tks.kmin[i] > 0)))) {
143  tks.kmin[i]--;
144  }
145  }
146 
147  extractRaw();
148  }

References exp_arg_vec, exp_vec, extractRaw(), DAClusterizerInZ_vect::track_t::getSize(), mps_fire::i, dqmdumpme::k, DAClusterizerInZ_vect::track_t::kmax, DAClusterizerInZ_vect::track_t::kmin, rho_vec, se_vec, sw_vec, swE_vec, swz_vec, and zvtx_vec.

Member Data Documentation

◆ exp

double* __restrict__ DAClusterizerInZ_vect::vertex_t::exp

Definition at line 154 of file DAClusterizerInZ_vect.h.

Referenced by extractRaw(), and DAClusterizerInZ_vect::update().

◆ exp_arg

double* __restrict__ DAClusterizerInZ_vect::vertex_t::exp_arg

Definition at line 153 of file DAClusterizerInZ_vect.h.

Referenced by extractRaw(), and DAClusterizerInZ_vect::update().

◆ exp_arg_vec

std::vector<double> DAClusterizerInZ_vect::vertex_t::exp_arg_vec

Definition at line 80 of file DAClusterizerInZ_vect.h.

Referenced by addItem(), extractRaw(), insertItem(), and removeItem().

◆ exp_vec

std::vector<double> DAClusterizerInZ_vect::vertex_t::exp_vec

Definition at line 81 of file DAClusterizerInZ_vect.h.

Referenced by addItem(), extractRaw(), insertItem(), and removeItem().

◆ rho

double* __restrict__ DAClusterizerInZ_vect::vertex_t::rho

◆ rho_vec

std::vector<double> DAClusterizerInZ_vect::vertex_t::rho_vec

Definition at line 78 of file DAClusterizerInZ_vect.h.

Referenced by addItem(), extractRaw(), insertItem(), and removeItem().

◆ se

double* __restrict__ DAClusterizerInZ_vect::vertex_t::se

Definition at line 157 of file DAClusterizerInZ_vect.h.

Referenced by extractRaw(), and DAClusterizerInZ_vect::update().

◆ se_vec

std::vector<double> DAClusterizerInZ_vect::vertex_t::se_vec

Definition at line 84 of file DAClusterizerInZ_vect.h.

Referenced by addItem(), extractRaw(), insertItem(), and removeItem().

◆ sw

double* __restrict__ DAClusterizerInZ_vect::vertex_t::sw

◆ sw_vec

std::vector<double> DAClusterizerInZ_vect::vertex_t::sw_vec

Definition at line 82 of file DAClusterizerInZ_vect.h.

Referenced by addItem(), extractRaw(), insertItem(), and removeItem().

◆ swE

double* __restrict__ DAClusterizerInZ_vect::vertex_t::swE

◆ swE_vec

std::vector<double> DAClusterizerInZ_vect::vertex_t::swE_vec

Definition at line 85 of file DAClusterizerInZ_vect.h.

Referenced by addItem(), extractRaw(), insertItem(), and removeItem().

◆ swz

double* __restrict__ DAClusterizerInZ_vect::vertex_t::swz

Definition at line 156 of file DAClusterizerInZ_vect.h.

Referenced by extractRaw(), and DAClusterizerInZ_vect::update().

◆ swz_vec

std::vector<double> DAClusterizerInZ_vect::vertex_t::swz_vec

Definition at line 83 of file DAClusterizerInZ_vect.h.

Referenced by addItem(), extractRaw(), insertItem(), and removeItem().

◆ zvtx

double* __restrict__ DAClusterizerInZ_vect::vertex_t::zvtx

Definition at line 151 of file DAClusterizerInZ_vect.h.

Referenced by extractRaw(), and DAClusterizerInZ_vect::set_vtx_range().

◆ zvtx_vec

std::vector<double> DAClusterizerInZ_vect::vertex_t::zvtx_vec

Definition at line 77 of file DAClusterizerInZ_vect.h.

Referenced by addItem(), extractRaw(), getSize(), insertItem(), and removeItem().

DAClusterizerInZ_vect::vertex_t::swE_vec
std::vector< double > swE_vec
Definition: DAClusterizerInZ_vect.h:85
mps_fire.i
i
Definition: mps_fire.py:428
DAClusterizerInZ_vect::vertex_t::exp_vec
std::vector< double > exp_vec
Definition: DAClusterizerInZ_vect.h:81
DAClusterizerInZ_vect::vertex_t::rho
double *__restrict__ rho
Definition: DAClusterizerInZ_vect.h:152
DAClusterizerInZ_vect::vertex_t::se_vec
std::vector< double > se_vec
Definition: DAClusterizerInZ_vect.h:84
DAClusterizerInZ_vect::vertex_t::zvtx
double *__restrict__ zvtx
Definition: DAClusterizerInZ_vect.h:151
DAClusterizerInZ_vect::vertex_t::se
double *__restrict__ se
Definition: DAClusterizerInZ_vect.h:157
DAClusterizerInZ_vect::vertex_t::exp_arg_vec
std::vector< double > exp_arg_vec
Definition: DAClusterizerInZ_vect.h:80
DAClusterizerInZ_vect::vertex_t::swE
double *__restrict__ swE
Definition: DAClusterizerInZ_vect.h:158
DAClusterizerInZ_vect::vertex_t::extractRaw
void extractRaw()
Definition: DAClusterizerInZ_vect.h:161
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DAClusterizerInZ_vect::vertex_t::sw
double *__restrict__ sw
Definition: DAClusterizerInZ_vect.h:155
DAClusterizerInZ_vect::vertex_t::swz
double *__restrict__ swz
Definition: DAClusterizerInZ_vect.h:156
DAClusterizerInZ_vect::vertex_t::exp_arg
double *__restrict__ exp_arg
Definition: DAClusterizerInZ_vect.h:153
DAClusterizerInZ_vect::vertex_t::swz_vec
std::vector< double > swz_vec
Definition: DAClusterizerInZ_vect.h:83
DAClusterizerInZ_vect::vertex_t::sw_vec
std::vector< double > sw_vec
Definition: DAClusterizerInZ_vect.h:82
DAClusterizerInZ_vect::vertex_t::exp
double *__restrict__ exp
Definition: DAClusterizerInZ_vect.h:154
DAClusterizerInZ_vect::vertex_t::rho_vec
std::vector< double > rho_vec
Definition: DAClusterizerInZ_vect.h:78
DAClusterizerInZ_vect::vertex_t::zvtx_vec
std::vector< double > zvtx_vec
Definition: DAClusterizerInZ_vect.h:77