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
26 big::bigEntry::fill(int r,float seed){
27  runnum=r; alpha=seed; cotalpha=seed; beta=seed; cotbeta=seed;
28  costrk[0]=seed*0.1;costrk[1]=seed*0.2;costrk[2]=seed*0.3;
29  qavg=seed ; symax=seed ; dyone=seed; syone=seed;sxmax=seed;
30  dxone=seed;sxone=seed;dytwo=seed;sytwo=seed;dxtwo=seed;sxtwo=seed;
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){
35  par[parIDX::indexOf(i,j,k)]=seed;
36  }
37  }
38  }
39  for (int i=0; i<ytempIDX::LEN1; ++i){
40  for (int j=0; j<ytempIDX::LEN2; ++j){
41  ytemp[ytempIDX::indexOf(i,j)]=seed;
42  }
43  }
44  for (int i=0; i<xtempIDX::LEN1; ++i){
45  for (int j=0; j<xtempIDX::LEN2; ++j){
46  xtemp[xtempIDX::indexOf(i,j)]=seed;
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){
52  avg[avgIDX::indexOf(i,j,k)]=seed;
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){
59  aqfl[aqflIDX::indexOf(i,j,k)]=seed;
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){
66  chi2[chi2IDX::indexOf(i,j,k)]=seed;
67  }
68  }
69  }
70  for (int i=0; i<spareIDX::LEN1; ++i){
71  for (int j=0; j<spareIDX::LEN2; ++j){
72  spare[spareIDX::indexOf(i,j)]=seed;
73  }
74  }
75 }
76 
77 //fill bigHeader
78 void
79 big::bigHeader::fill( const std::string& atitle){
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
97 big::bigStore::fill( const std::string& atitle ){
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:55
int i
Definition: DBlmapReader.cc:9
float dytwo
Definition: big.h:45
storeVector sVector_
Definition: big.h:127
float symax
Definition: big.h:39
uint32_t ID
Definition: Definitions.h:26
float qmin
Definition: big.h:49
float costrk[3]
Definition: big.h:37
std::vector< float > chi2
Definition: big.h:67
float cotalpha
Definition: big.h:34
float sxone
Definition: big.h:44
std::vector< float > avg
Definition: big.h:61
std::vector< float > xtemp
Definition: big.h:58
float cotbeta
Definition: big.h:36
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:46
std::vector< float > par
Definition: big.h:52
headVector thVector_
Definition: big.h:126
int j
Definition: DBlmapReader.cc:9
double f[11][100]
inline class bigEntry
Definition: big.h:18
void fill(const std::string &atitle)
Definition: big.cc:97
float alpha
Definition: big.h:33
std::vector< float > spare
Definition: big.h:70
float dxtwo
Definition: big.h:47
int k[5][pyjets_maxn]
float beta
Definition: big.h:35
void fill(int runnum, float seed)
Definition: big.cc:26
float qavg
Definition: big.h:38
std::vector< float > aqfl
Definition: big.h:64
double b
Definition: hdecay.h:120
entryVector tVector_
Definition: big.h:125
float dyone
Definition: big.h:40
float sxmax
Definition: big.h:42
float sxtwo
Definition: big.h:48
tuple cout
Definition: gather_cfg.py:41
string s
Definition: asciidump.py:422
static int indexOf(const int i)
Definition: TensorIndex.h:24
float syone
Definition: big.h:41
int runnum
Definition: big.h:32
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:43