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_z, double new_pk)
 
void DebugOut ()
 
void ExtractRaw ()
 
unsigned int GetSize () const
 
void InsertItem (unsigned int i, double new_z, double new_pk)
 
void RemoveItem (unsigned int i)
 

Public Attributes

double *__restrict__ _ei
 
double *__restrict__ _ei_cache
 
double *__restrict__ _pk
 
double *__restrict__ _se
 
double *__restrict__ _sw
 
double *__restrict__ _swE
 
double *__restrict__ _swz
 
double *__restrict__ _z
 
std::vector< double > ei
 
std::vector< double > ei_cache
 
std::vector< double > pk
 
std::vector< double > se
 
std::vector< double > sw
 
std::vector< double > swE
 
std::vector< double > swz
 
std::vector< double > z
 

Detailed Description

Definition at line 68 of file DAClusterizerInZ_vect.h.

Member Function Documentation

void DAClusterizerInZ_vect::vertex_t::AddItem ( double  new_z,
double  new_pk 
)
inline

Definition at line 86 of file DAClusterizerInZ_vect.h.

References DAClusterizerInZ_vect::track_t::ExtractRaw().

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

87  {
88  z.push_back( new_z);
89  pk.push_back( new_pk);
90 
91  ei_cache.push_back( 0.0 );
92  ei.push_back( 0.0 );
93  sw.push_back( 0.0 );
94  swz.push_back( 0.0);
95  se.push_back( 0.0);
96  swE.push_back( 0.0);
97 
98  ExtractRaw();
99  }
void DAClusterizerInZ_vect::vertex_t::DebugOut ( )
inline

Definition at line 131 of file DAClusterizerInZ_vect.h.

References DAClusterizerInZ_vect::track_t::_z, gather_cfg::cout, DAClusterizerInZ_vect::track_t::GetSize(), and mps_fire::i.

Referenced by DAClusterizerInZ_vect::splitAll().

132  {
133  std::cout << "vertex_t size: " << GetSize() << std::endl;
134 
135  for ( unsigned int i =0; i < GetSize(); ++ i)
136  {
137  std::cout << " z = " << _z[i] << " pk = " << _pk[i] << std::endl;
138  }
139  }
void DAClusterizerInZ_vect::vertex_t::ExtractRaw ( )
inline

Definition at line 142 of file DAClusterizerInZ_vect.h.

References DAClusterizerInZ_vect::track_t::_z.

Referenced by DAClusterizerInZ_vect::splitAll().

143  {
144  _z = &z.front();
145  _pk = &pk.front();
146 
147  _ei = &ei.front();
148  _sw = &sw.front();
149  _swz = &swz.front();
150  _se = &se.front();
151  _swE = &swE.front();
152  _ei_cache = &ei_cache.front();
153 
154  }
unsigned int DAClusterizerInZ_vect::vertex_t::GetSize ( ) const
inline
void DAClusterizerInZ_vect::vertex_t::InsertItem ( unsigned int  i,
double  new_z,
double  new_pk 
)
inline

Definition at line 101 of file DAClusterizerInZ_vect.h.

References DAClusterizerInZ_vect::track_t::ExtractRaw(), and mps_fire::i.

Referenced by DAClusterizerInZ_vect::split().

102  {
103  z.insert(z.begin() + i, new_z);
104  pk.insert(pk.begin() + i, new_pk);
105 
106  ei_cache.insert(ei_cache.begin() + i, 0.0 );
107  ei.insert( ei.begin() + i, 0.0 );
108  sw.insert( sw.begin() + i, 0.0 );
109  swz.insert(swz.begin() + i, 0.0 );
110  se.insert( se.begin() + i, 0.0 );
111  swE.insert(swE.begin() + i, 0.0 );
112 
113  ExtractRaw();
114  }
void DAClusterizerInZ_vect::vertex_t::RemoveItem ( unsigned int  i)
inline

Definition at line 116 of file DAClusterizerInZ_vect.h.

References DAClusterizerInZ_vect::track_t::ExtractRaw(), and mps_fire::i.

Referenced by DAClusterizerInZ_vect::merge(), and DAClusterizerInZ_vect::purge().

117  {
118  z.erase( z.begin() + i );
119  pk.erase( pk.begin() + i );
120 
121  ei_cache.erase( ei_cache.begin() + i);
122  ei.erase( ei.begin() + i);
123  sw.erase( sw.begin() + i);
124  swz.erase( swz.begin() + i);
125  se.erase(se.begin() + i);
126  swE.erase(swE.begin() + i);
127 
128  ExtractRaw();
129  }

Member Data Documentation

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_ei

Definition at line 160 of file DAClusterizerInZ_vect.h.

Referenced by DAClusterizerInZ_vect::update().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_ei_cache

Definition at line 159 of file DAClusterizerInZ_vect.h.

Referenced by DAClusterizerInZ_vect::update().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_pk
double* __restrict__ DAClusterizerInZ_vect::vertex_t::_se

Definition at line 163 of file DAClusterizerInZ_vect.h.

Referenced by DAClusterizerInZ_vect::update().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_sw
double* __restrict__ DAClusterizerInZ_vect::vertex_t::_swE
double* __restrict__ DAClusterizerInZ_vect::vertex_t::_swz

Definition at line 162 of file DAClusterizerInZ_vect.h.

Referenced by DAClusterizerInZ_vect::update().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_z
std::vector<double> DAClusterizerInZ_vect::vertex_t::ei

Definition at line 74 of file DAClusterizerInZ_vect.h.

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

Definition at line 73 of file DAClusterizerInZ_vect.h.

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

Definition at line 70 of file DAClusterizerInZ_vect.h.

Referenced by DAClusterizerInZ_vect::splitAll().

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

Definition at line 77 of file DAClusterizerInZ_vect.h.

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

Definition at line 75 of file DAClusterizerInZ_vect.h.

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

Definition at line 78 of file DAClusterizerInZ_vect.h.

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

Definition at line 76 of file DAClusterizerInZ_vect.h.

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