CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes
big::bigStore Class Reference

#include <big.h>

Public Types

typedef TensorIndex< 5, 9 > entbxIDX
 
typedef TensorIndex< 60 > entbyIDX
 
typedef TensorIndex< 2, 9 > entfxIDX
 
typedef TensorIndex< 5 > entfyIDX
 

Public Member Functions

 bigStore ()
 
void fill (const std::string &atitle)
 

Public Attributes

std::vector< bigEntryentbx
 
std::vector< bigEntryentby
 
std::vector< bigEntryentfx
 
std::vector< bigEntryentfy
 
bigHeader head
 

Detailed Description

Definition at line 97 of file big.h.

Member Typedef Documentation

Definition at line 112 of file big.h.

Definition at line 110 of file big.h.

Definition at line 116 of file big.h.

Definition at line 114 of file big.h.

Constructor & Destructor Documentation

big::bigStore::bigStore ( )
inline

Definition at line 100 of file big.h.

References entbx, entby, entfx, entfy, and TensorIndex< d1, d2, d3, d4 >::SIZE.

100  {
101  entby.reserve(entbyIDX::SIZE);
102  entbx.reserve(entbxIDX::SIZE);
103  entfy.reserve(entfyIDX::SIZE);
104  entfx.reserve(entfxIDX::SIZE);
105  }
std::vector< bigEntry > entfx
Definition: big.h:117
std::vector< bigEntry > entfy
Definition: big.h:115
std::vector< bigEntry > entbx
Definition: big.h:113
std::vector< bigEntry > entby
Definition: big.h:111

Member Function Documentation

void big::bigStore::fill ( const std::string &  atitle)

Definition at line 97 of file big.cc.

References b, trackerHits::c, gather_cfg::cout, f, big::bigEntry::fill(), i, and j.

Referenced by big::fill().

97  {
98  head.fill(atitle);
99  for (int i=0; i<entbyIDX::LEN1; ++i){
100  bigEntry b;
101  b.fill(i,0.5*i);
102  entby[entbyIDX::indexOf(i)]=b;//or use push_back as prefer
103  }
104  std::cout<<"length of entbx 1 "<<entbxIDX::LEN1<<std::endl;
105  std::cout<<"length of entbx 2 "<<entbxIDX::LEN2<<std::endl;
106  std::cout<<"total size of entbx "<<entbxIDX::SIZE<<std::endl;
107  for (int i=0; i<entbxIDX::LEN1; ++i){
108  for (int j=0; j<entbxIDX::LEN2; ++j){
109  bigEntry c;
110  c.fill(i*j,0.3*j);
111  entbx[entbxIDX::indexOf(i,j)]=c;//or use push_back as prefer
112  }
113  }
114  for (int i=0; i<entfyIDX::LEN1; ++i){
115  bigEntry f;
116  f.fill(i,0.4*i);
117  entfy[entfyIDX::indexOf(i)]=f;//or use push_back as prefer
118  }
119  for (int i=0; i<entfxIDX::LEN1; ++i){
120  for (int j=0; j<entfxIDX::LEN2; ++j){
121  bigEntry f;
122  f.fill(i*j,0.25*j);
123  entfx[entfxIDX::indexOf(i,j)]=f;//or use push_back as prefer
124  }
125  }
126 }
int i
Definition: DBlmapReader.cc:9
std::vector< bigEntry > entfx
Definition: big.h:117
void fill(const std::string &atitle)
Definition: big.cc:79
std::vector< bigEntry > entfy
Definition: big.h:115
std::vector< bigEntry > entbx
Definition: big.h:113
int j
Definition: DBlmapReader.cc:9
double f[11][100]
bigHeader head
Definition: big.h:109
double b
Definition: hdecay.h:120
tuple cout
Definition: gather_cfg.py:121
static int indexOf(const int i)
Definition: TensorIndex.h:24
std::vector< bigEntry > entby
Definition: big.h:111

Member Data Documentation

std::vector<bigEntry> big::bigStore::entbx

Definition at line 113 of file big.h.

Referenced by bigStore().

std::vector<bigEntry> big::bigStore::entby

Definition at line 111 of file big.h.

Referenced by bigStore().

std::vector<bigEntry> big::bigStore::entfx

Definition at line 117 of file big.h.

Referenced by bigStore().

std::vector<bigEntry> big::bigStore::entfy

Definition at line 115 of file big.h.

Referenced by bigStore().

bigHeader big::bigStore::head

Definition at line 109 of file big.h.