CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Friends
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
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 102 of file big.h.

Member Typedef Documentation

◆ entbxIDX

Definition at line 117 of file big.h.

◆ entbyIDX

Definition at line 115 of file big.h.

◆ entfxIDX

Definition at line 121 of file big.h.

◆ entfyIDX

Definition at line 119 of file big.h.

Constructor & Destructor Documentation

◆ bigStore()

big::bigStore::bigStore ( )
inline

Definition at line 105 of file big.h.

105  {
106  entby.reserve(entbyIDX::SIZE);
107  entbx.reserve(entbxIDX::SIZE);
108  entfy.reserve(entfyIDX::SIZE);
109  entfx.reserve(entfxIDX::SIZE);
110  }

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

Member Function Documentation

◆ fill()

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

Definition at line 107 of file big.cc.

107  {
108  head.fill(atitle);
109  for (int i = 0; i < entbyIDX::LEN1; ++i) {
110  bigEntry b;
111  b.fill(i, 0.5 * i);
112  entby[entbyIDX::indexOf(i)] = b; //or use push_back as prefer
113  }
114  std::cout << "length of entbx 1 " << entbxIDX::LEN1 << std::endl;
115  std::cout << "length of entbx 2 " << entbxIDX::LEN2 << std::endl;
116  std::cout << "total size of entbx " << entbxIDX::SIZE << std::endl;
117  for (int i = 0; i < entbxIDX::LEN1; ++i) {
118  for (int j = 0; j < entbxIDX::LEN2; ++j) {
119  bigEntry c;
120  c.fill(i * j, 0.3 * j);
121  entbx[entbxIDX::indexOf(i, j)] = c; //or use push_back as prefer
122  }
123  }
124  for (int i = 0; i < entfyIDX::LEN1; ++i) {
125  bigEntry f;
126  f.fill(i, 0.4 * i);
127  entfy[entfyIDX::indexOf(i)] = f; //or use push_back as prefer
128  }
129  for (int i = 0; i < entfxIDX::LEN1; ++i) {
130  for (int j = 0; j < entfxIDX::LEN2; ++j) {
131  bigEntry f;
132  f.fill(i * j, 0.25 * j);
133  entfx[entfxIDX::indexOf(i, j)] = f; //or use push_back as prefer
134  }
135  }
136 }

References b, c, gather_cfg::cout, f, mps_fire::i, dqmiolumiharvest::j, and ntupleEnum::SIZE.

◆ serialize()

template<class Archive >
void big::bigStore::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 124 of file big.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 124 of file big.h.

Member Data Documentation

◆ entbx

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

Definition at line 118 of file big.h.

Referenced by bigStore().

◆ entby

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

Definition at line 116 of file big.h.

Referenced by bigStore().

◆ entfx

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

Definition at line 122 of file big.h.

Referenced by bigStore().

◆ entfy

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

Definition at line 120 of file big.h.

Referenced by bigStore().

◆ head

bigHeader big::bigStore::head

Definition at line 114 of file big.h.

big::bigStore::entfx
std::vector< bigEntry > entfx
Definition: big.h:122
big::bigStore::head
bigHeader head
Definition: big.h:114
mps_fire.i
i
Definition: mps_fire.py:428
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
gather_cfg.cout
cout
Definition: gather_cfg.py:144
TensorIndex::LEN2
Definition: TensorIndex.h:20
big::bigStore::entbx
std::vector< bigEntry > entbx
Definition: big.h:118
big::bigStore::entfy
std::vector< bigEntry > entfy
Definition: big.h:120
b
double b
Definition: hdecay.h:118
TensorIndex::LEN1
Definition: TensorIndex.h:19
big::bigHeader::fill
void fill(const std::string &atitle)
Definition: big.cc:90
TensorIndex::indexOf
static int indexOf(const int i)
Definition: TensorIndex.h:24
big::bigStore::entby
std::vector< bigEntry > entby
Definition: big.h:116
TensorIndex::SIZE
Definition: TensorIndex.h:18
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66