CMS 3D CMS Logo

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

#include <DAClusterizerInZT_vect.h>

Public Member Functions

void addItem (double new_z, double new_t, double new_pk)
 
void debugOut ()
 
void extractRaw ()
 
unsigned int getSize () const
 
void insertItem (unsigned int k, double new_z, double new_t, double new_pk, track_t &tks)
 
unsigned int insertOrdered (double z, double t, double pk, track_t &tks)
 
void removeItem (unsigned int k, track_t &tks)
 

Public Attributes

std::vector< double > dt2
 
double * dt2_ptr
 
std::vector< double > ei
 
std::vector< double > ei_cache
 
double * ei_cache_ptr
 
double * ei_ptr
 
std::vector< double > nut
 
double * nut_ptr
 
std::vector< double > nuz
 
double * nuz_ptr
 
std::vector< double > pk
 
double * pk_ptr
 
std::vector< double > se
 
double * se_ptr
 
std::vector< double > stt
 
double * stt_ptr
 
std::vector< double > sumw
 
double * sumw_ptr
 
std::vector< double > swt
 
double * swt_ptr
 
std::vector< double > swz
 
double * swz_ptr
 
std::vector< double > szt
 
double * szt_ptr
 
std::vector< double > szz
 
double * szz_ptr
 
std::vector< double > t
 
double * t_ptr
 
std::vector< double > z
 
std::vector< double > z0
 
double * z_ptr
 

Detailed Description

Definition at line 71 of file DAClusterizerInZT_vect.h.

Member Function Documentation

◆ addItem()

void DAClusterizerInZT_vect::vertex_t::addItem ( double  new_z,
double  new_t,
double  new_pk 
)
inline

Definition at line 72 of file DAClusterizerInZT_vect.h.

72  {
73  z.push_back(new_z);
74  t.push_back(new_t);
75  pk.push_back(new_pk);
76 
77  ei_cache.push_back(0.0);
78  ei.push_back(0.0);
79  swz.push_back(0.0);
80  swt.push_back(0.0);
81  se.push_back(0.0);
82  nuz.push_back(0.0);
83  nut.push_back(0.0);
84  szz.push_back(0.0);
85  stt.push_back(0.0);
86  szt.push_back(0.0);
87 
88  dt2.push_back(0.0);
89  sumw.push_back(0.0);
90 
91  extractRaw();
92  }

References dt2, ei, ei_cache, extractRaw(), nut, nuz, pk, se, stt, sumw, swt, swz, szt, szz, t, and z.

◆ debugOut()

void DAClusterizerInZT_vect::vertex_t::debugOut ( )
inline

Definition at line 192 of file DAClusterizerInZT_vect.h.

192  {
193  std::cout << "vertex_t size: " << getSize() << std::endl;
194 
195  for (unsigned int i = 0; i < getSize(); ++i) {
196  std::cout << " z = " << z_ptr[i] << " t = " << t_ptr[i] << " pk = " << pk_ptr[i] << std::endl;
197  }
198  }

References gather_cfg::cout, getSize(), mps_fire::i, pk_ptr, t_ptr, and z_ptr.

◆ extractRaw()

void DAClusterizerInZT_vect::vertex_t::extractRaw ( )
inline

Definition at line 97 of file DAClusterizerInZT_vect.h.

97  {
98  z_ptr = &z.front();
99  t_ptr = &t.front();
100  pk_ptr = &pk.front();
101  dt2_ptr = &dt2.front();
102  sumw_ptr = &sumw.front();
103 
104  ei_ptr = &ei.front();
105  swz_ptr = &swz.front();
106  swt_ptr = &swt.front();
107  se_ptr = &se.front();
108  nuz_ptr = &nuz.front();
109  nut_ptr = &nut.front();
110  szz_ptr = &szz.front();
111  stt_ptr = &stt.front();
112  szt_ptr = &szt.front();
113 
114  ei_cache_ptr = &ei_cache.front();
115  }

References dt2, dt2_ptr, ei, ei_cache, ei_cache_ptr, ei_ptr, nut, nut_ptr, nuz, nuz_ptr, pk, pk_ptr, se, se_ptr, stt, stt_ptr, sumw, sumw_ptr, swt, swt_ptr, swz, swz_ptr, szt, szt_ptr, szz, szz_ptr, t, t_ptr, z, and z_ptr.

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

◆ getSize()

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

◆ insertItem()

void DAClusterizerInZT_vect::vertex_t::insertItem ( unsigned int  k,
double  new_z,
double  new_t,
double  new_pk,
track_t tks 
)
inline

Definition at line 117 of file DAClusterizerInZT_vect.h.

117  {
118  z.insert(z.begin() + k, new_z);
119  t.insert(t.begin() + k, new_t);
120  pk.insert(pk.begin() + k, new_pk);
121  dt2.insert(dt2.begin() + k, 0.0);
122  sumw.insert(sumw.begin() + k, 0.0);
123 
124  ei_cache.insert(ei_cache.begin() + k, 0.0);
125  ei.insert(ei.begin() + k, 0.0);
126  swz.insert(swz.begin() + k, 0.0);
127  swt.insert(swt.begin() + k, 0.0);
128  se.insert(se.begin() + k, 0.0);
129 
130  nuz.insert(nuz.begin() + k, 0.0);
131  nut.insert(nut.begin() + k, 0.0);
132  szz.insert(szz.begin() + k, 0.0);
133  stt.insert(stt.begin() + k, 0.0);
134  szt.insert(szt.begin() + k, 0.0);
135 
136  // adjust vertex lists of tracks
137  for (unsigned int i = 0; i < tks.getSize(); i++) {
138  if (tks.kmin[i] > k) {
139  tks.kmin[i]++;
140  }
141  if ((tks.kmax[i] >= k) || (tks.kmax[i] == tks.kmin[i])) {
142  tks.kmax[i]++;
143  }
144  }
145 
146  extractRaw();
147  }

References dt2, ei, ei_cache, extractRaw(), DAClusterizerInZT_vect::track_t::getSize(), mps_fire::i, dqmdumpme::k, DAClusterizerInZT_vect::track_t::kmax, DAClusterizerInZT_vect::track_t::kmin, nut, nuz, pk, se, stt, sumw, swt, swz, szt, szz, t, and z.

Referenced by insertOrdered().

◆ insertOrdered()

unsigned int DAClusterizerInZT_vect::vertex_t::insertOrdered ( double  z,
double  t,
double  pk,
track_t tks 
)
inline

Definition at line 180 of file DAClusterizerInZT_vect.h.

180  {
181  // insert a new cluster according to it's z-position, return the index at which it was inserted
182 
183  unsigned int k = 0;
184  for (; k < getSize(); k++) {
185  if (z < z_ptr[k])
186  break;
187  }
188  insertItem(k, z, t, pk, tks);
189  return k;
190  }

References getSize(), insertItem(), dqmdumpme::k, pk, t, z, and z_ptr.

◆ removeItem()

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

Definition at line 148 of file DAClusterizerInZT_vect.h.

148  {
149  z.erase(z.begin() + k);
150  t.erase(t.begin() + k);
151  pk.erase(pk.begin() + k);
152  dt2.erase(dt2.begin() + k);
153  sumw.erase(sumw.begin() + k);
154 
155  ei_cache.erase(ei_cache.begin() + k);
156  ei.erase(ei.begin() + k);
157  swz.erase(swz.begin() + k);
158  swt.erase(swt.begin() + k);
159  se.erase(se.begin() + k);
160 
161  nuz.erase(nuz.begin() + k);
162  nut.erase(nut.begin() + k);
163  szz.erase(szz.begin() + k);
164  stt.erase(stt.begin() + k);
165  szt.erase(szt.begin() + k);
166 
167  // adjust vertex lists of tracks
168  for (unsigned int i = 0; i < tks.getSize(); i++) {
169  if (tks.kmax[i] > k) {
170  tks.kmax[i]--;
171  }
172  if ((tks.kmin[i] > k) || (((tks.kmax[i] < (tks.kmin[i] + 1)) && (tks.kmin[i] > 0)))) {
173  tks.kmin[i]--;
174  }
175  }
176 
177  extractRaw();
178  }

References dt2, ei, ei_cache, extractRaw(), DAClusterizerInZT_vect::track_t::getSize(), mps_fire::i, dqmdumpme::k, DAClusterizerInZT_vect::track_t::kmax, DAClusterizerInZT_vect::track_t::kmin, nut, nuz, pk, se, stt, sumw, swt, swz, szt, szz, t, and z.

Member Data Documentation

◆ dt2

std::vector<double> DAClusterizerInZT_vect::vertex_t::dt2

Definition at line 203 of file DAClusterizerInZT_vect.h.

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

◆ dt2_ptr

double* DAClusterizerInZT_vect::vertex_t::dt2_ptr

Definition at line 209 of file DAClusterizerInZT_vect.h.

Referenced by extractRaw().

◆ ei

std::vector<double> DAClusterizerInZT_vect::vertex_t::ei

Definition at line 225 of file DAClusterizerInZT_vect.h.

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

◆ ei_cache

std::vector<double> DAClusterizerInZT_vect::vertex_t::ei_cache

Definition at line 224 of file DAClusterizerInZT_vect.h.

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

◆ ei_cache_ptr

double* DAClusterizerInZT_vect::vertex_t::ei_cache_ptr

Definition at line 212 of file DAClusterizerInZT_vect.h.

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

◆ ei_ptr

double* DAClusterizerInZT_vect::vertex_t::ei_ptr

Definition at line 213 of file DAClusterizerInZT_vect.h.

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

◆ nut

std::vector<double> DAClusterizerInZT_vect::vertex_t::nut

Definition at line 230 of file DAClusterizerInZT_vect.h.

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

◆ nut_ptr

double* DAClusterizerInZT_vect::vertex_t::nut_ptr

Definition at line 221 of file DAClusterizerInZT_vect.h.

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

◆ nuz

std::vector<double> DAClusterizerInZT_vect::vertex_t::nuz

Definition at line 229 of file DAClusterizerInZT_vect.h.

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

◆ nuz_ptr

double* DAClusterizerInZT_vect::vertex_t::nuz_ptr

Definition at line 220 of file DAClusterizerInZT_vect.h.

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

◆ pk

std::vector<double> DAClusterizerInZT_vect::vertex_t::pk

Definition at line 202 of file DAClusterizerInZT_vect.h.

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

◆ pk_ptr

double* DAClusterizerInZT_vect::vertex_t::pk_ptr

Definition at line 208 of file DAClusterizerInZT_vect.h.

Referenced by debugOut(), and extractRaw().

◆ se

std::vector<double> DAClusterizerInZT_vect::vertex_t::se

Definition at line 228 of file DAClusterizerInZT_vect.h.

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

◆ se_ptr

double* DAClusterizerInZT_vect::vertex_t::se_ptr

Definition at line 216 of file DAClusterizerInZT_vect.h.

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

◆ stt

std::vector<double> DAClusterizerInZT_vect::vertex_t::stt

Definition at line 232 of file DAClusterizerInZT_vect.h.

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

◆ stt_ptr

double* DAClusterizerInZT_vect::vertex_t::stt_ptr

Definition at line 218 of file DAClusterizerInZT_vect.h.

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

◆ sumw

std::vector<double> DAClusterizerInZT_vect::vertex_t::sumw

Definition at line 204 of file DAClusterizerInZT_vect.h.

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

◆ sumw_ptr

double* DAClusterizerInZT_vect::vertex_t::sumw_ptr

Definition at line 210 of file DAClusterizerInZT_vect.h.

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

◆ swt

std::vector<double> DAClusterizerInZT_vect::vertex_t::swt

Definition at line 227 of file DAClusterizerInZT_vect.h.

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

◆ swt_ptr

double* DAClusterizerInZT_vect::vertex_t::swt_ptr

Definition at line 215 of file DAClusterizerInZT_vect.h.

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

◆ swz

std::vector<double> DAClusterizerInZT_vect::vertex_t::swz

Definition at line 226 of file DAClusterizerInZT_vect.h.

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

◆ swz_ptr

double* DAClusterizerInZT_vect::vertex_t::swz_ptr

Definition at line 214 of file DAClusterizerInZT_vect.h.

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

◆ szt

std::vector<double> DAClusterizerInZT_vect::vertex_t::szt

Definition at line 233 of file DAClusterizerInZT_vect.h.

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

◆ szt_ptr

double* DAClusterizerInZT_vect::vertex_t::szt_ptr

Definition at line 219 of file DAClusterizerInZT_vect.h.

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

◆ szz

std::vector<double> DAClusterizerInZT_vect::vertex_t::szz

Definition at line 231 of file DAClusterizerInZT_vect.h.

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

◆ szz_ptr

double* DAClusterizerInZT_vect::vertex_t::szz_ptr

Definition at line 217 of file DAClusterizerInZT_vect.h.

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

◆ t

std::vector<double> DAClusterizerInZT_vect::vertex_t::t

Definition at line 201 of file DAClusterizerInZT_vect.h.

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

◆ t_ptr

double* DAClusterizerInZT_vect::vertex_t::t_ptr

Definition at line 207 of file DAClusterizerInZT_vect.h.

Referenced by debugOut(), and extractRaw().

◆ z

std::vector<double> DAClusterizerInZT_vect::vertex_t::z

◆ z0

std::vector<double> DAClusterizerInZT_vect::vertex_t::z0

Definition at line 236 of file DAClusterizerInZT_vect.h.

◆ z_ptr

double* DAClusterizerInZT_vect::vertex_t::z_ptr
DAClusterizerInZT_vect::vertex_t::szt_ptr
double * szt_ptr
Definition: DAClusterizerInZT_vect.h:219
DAClusterizerInZT_vect::vertex_t::stt_ptr
double * stt_ptr
Definition: DAClusterizerInZT_vect.h:218
DAClusterizerInZT_vect::vertex_t::swz_ptr
double * swz_ptr
Definition: DAClusterizerInZT_vect.h:214
DAClusterizerInZT_vect::vertex_t::extractRaw
void extractRaw()
Definition: DAClusterizerInZT_vect.h:97
DAClusterizerInZT_vect::vertex_t::nut_ptr
double * nut_ptr
Definition: DAClusterizerInZT_vect.h:221
DAClusterizerInZT_vect::vertex_t::swt
std::vector< double > swt
Definition: DAClusterizerInZT_vect.h:227
mps_fire.i
i
Definition: mps_fire.py:428
DAClusterizerInZT_vect::vertex_t::szz
std::vector< double > szz
Definition: DAClusterizerInZT_vect.h:231
DAClusterizerInZT_vect::vertex_t::ei_cache_ptr
double * ei_cache_ptr
Definition: DAClusterizerInZT_vect.h:212
DAClusterizerInZT_vect::vertex_t::stt
std::vector< double > stt
Definition: DAClusterizerInZT_vect.h:232
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DAClusterizerInZT_vect::vertex_t::pk_ptr
double * pk_ptr
Definition: DAClusterizerInZT_vect.h:208
DAClusterizerInZT_vect::vertex_t::t_ptr
double * t_ptr
Definition: DAClusterizerInZT_vect.h:207
DAClusterizerInZT_vect::vertex_t::szt
std::vector< double > szt
Definition: DAClusterizerInZT_vect.h:233
DAClusterizerInZT_vect::vertex_t::se
std::vector< double > se
Definition: DAClusterizerInZT_vect.h:228
DAClusterizerInZT_vect::vertex_t::ei_ptr
double * ei_ptr
Definition: DAClusterizerInZT_vect.h:213
DAClusterizerInZT_vect::vertex_t::swz
std::vector< double > swz
Definition: DAClusterizerInZT_vect.h:226
DAClusterizerInZT_vect::vertex_t::se_ptr
double * se_ptr
Definition: DAClusterizerInZT_vect.h:216
DAClusterizerInZT_vect::vertex_t::nuz
std::vector< double > nuz
Definition: DAClusterizerInZT_vect.h:229
DAClusterizerInZT_vect::vertex_t::szz_ptr
double * szz_ptr
Definition: DAClusterizerInZT_vect.h:217
DAClusterizerInZT_vect::vertex_t::z_ptr
double * z_ptr
Definition: DAClusterizerInZT_vect.h:206
DAClusterizerInZT_vect::vertex_t::swt_ptr
double * swt_ptr
Definition: DAClusterizerInZT_vect.h:215
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DAClusterizerInZT_vect::vertex_t::sumw
std::vector< double > sumw
Definition: DAClusterizerInZT_vect.h:204
DAClusterizerInZT_vect::vertex_t::nut
std::vector< double > nut
Definition: DAClusterizerInZT_vect.h:230
DAClusterizerInZT_vect::vertex_t::ei_cache
std::vector< double > ei_cache
Definition: DAClusterizerInZT_vect.h:224
DAClusterizerInZT_vect::vertex_t::getSize
unsigned int getSize() const
Definition: DAClusterizerInZT_vect.h:94
DAClusterizerInZT_vect::vertex_t::sumw_ptr
double * sumw_ptr
Definition: DAClusterizerInZT_vect.h:210
DAClusterizerInZT_vect::vertex_t::nuz_ptr
double * nuz_ptr
Definition: DAClusterizerInZT_vect.h:220
DAClusterizerInZT_vect::vertex_t::pk
std::vector< double > pk
Definition: DAClusterizerInZT_vect.h:202
DAClusterizerInZT_vect::vertex_t::z
std::vector< double > z
Definition: DAClusterizerInZT_vect.h:200
DAClusterizerInZT_vect::vertex_t::ei
std::vector< double > ei
Definition: DAClusterizerInZT_vect.h:225
DAClusterizerInZT_vect::vertex_t::dt2_ptr
double * dt2_ptr
Definition: DAClusterizerInZT_vect.h:209
DAClusterizerInZT_vect::vertex_t::t
std::vector< double > t
Definition: DAClusterizerInZT_vect.h:201
DAClusterizerInZT_vect::vertex_t::insertItem
void insertItem(unsigned int k, double new_z, double new_t, double new_pk, track_t &tks)
Definition: DAClusterizerInZT_vect.h:117
DAClusterizerInZT_vect::vertex_t::dt2
std::vector< double > dt2
Definition: DAClusterizerInZT_vect.h:203