CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
big.h
Go to the documentation of this file.
1 #ifndef big_h
2 #define big_h 1
3 #include <vector>
4 #include <string>
6 class big{
7  public:
9  //constructor
10  tVector_.reserve(1000);
11  thVector_.reserve(1000);
12  sVector_.reserve(1000);
13  }
14  void fill(size_t tVectorSize,size_t thVectorSize,size_t sVectorSize,
15  const std::string& atitle);
16 
18  class bigEntry{
19  public:
20  //constructor
22  par.reserve(parIDX::SIZE);
23  ytemp.reserve(ytempIDX::SIZE);
24  xtemp.reserve(xtempIDX::SIZE);
25  avg.reserve(avgIDX::SIZE);
26  aqfl.reserve(aqflIDX::SIZE);
27  chi2.reserve(chi2IDX::SIZE);
28  spare.reserve(spareIDX::SIZE);
29  }
30  void fill(int runnum,float seed);
31  public:
32  int runnum;
33  float alpha;
34  float cotalpha;
35  float beta;
36  float cotbeta ;
37  float costrk[3];
38  float qavg;
39  float symax;
40  float dyone;
41  float syone;
42  float sxmax;
43  float dxone;
44  float sxone;
45  float dytwo;
46  float sytwo;
47  float dxtwo;
48  float sxtwo;
49  float qmin;
50  //projected pixel uncertainty parameterization, first dimension x,y;
52  std::vector<float> par;
53  //templates for y-reconstruction (binned over 1 central pixel)
55  std::vector<float> ytemp;
56  //templates for x-reconstruction (binned over 1 central pixel)
58  std::vector<float> xtemp;
59  //average parameters (binned in 4 charge bins ), first dimention x,y; second dimention bias,rms,g0,sigma;
61  std::vector<float> avg;
62  //Aqfl-parameterized x,y-correction (in 4 charge bins), first dimension x,y
64  std::vector<float> aqfl;
65  //chi^2 (in 4 charge bins), first dimension x,y; second dimension average, minimum;
67  std::vector<float> chi2;
68  //spare entries, first dimension x,y
70  std::vector<float> spare;
71  };//inline class bigEntry
72 
73  //inline class bigHeader
74  class bigHeader{
75  public:
76  bigHeader():title(""){}
77  void fill (const std::string& atitle);
79  std::string title;
80  int ID;
81  int NBy;
82  int NByx;
83  int NBxx;
84  int NFy;
85  int NFyx;
86  int NFxx;
87  float vbias;
88  float temperature;
89  float fluence;
90  float qscale;
91  float s50;
93 
94  };//end inline class bigHeader
95 
96  //inline class bigStore
97  class bigStore{
98  public:
99  //constructor
101  entby.reserve(entbyIDX::SIZE);
102  entbx.reserve(entbxIDX::SIZE);
103  entfy.reserve(entfyIDX::SIZE);
104  entfx.reserve(entfxIDX::SIZE);
105  }
106  //dummy filler
107  void fill( const std::string& atitle );
108  //data members
111  std::vector<bigEntry> entby;
113  std::vector<bigEntry> entbx;
115  std::vector<bigEntry> entfy;
117  std::vector<bigEntry> entfx;
118  };//end inline class bigStore
119 
120 
121  typedef std::vector<bigEntry> entryVector;
122  typedef std::vector<bigHeader> headVector;
123  typedef std::vector<bigStore> storeVector;
124  private:
129  int index_id;
130  float cota_current;
131  float cotb_current;
132  float abs_cotb;
134 };//end big
135 #endif
std::vector< float > ytemp
Definition: big.h:55
float dytwo
Definition: big.h:45
storeVector sVector_
Definition: big.h:127
int templ_version
Version number of the template to ensure code compatibility.
Definition: big.h:92
float symax
Definition: big.h:39
TensorIndex< 9, 7 > xtempIDX
Definition: big.h:57
TensorIndex< 2, 2, 4 > chi2IDX
Definition: big.h:66
std::vector< bigEntry > entfx
Definition: big.h:117
float qmin
Definition: big.h:49
float costrk[3]
Definition: big.h:37
std::vector< float > chi2
Definition: big.h:67
int NBy
number of Barrel y entries
Definition: big.h:81
int NFyx
number of FPix y-slices of x entries
Definition: big.h:85
int NBxx
number of Barrel x entries in each slice
Definition: big.h:83
float fluence
radiation fluence in n_eq/cm^2
Definition: big.h:89
float cotalpha
Definition: big.h:34
TensorIndex< 2, 9 > entfxIDX
Definition: big.h:116
TensorIndex< 2, 4, 4 > avgIDX
Definition: big.h:60
float sxone
Definition: big.h:44
std::vector< float > avg
Definition: big.h:61
std::vector< float > xtemp
Definition: big.h:58
big()
Definition: big.h:8
float s50
1/2 of the readout threshold in ADC units
Definition: big.h:91
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
std::vector< bigEntry > entryVector
Definition: big.h:121
std::vector< bigHeader > headVector
Definition: big.h:122
void fill(const std::string &atitle)
Definition: big.cc:79
float sytwo
Definition: big.h:46
std::vector< bigEntry > entfy
Definition: big.h:115
float temperature
detector temperature in deg K
Definition: big.h:88
float vbias
detector bias potential in Volts
Definition: big.h:87
std::vector< float > par
Definition: big.h:52
std::vector< bigEntry > entbx
Definition: big.h:113
headVector thVector_
Definition: big.h:126
int index_id
current index
Definition: big.h:129
int NByx
number of Barrel y-slices of x entries
Definition: big.h:82
TensorIndex< 9, 21 > ytempIDX
Definition: big.h:54
float cotb_current
current cot beta
Definition: big.h:131
bigStore()
Definition: big.h:100
bigHeader()
Definition: big.h:76
int id_current
current id
Definition: big.h:128
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
std::string title
data members
Definition: big.h:79
float dxtwo
Definition: big.h:47
bool fpix_current
current pix detector (false for BPix, true for FPix)
Definition: big.h:133
bigHeader head
Definition: big.h:109
float abs_cotb
absolute value of cot beta
Definition: big.h:132
std::vector< bigStore > storeVector
Definition: big.h:123
TensorIndex< 2, 4, 6 > aqflIDX
Definition: big.h:63
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
entryVector tVector_
Definition: big.h:125
float dyone
Definition: big.h:40
TensorIndex< 2, 2, 5 > parIDX
Definition: big.h:51
bigEntry()
Definition: big.h:21
float cota_current
current cot alpha
Definition: big.h:130
Definition: big.h:6
float sxmax
Definition: big.h:42
float sxtwo
Definition: big.h:48
TensorIndex< 2, 10 > spareIDX
Definition: big.h:69
TensorIndex< 5, 9 > entbxIDX
Definition: big.h:112
int NFxx
number of FPix x entries in each slice
Definition: big.h:86
float syone
Definition: big.h:41
int runnum
Definition: big.h:32
float qscale
Charge scaling to match cmssw and pixelav.
Definition: big.h:90
TensorIndex< 60 > entbyIDX
Definition: big.h:110
std::vector< bigEntry > entby
Definition: big.h:111
int NFy
number of FPix y entries
Definition: big.h:84
int ID
template ID number
Definition: big.h:80
float dxone
Definition: big.h:43
TensorIndex< 5 > entfyIDX
Definition: big.h:114