CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes

big::bigStore Class Reference

#include <big.h>

List of all members.

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.

              {
      entby.reserve(entbyIDX::SIZE);
      entbx.reserve(entbxIDX::SIZE);
      entfy.reserve(entfyIDX::SIZE);
      entfx.reserve(entfxIDX::SIZE);
    }

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().

                                          {
  head.fill(atitle);
  for (int i=0; i<entbyIDX::LEN1; ++i){
    bigEntry b;
    b.fill(i,0.5*i);
    entby[entbyIDX::indexOf(i)]=b;//or use push_back as prefer
  }
  std::cout<<"length of entbx 1 "<<entbxIDX::LEN1<<std::endl;
  std::cout<<"length of entbx 2 "<<entbxIDX::LEN2<<std::endl;
  std::cout<<"total size of entbx "<<entbxIDX::SIZE<<std::endl;
  for (int i=0; i<entbxIDX::LEN1; ++i){
    for (int j=0; j<entbxIDX::LEN2; ++j){
      bigEntry c;
      c.fill(i*j,0.3*j);
      entbx[entbxIDX::indexOf(i,j)]=c;//or use push_back as prefer
    }
  }
  for (int i=0; i<entfyIDX::LEN1; ++i){
    bigEntry f;
    f.fill(i,0.4*i);
    entfy[entfyIDX::indexOf(i)]=f;//or use push_back as prefer
  }
  for (int i=0; i<entfxIDX::LEN1; ++i){
    for (int j=0; j<entfxIDX::LEN2; ++j){
      bigEntry f;
      f.fill(i*j,0.25*j);
      entfx[entfxIDX::indexOf(i,j)]=f;//or use push_back as prefer
    }
  }
}

Member Data Documentation

Definition at line 113 of file big.h.

Referenced by bigStore().

Definition at line 111 of file big.h.

Referenced by bigStore().

Definition at line 117 of file big.h.

Referenced by bigStore().

Definition at line 115 of file big.h.

Referenced by bigStore().

Definition at line 109 of file big.h.