CMS 3D CMS Logo

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