CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
big.cc
Go to the documentation of this file.
2 #include <iostream>
3 //fill big
4 void
5 big::fill( size_t tVectorSize,size_t thVectorSize,size_t sVectorSize,
6  const std::string& atitle){
7  for(size_t i=0;i<tVectorSize;++i){
9  b.fill(i,1.0);
10  tVector_.push_back(b);
11  }
12  for(size_t i=0;i<thVectorSize;++i){
14  h.fill(atitle);
15  thVector_.push_back(h);
16  }
17  for(size_t i=0;i<sVectorSize;++i){
19  s.fill(atitle);
20  sVector_.push_back(s);
21  }
22 }
23 
24 //fill bigEntry
25 void
28  costrk[0]=seed*0.1;costrk[1]=seed*0.2;costrk[2]=seed*0.3;
31  qmin=seed;
32  for (int i=0; i<parIDX::LEN1; ++i){
33  for (int j=0; j<parIDX::LEN2; ++j){
34  for (int k=0; k<parIDX::LEN3; ++k){
36  }
37  }
38  }
39  for (int i=0; i<ytempIDX::LEN1; ++i){
40  for (int j=0; j<ytempIDX::LEN2; ++j){
42  }
43  }
44  for (int i=0; i<xtempIDX::LEN1; ++i){
45  for (int j=0; j<xtempIDX::LEN2; ++j){
47  }
48  }
49  for (int i=0; i<avgIDX::LEN1; ++i){
50  for (int j=0; j<avgIDX::LEN2; ++j){
51  for (int k=0; k<avgIDX::LEN3; ++k){
53  }
54  }
55  }
56  for (int i=0; i<aqflIDX::LEN1; ++i){
57  for (int j=0; j<aqflIDX::LEN2; ++j){
58  for (int k=0; k<aqflIDX::LEN3; ++k){
60  }
61  }
62  }
63  for (int i=0; i<chi2IDX::LEN1; ++i){
64  for (int j=0; j<chi2IDX::LEN2; ++j){
65  for (int k=0; k<chi2IDX::LEN3; ++k){
67  }
68  }
69  }
70  for (int i=0; i<spareIDX::LEN1; ++i){
71  for (int j=0; j<spareIDX::LEN2; ++j){
73  }
74  }
75 }
76 
77 //fill bigHeader
78 void
80  title=std::string("atitle");
81  ID=0;
82  NBy=1;
83  NByx=2;
84  NBxx=3;
85  NFy=4;
86  NFyx=5;
87  NFxx=6;
88  vbias=0.1;
89  temperature=0.2;
90  fluence=0.3;
91  qscale=0.4;
92  s50=0.5;
93  templ_version=1;
94 }
95 //fill bigStore
96 void
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 }
std::vector< float > ytemp
Definition: big.h:57
int i
Definition: DBlmapReader.cc:9
float dytwo
Definition: big.h:47
storeVector sVector_
Definition: big.h:135
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
float symax
Definition: big.h:41
uint32_t ID
Definition: Definitions.h:26
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:5
void fill(const std::string &atitle)
Definition: big.cc:79
float sytwo
Definition: big.h:48
std::vector< float > par
Definition: big.h:54
headVector thVector_
Definition: big.h:134
int j
Definition: DBlmapReader.cc:9
double f[11][100]
inline class bigEntry
Definition: big.h:20
void fill(const std::string &atitle)
Definition: big.cc:97
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:26
float qavg
Definition: big.h:40
std::vector< float > aqfl
Definition: big.h:66
double b
Definition: hdecay.h:120
entryVector tVector_
Definition: big.h:133
float dyone
Definition: big.h:42
float sxmax
Definition: big.h:44
float sxtwo
Definition: big.h:50
tuple cout
Definition: gather_cfg.py:145
static int indexOf(const int i)
Definition: TensorIndex.h:24
float syone
Definition: big.h:43
int runnum
Definition: big.h:34
float dxone
Definition: big.h:45