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)
 
void removeItem (unsigned int i)
 

Public Attributes

std::vector< double > ei
 
double * ei_
 
std::vector< double > ei_cache
 
double * ei_cache_
 
std::vector< double > pk
 
double * pk_
 
std::vector< double > se
 
double * se_
 
std::vector< double > sw
 
double * sw_
 
std::vector< double > swE
 
double * swE_
 
std::vector< double > swt
 
double * swt_
 
std::vector< double > swz
 
double * swz_
 
std::vector< double > t
 
double * t_
 
std::vector< double > z
 
double * z_
 

Detailed Description

Definition at line 78 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 80 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().

81  {
82  z.push_back( new_z);
83  t.push_back( new_t);
84  pk.push_back( new_pk);
85 
86  ei_cache.push_back( 0.0 );
87  ei.push_back( 0.0 );
88  sw.push_back( 0.0 );
89  swz.push_back( 0.0);
90  swt.push_back( 0.0);
91  se.push_back( 0.0);
92  swE.push_back( 0.0);
93 
94  extractRaw();
95  }
void DAClusterizerInZT_vect::vertex_t::debugOut ( )
inline

Definition at line 153 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_.

154  {
155  std::cout << "vertex_t size: " << getSize() << std::endl;
156 
157  for ( unsigned int i =0; i < getSize(); ++ i)
158  {
159  std::cout << " z = " << z_[i] << " t = " << t_[i] << " pk = " << pk_[i] << std::endl;
160  }
161  }
void DAClusterizerInZT_vect::vertex_t::extractRaw ( )
inline

Definition at line 103 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::splitAll().

104  {
105  z_ = &z.front();
106  t_ = &t.front();
107  pk_ = &pk.front();
108 
109  ei_ = &ei.front();
110  sw_ = &sw.front();
111  swz_ = &swz.front();
112  swt_ = &swt.front();
113  se_ = &se.front();
114  swE_ = &swE.front();
115  ei_cache_ = &ei_cache.front();
116 
117  }
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 119 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::split().

120  {
121  z.insert(z.begin() + i, new_z);
122  t.insert(t.begin() + i, new_t);
123  pk.insert(pk.begin() + i, new_pk);
124 
125  ei_cache.insert(ei_cache.begin() + i, 0.0 );
126  ei.insert( ei.begin() + i, 0.0 );
127  sw.insert( sw.begin() + i, 0.0 );
128  swz.insert(swz.begin() + i, 0.0 );
129  swt.insert(swt.begin() + i, 0.0 );
130  se.insert( se.begin() + i, 0.0 );
131  swE.insert(swE.begin() + i, 0.0 );
132 
133  extractRaw();
134  }
void DAClusterizerInZT_vect::vertex_t::removeItem ( unsigned int  i)
inline

Definition at line 136 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(), and DAClusterizerInZT_vect::purge().

137  {
138  z.erase( z.begin() + i );
139  t.erase( t.begin() + i );
140  pk.erase( pk.begin() + i );
141 
142  ei_cache.erase( ei_cache.begin() + i);
143  ei.erase( ei.begin() + i);
144  sw.erase( sw.begin() + i);
145  swz.erase( swz.begin() + i);
146  swt.erase( swt.begin() + i);
147  se.erase(se.begin() + i);
148  swE.erase(swE.begin() + i);
149 
150  extractRaw();
151  }

Member Data Documentation

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

Definition at line 181 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::ei_

Definition at line 172 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 180 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::ei_cache_

Definition at line 171 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 165 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::splitAll().

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

Definition at line 185 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::se_

Definition at line 176 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 182 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::sw_
std::vector<double> DAClusterizerInZT_vect::vertex_t::swE

Definition at line 186 of file DAClusterizerInZT_vect.h.

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

Definition at line 184 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::swt_

Definition at line 175 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 183 of file DAClusterizerInZT_vect.h.

double* DAClusterizerInZT_vect::vertex_t::swz_

Definition at line 174 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::update().

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

Definition at line 164 of file DAClusterizerInZT_vect.h.

Referenced by DAClusterizerInZT_vect::splitAll().

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