CMS 3D CMS Logo

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
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
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 }
const double beta
float alpha
Definition: AMPTWrapper.h:95
storeVector sVector_
Definition: big.h:135
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
uint32_t ID
Definition: Definitions.h:26
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
headVector thVector_
Definition: big.h:134
double f[11][100]
inline class bigEntry
Definition: big.h:20
void fill(const std::string &atitle)
Definition: big.cc:97
int k[5][pyjets_maxn]
void fill(int runnum, float seed)
Definition: big.cc:26
double b
Definition: hdecay.h:120
entryVector tVector_
Definition: big.h:133