CMS 3D CMS Logo

big.cc
Go to the documentation of this file.
2 #include <iostream>
3 //fill big
4 void big::fill(size_t tVectorSize, size_t thVectorSize, size_t sVectorSize, const std::string& atitle) {
5  for (size_t i = 0; i < tVectorSize; ++i) {
7  b.fill(i, 1.0);
8  tVector_.push_back(b);
9  }
10  for (size_t i = 0; i < thVectorSize; ++i) {
12  h.fill(atitle);
13  thVector_.push_back(h);
14  }
15  for (size_t i = 0; i < sVectorSize; ++i) {
17  s.fill(atitle);
18  sVector_.push_back(s);
19  }
20 }
21 
22 //fill bigEntry
23 void big::bigEntry::fill(int r, float seed) {
24  runnum = r;
25  alpha = seed;
26  cotalpha = seed;
27  beta = seed;
28  cotbeta = seed;
29  costrk[0] = seed * 0.1;
30  costrk[1] = seed * 0.2;
31  costrk[2] = seed * 0.3;
32  qavg = seed;
33  symax = seed;
34  dyone = seed;
35  syone = seed;
36  sxmax = seed;
37  dxone = seed;
38  sxone = seed;
39  dytwo = seed;
40  sytwo = seed;
41  dxtwo = seed;
42  sxtwo = seed;
43  qmin = seed;
44  for (int i = 0; i < parIDX::LEN1; ++i) {
45  for (int j = 0; j < parIDX::LEN2; ++j) {
46  for (int k = 0; k < parIDX::LEN3; ++k) {
47  par[parIDX::indexOf(i, j, k)] = seed;
48  }
49  }
50  }
51  for (int i = 0; i < ytempIDX::LEN1; ++i) {
52  for (int j = 0; j < ytempIDX::LEN2; ++j) {
54  }
55  }
56  for (int i = 0; i < xtempIDX::LEN1; ++i) {
57  for (int j = 0; j < xtempIDX::LEN2; ++j) {
59  }
60  }
61  for (int i = 0; i < avgIDX::LEN1; ++i) {
62  for (int j = 0; j < avgIDX::LEN2; ++j) {
63  for (int k = 0; k < avgIDX::LEN3; ++k) {
64  avg[avgIDX::indexOf(i, j, k)] = seed;
65  }
66  }
67  }
68  for (int i = 0; i < aqflIDX::LEN1; ++i) {
69  for (int j = 0; j < aqflIDX::LEN2; ++j) {
70  for (int k = 0; k < aqflIDX::LEN3; ++k) {
71  aqfl[aqflIDX::indexOf(i, j, k)] = seed;
72  }
73  }
74  }
75  for (int i = 0; i < chi2IDX::LEN1; ++i) {
76  for (int j = 0; j < chi2IDX::LEN2; ++j) {
77  for (int k = 0; k < chi2IDX::LEN3; ++k) {
78  chi2[chi2IDX::indexOf(i, j, k)] = seed;
79  }
80  }
81  }
82  for (int i = 0; i < spareIDX::LEN1; ++i) {
83  for (int j = 0; j < spareIDX::LEN2; ++j) {
85  }
86  }
87 }
88 
89 //fill bigHeader
90 void big::bigHeader::fill(const std::string& atitle) {
91  title = std::string("atitle");
92  ID = 0;
93  NBy = 1;
94  NByx = 2;
95  NBxx = 3;
96  NFy = 4;
97  NFyx = 5;
98  NFxx = 6;
99  vbias = 0.1;
100  temperature = 0.2;
101  fluence = 0.3;
102  qscale = 0.4;
103  s50 = 0.5;
104  templ_version = 1;
105 }
106 //fill bigStore
107 void big::bigStore::fill(const std::string& atitle) {
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 }
std::vector< float > ytemp
Definition: big.h:57
float dytwo
Definition: big.h:47
storeVector sVector_
Definition: big.h:134
float symax
Definition: big.h:41
uint32_t ID
Definition: Definitions.h:24
float qmin
Definition: big.h:51
float costrk[3]
Definition: big.h:39
std::vector< float > chi2
Definition: big.h:69
float cotalpha
Definition: big.h:36
float sxone
Definition: big.h:46
std::vector< float > avg
Definition: big.h:63
std::vector< float > xtemp
Definition: big.h:60
float cotbeta
Definition: big.h:38
void fill(size_t tVectorSize, size_t thVectorSize, size_t sVectorSize, const std::string &atitle)
Definition: big.cc:4
void fill(const std::string &atitle)
Definition: big.cc:90
float sytwo
Definition: big.h:48
std::vector< float > par
Definition: big.h:54
headVector thVector_
Definition: big.h:133
double f[11][100]
inline class bigEntry
Definition: big.h:19
void fill(const std::string &atitle)
Definition: big.cc:107
float alpha
Definition: big.h:35
std::vector< float > spare
Definition: big.h:72
float dxtwo
Definition: big.h:49
float beta
Definition: big.h:37
void fill(int runnum, float seed)
Definition: big.cc:23
float qavg
Definition: big.h:40
std::vector< float > aqfl
Definition: big.h:66
double b
Definition: hdecay.h:118
entryVector tVector_
Definition: big.h:132
float dyone
Definition: big.h:42
float sxmax
Definition: big.h:44
float sxtwo
Definition: big.h:50
static int indexOf(const int i)
Definition: TensorIndex.h:24
float syone
Definition: big.h:43
int runnum
Definition: big.h:34
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
float dxone
Definition: big.h:45