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 i, double new_z, double new_t, double new_pk)
 
unsigned int insertOrdered (double z, double t, double pk)
 
void removeItem (unsigned int i)
 

Public Attributes

std::vector< double > ei
 
double * ei_
 
std::vector< double > ei_cache
 
double * ei_cache_
 
std::vector< double > nut
 
double * nut_
 
std::vector< double > nuz
 
double * nuz_
 
std::vector< double > pk
 
double * pk_
 
std::vector< double > se
 
double * se_
 
std::vector< double > stt
 
double * stt_
 
std::vector< double > swt
 
double * swt_
 
std::vector< double > swz
 
double * swz_
 
std::vector< double > szt
 
double * szt_
 
std::vector< double > szz
 
double * szz_
 
std::vector< double > t
 
double * t_
 
std::vector< double > z
 
double * z_
 

Detailed Description

Definition at line 74 of file DAClusterizerInZT_vect.h.

Member Function Documentation

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

Definition at line 76 of file DAClusterizerInZT_vect.h.

References DAClusterizerInZT_vect::track_t::extractRaw(), DAClusterizerInZT_vect::track_t::t, and DAClusterizerInZT_vect::track_t::z.

Referenced by DAClusterizerInZT_vect::splitAll(), and DAClusterizerInZT_vect::vertices().

77  {
78  z.push_back( new_z);
79  t.push_back( new_t);
80  pk.push_back( new_pk);
81 
82  ei_cache.push_back( 0.0 );
83  ei.push_back( 0.0 );
84  swz.push_back( 0.0);
85  swt.push_back( 0.0);
86  se.push_back( 0.0);
87  nuz.push_back(0.0);
88  nut.push_back(0.0);
89  szz.push_back(0.0);
90  stt.push_back(0.0);
91  szt.push_back(0.0);
92 
93  extractRaw();
94  }
void DAClusterizerInZT_vect::vertex_t::debugOut ( )
inline

Definition at line 176 of file DAClusterizerInZT_vect.h.

References gather_cfg::cout, DAClusterizerInZT_vect::track_t::getSize(), mps_fire::i, DAClusterizerInZT_vect::track_t::t_, and DAClusterizerInZT_vect::track_t::z_.

Referenced by DAClusterizerInZT_vect::splitAll().

177  {
178  std::cout << "vertex_t size: " << getSize() << std::endl;
179 
180  for ( unsigned int i =0; i < getSize(); ++ i)
181  {
182  std::cout << " z = " << z_[i] << " t = " << t_[i] << " pk = " << pk_[i] << std::endl;
183  }
184  }
void DAClusterizerInZT_vect::vertex_t::extractRaw ( )
inline

Definition at line 102 of file DAClusterizerInZT_vect.h.

References DAClusterizerInZT_vect::track_t::t, DAClusterizerInZT_vect::track_t::t_, DAClusterizerInZT_vect::track_t::z, and DAClusterizerInZT_vect::track_t::z_.

Referenced by DAClusterizerInZT_vect::merge(), DAClusterizerInZT_vect::splitAll(), and DAClusterizerInZT_vect::zorder().

103  {
104  z_ = &z.front();
105  t_ = &t.front();
106  pk_ = &pk.front();
107 
108  ei_ = &ei.front();
109  swz_ = &swz.front();
110  swt_ = &swt.front();
111  se_ = &se.front();
112  nuz_ = &nuz.front();
113  nut_ = &nut.front();
114  szz_ = &szz.front();
115  stt_ = &stt.front();
116  szt_ = &szt.front();
117 
118  ei_cache_ = &ei_cache.front();
119 
120  }
unsigned int DAClusterizerInZT_vect::vertex_t::getSize ( ) const
inline
void DAClusterizerInZT_vect::vertex_t::insertItem ( unsigned int  i,
double  new_z,
double  new_t,
double  new_pk 
)
inline

Definition at line 122 of file DAClusterizerInZT_vect.h.

References DAClusterizerInZT_vect::track_t::extractRaw(), mps_fire::i, DAClusterizerInZT_vect::track_t::t, and DAClusterizerInZT_vect::track_t::z.

123  {
124  z.insert(z.begin() + i, new_z);
125  t.insert(t.begin() + i, new_t);
126  pk.insert(pk.begin() + i, new_pk);
127 
128  ei_cache.insert(ei_cache.begin() + i, 0.0 );
129  ei.insert( ei.begin() + i, 0.0 );
130  swz.insert(swz.begin() + i, 0.0 );
131  swt.insert(swt.begin() + i, 0.0 );
132  se.insert( se.begin() + i, 0.0 );
133 
134  nuz.insert(nuz.begin() +i, 0.0 );
135  nut.insert(nut.begin() +i, 0.0 );
136  szz.insert(szz.begin() + i, 0.0 );
137  stt.insert(stt.begin() + i, 0.0 );
138  szt.insert(szt.begin() + i, 0.0 );
139  extractRaw();
140  }
unsigned int DAClusterizerInZT_vect::vertex_t::insertOrdered ( double  z,
double  t,
double  pk 
)
inline

Definition at line 164 of file DAClusterizerInZT_vect.h.

References DAClusterizerInZT_vect::track_t::getSize(), gen::k, and DAClusterizerInZT_vect::track_t::z_.

Referenced by DAClusterizerInZT_vect::split().

164  {
165  // insert a new cluster according to it's z-position, return the index at which it was inserted
166 
167  unsigned int k = 0;
168  for( ; k < getSize(); k++){
169  if (z < z_[k]) break;
170  }
171  insertItem(k ,z, t, pk);
172  return k;
173  }
void insertItem(unsigned int i, double new_z, double new_t, double new_pk)
int k[5][pyjets_maxn]
void DAClusterizerInZT_vect::vertex_t::removeItem ( unsigned int  i)
inline

Definition at line 142 of file DAClusterizerInZT_vect.h.

References DAClusterizerInZT_vect::track_t::extractRaw(), mps_fire::i, DAClusterizerInZT_vect::track_t::t, and DAClusterizerInZT_vect::track_t::z.

Referenced by DAClusterizerInZT_vect::merge(), DAClusterizerInZT_vect::purge(), and DAClusterizerInZT_vect::split().

143  {
144  z.erase( z.begin() + i );
145  t.erase( t.begin() + i );
146  pk.erase( pk.begin() + i );
147 
148  ei_cache.erase( ei_cache.begin() + i);
149  ei.erase( ei.begin() + i);
150  swz.erase( swz.begin() + i);
151  swt.erase( swt.begin() + i);
152  se.erase(se.begin() + i);
153 
154  nuz.erase(nuz.begin() + i);
155  nut.erase(nut.begin() + i);
156  szz.erase(szz.begin() + i);
157  stt.erase(stt.begin() + i);
158  szt.erase(szt.begin() + i);
159 
160  extractRaw();
161  }

Member Data Documentation

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

Definition at line 207 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::ei_

Definition at line 195 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 206 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::ei_cache_

Definition at line 194 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 212 of file DAClusterizerInZT_vect.h.

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

Definition at line 211 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::nuz_
std::vector<double> DAClusterizerInZT_vect::vertex_t::pk
double* DAClusterizerInZT_vect::vertex_t::pk_
std::vector<double> DAClusterizerInZT_vect::vertex_t::se

Definition at line 210 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::se_

Definition at line 198 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 214 of file DAClusterizerInZT_vect.h.

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

Definition at line 209 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::swt_

Definition at line 197 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 208 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::swz_

Definition at line 196 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 215 of file DAClusterizerInZT_vect.h.

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

Definition at line 213 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::szz_
std::vector<double> DAClusterizerInZT_vect::vertex_t::t
double* DAClusterizerInZT_vect::vertex_t::t_
std::vector<double> DAClusterizerInZT_vect::vertex_t::z
double* DAClusterizerInZT_vect::vertex_t::z_