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 "rctDataBase.h"
18 
19 namespace l1t{
21 
22 
23  int words32bitLink[2][6]; //[link][word]
24 
25  std::vector<int> bitsLink[2];
27 
28 
29  public:
30 
35  void Convert();
36 
37  int GetObject(rctDataBase::rctObjectType t, int firstindex, int secondindex = -1);
38 
39  int ReadBitInInt(int bit,int value);
40  int BuildPhysicsValue(int firstbit,int bitlength,int linkid);
41 
42  int GetRCEt(int card,int region) {return GetObject(rctDataBase::RCEt,card,region);}
43  int GetHFEt(int region) {return GetObject(rctDataBase::HFEt,region);}
44  int GetRCTau(int card,int region){return GetObject(rctDataBase::RCTau,card,region);}
45  int GetRCOf(int card,int region) {return GetObject(rctDataBase::RCOf,card,region);}
46  int GetHFFg(int region) {return GetObject(rctDataBase::HFFg,region);}
47  int GetNEReg(int cand) {return GetObject(rctDataBase::NEReg,cand);}
48  int GetNECard(int cand) {return GetObject(rctDataBase::NECard,cand);}
49  int GetNEEt(int cand) {return GetObject(rctDataBase::NEEt,cand);}
50  int GetIEReg(int cand) {return GetObject(rctDataBase::IEReg,cand);}
51  int GetIECard(int cand) {return GetObject(rctDataBase::IECard,cand);}
52  int GetIEEt(int cand) {return GetObject(rctDataBase::IEEt,cand);}
53  int GetRCHad(int card,int region){return GetObject(rctDataBase::RCHad,card,region);}
54 
55 
56  };
57 }
58 #endif
int GetRCTau(int card, int region)
void Set32bitWordLinkEven(int index, uint32_t value)
int GetRCHad(int card, int region)
int BuildPhysicsValue(int firstbit, int bitlength, int linkid)
int GetRCEt(int card, int region)
int ReadBitInInt(int bit, int value)
void Set32bitWordLinkOdd(int index, uint32_t value)
int GetObject(rctDataBase::rctObjectType t, int firstindex, int secondindex=-1)
int GetRCOf(int card, int region)
std::vector< int > bitsLink[2]