test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhysicsToBitConverter.h
Go to the documentation of this file.
1 #ifndef _PHYSICSTOBITCONVERTER_h
2 #define _PHYSICSTOBITCONVERTER_h
3 
4 #include <stdio.h>
5 #include <string>
6 #include <stdlib.h>
7 #include <iostream>
8 #include <fstream>
9 #include <stdexcept>
10 #include <stdint.h>
11 #include <iomanip>
12 #include <sstream>
13 #include <vector>
14 #include <array>
15 #include <bitset>
16 #include <stdint.h>
17 #include <math.h>
18 #include "rctDataBase.h"
19 
20 namespace l1t{
22 
23 
24  int words32bitLink[2][6]; //[link][word]
25 
26  int bitsLink[2][192];
28 
29 
30  public:
31 
36 
39 
40  void Convert();
41  void Extract32bitwords();
42 
43  int GetObject(rctDataBase::rctObjectType t, int firstindex, int secondindex = -1);
44  void SetObject(rctDataBase::rctObjectType t, int value, int firstindex, int secondindex = -1);
45 
46  int ReadBitInInt(int bit,int value);
47  int BuildDecimalValue(int firstbit,int bitlength,int linkid);
48 
49  int GetRCEt(int card,int region) {return GetObject(rctDataBase::RCEt,card,region);}
50  int GetHFEt(int region) {return GetObject(rctDataBase::HFEt,region);}
51  int GetRCTau(int card,int region){return GetObject(rctDataBase::RCTau,card,region);}
52  int GetRCOf(int card,int region) {return GetObject(rctDataBase::RCOf,card,region);}
53  int GetHFFg(int region) {return GetObject(rctDataBase::HFFg,region);}
54  int GetNEReg(int cand) {return GetObject(rctDataBase::NEReg,cand);}
55  int GetNECard(int cand) {return GetObject(rctDataBase::NECard,cand);}
56  int GetNEEt(int cand) {return GetObject(rctDataBase::NEEt,cand);}
57  int GetIEReg(int cand) {return GetObject(rctDataBase::IEReg,cand);}
58  int GetIECard(int cand) {return GetObject(rctDataBase::IECard,cand);}
59  int GetIEEt(int cand) {return GetObject(rctDataBase::IEEt,cand);}
60  int GetRCHad(int card,int region){return GetObject(rctDataBase::RCHad,card,region);}
61 
62  void SetRCEt(int value,int card,int region) {SetObject(rctDataBase::RCEt,value,card,region);}
63  void SetHFEt(int value,int region) {SetObject(rctDataBase::HFEt,value,region);}
64  void SetRCTau(int value,int card,int region){SetObject(rctDataBase::RCTau,value,card,region);}
65  void SetRCOf(int value,int card,int region) {SetObject(rctDataBase::RCOf,value,card,region);}
66  void SetHFFg(int value,int region) {SetObject(rctDataBase::HFFg,value,region);}
67  void SetNEReg(int value,int cand) {SetObject(rctDataBase::NEReg,value,cand);}
68  void SetNECard(int value,int cand) {SetObject(rctDataBase::NECard,value,cand);}
69  void SetNEEt(int value,int cand) {SetObject(rctDataBase::NEEt,value,cand);}
70  void SetIEReg(int value,int cand) {SetObject(rctDataBase::IEReg,value,cand);}
71  void SetIECard(int value,int cand) {SetObject(rctDataBase::IECard,value,cand);}
72  void SetIEEt(int value,int cand) {SetObject(rctDataBase::IEEt,value,cand);}
73  void SetRCHad(int value,int card,int region){SetObject(rctDataBase::RCHad,value,card,region);}
74 
75  };
76 }
77 #endif
void SetNEReg(int value, int cand)
void SetNEEt(int value, int cand)
void SetRCOf(int value, int card, int region)
int GetRCTau(int card, int region)
void SetHFEt(int value, int region)
void SetIEReg(int value, int cand)
void SetRCTau(int value, int card, int region)
void SetNECard(int value, int cand)
void Set32bitWordLinkEven(int index, uint32_t value)
int GetRCHad(int card, int region)
void SetRCEt(int value, int card, int region)
int BuildDecimalValue(int firstbit, int bitlength, int linkid)
void SetHFFg(int value, int region)
void SetIECard(int value, int cand)
void SetRCHad(int value, int card, int region)
int GetRCEt(int card, int region)
int ReadBitInInt(int bit, int value)
void SetIEEt(int value, int cand)
void Set32bitWordLinkOdd(int index, uint32_t value)
int GetObject(rctDataBase::rctObjectType t, int firstindex, int secondindex=-1)
int GetRCOf(int card, int region)
void SetObject(rctDataBase::rctObjectType t, int value, int firstindex, int secondindex=-1)