CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ei, ei_cache, ExtractRaw(), pk, se, sw, swE, swz, and z.

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 _pk, _z, gather_cfg::cout, GetSize(), and i.

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  }
int i
Definition: DBlmapReader.cc:9
tuple cout
Definition: gather_cfg.py:145
void DAClusterizerInZ_vect::vertex_t::ExtractRaw ( )
inline

Definition at line 142 of file DAClusterizerInZ_vect.h.

References _ei, _ei_cache, _pk, _se, _sw, _swE, _swz, _z, ei, ei_cache, pk, se, sw, swE, swz, and z.

Referenced by AddItem(), InsertItem(), and RemoveItem().

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

Definition at line 81 of file DAClusterizerInZ_vect.h.

References z.

Referenced by DebugOut().

82  {
83  return z.size();
84  }
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 ei, ei_cache, ExtractRaw(), i, pk, se, sw, swE, swz, and z.

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  }
int i
Definition: DBlmapReader.cc:9
void DAClusterizerInZ_vect::vertex_t::RemoveItem ( unsigned int  i)
inline

Definition at line 116 of file DAClusterizerInZ_vect.h.

References ei, ei_cache, ExtractRaw(), i, pk, se, sw, swE, swz, and z.

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  }
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_ei

Definition at line 160 of file DAClusterizerInZ_vect.h.

Referenced by ExtractRaw().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_ei_cache

Definition at line 159 of file DAClusterizerInZ_vect.h.

Referenced by ExtractRaw().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_pk

Definition at line 157 of file DAClusterizerInZ_vect.h.

Referenced by DebugOut(), and ExtractRaw().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_se

Definition at line 163 of file DAClusterizerInZ_vect.h.

Referenced by ExtractRaw().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_sw

Definition at line 161 of file DAClusterizerInZ_vect.h.

Referenced by ExtractRaw().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_swE

Definition at line 164 of file DAClusterizerInZ_vect.h.

Referenced by ExtractRaw().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_swz

Definition at line 162 of file DAClusterizerInZ_vect.h.

Referenced by ExtractRaw().

double* __restrict__ DAClusterizerInZ_vect::vertex_t::_z

Definition at line 156 of file DAClusterizerInZ_vect.h.

Referenced by DebugOut(), and ExtractRaw().

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

Definition at line 74 of file DAClusterizerInZ_vect.h.

Referenced by AddItem(), ExtractRaw(), InsertItem(), and RemoveItem().

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

Definition at line 73 of file DAClusterizerInZ_vect.h.

Referenced by AddItem(), ExtractRaw(), InsertItem(), and RemoveItem().

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

Definition at line 70 of file DAClusterizerInZ_vect.h.

Referenced by AddItem(), ExtractRaw(), InsertItem(), and RemoveItem().

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

Definition at line 77 of file DAClusterizerInZ_vect.h.

Referenced by AddItem(), ExtractRaw(), InsertItem(), and RemoveItem().

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

Definition at line 75 of file DAClusterizerInZ_vect.h.

Referenced by AddItem(), ExtractRaw(), InsertItem(), and RemoveItem().

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

Definition at line 78 of file DAClusterizerInZ_vect.h.

Referenced by AddItem(), ExtractRaw(), InsertItem(), and RemoveItem().

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

Definition at line 76 of file DAClusterizerInZ_vect.h.

Referenced by AddItem(), ExtractRaw(), InsertItem(), and RemoveItem().

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

Definition at line 69 of file DAClusterizerInZ_vect.h.

Referenced by AddItem(), ExtractRaw(), GetSize(), InsertItem(), and RemoveItem().