CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DBlmapReader.h
Go to the documentation of this file.
1 // Aram Avetisyan; Brown University; February 15, 2008
2 
3 #ifndef DBlmapReader_h
4 #define DBlmapReader_h
5 
6 #include <iostream>
7 #include <sstream>
8 #include <string>
9 #include <vector>
10 #include <stdio.h>
11 #include <algorithm>
12 
14 
17 #include "CaloOnlineTools/HcalOnlineDb/interface/ConfigurationDatabase.hh"
18 #include "CaloOnlineTools/HcalOnlineDb/interface/ConfigurationDatabaseImplOracle.hh"
19 #include "CaloOnlineTools/HcalOnlineDb/interface/ConfigurationDatabaseImplXMLFile.hh"
20 #include "CaloOnlineTools/HcalOnlineDb/interface/ConfigurationItemNotFoundException.hh"
22 
23 struct VectorLMAP{
24 
25  std::vector<int> sideC;
26  std::vector<int> etaC;
27  std::vector<int> phiC;
28 
29  std::vector<int> dphiC;
30  std::vector<int> depthC;
31  std::vector<std::string> detC;
32  std::vector<std::string> rbxC;
33  std::vector<int> wedgeC;
34 
35  std::vector<int> sectorC;
36  std::vector<int> rmC;
37  std::vector<int> pixelC;
38  std::vector<int> qieC;
39  std::vector<int> adcC;
40 
41  std::vector<int> rm_fiC;
42  std::vector<int> fi_chC;
43  std::vector<std::string> let_codeC;
44  std::vector<int> crateC;
45  std::vector<int> htrC;
46 
47  std::vector<std::string> fpgaC;
48  std::vector<int> htr_fiC;
49  std::vector<int> dcc_slC;
50  std::vector<int> spigoC;
51  std::vector<int> dccC;
52 
53  std::vector<int> slbC;
54  std::vector<std::string> slbinC;
55  std::vector<std::string> slbin2C;
56  std::vector<std::string> slnamC;
57  std::vector<int> rctcraC;
58 
59  std::vector<int> rctcarC;
60  std::vector<int> rctconC;
61  std::vector<std::string> rctnamC;
62  std::vector<int> fedidC;
63  std::vector<int> geoC;
64 
65  std::vector<int> blockC;
66  std::vector<int> lcC;
67 
68  std::vector<int> orderC;
69  std::vector<int> versionC;
70 };
71 
72 bool SortComp(int x, int y);
75 
76 void printHBHEHF(int channel, FILE * HBEFmap, VectorLMAP * lmap);
77 void printHO(int channel, FILE * HOmap, VectorLMAP * lmap);
78 void printEMAProw(int channel, FILE * emap, VectorLMAP * lmap);
79 
81  public:
83  void lrTestFunction(void);
85  void PrintLMAP(FILE* HBEFmap, FILE* HOmap, VectorLMAP* lmapHBEFO);
86  void PrintEMAPfromLMAP(FILE* emap, VectorLMAP* lmapHBEFO);
87 };
88 
89 #endif
VectorLMAP * SortByGeometry(VectorLMAP *lmapHBEFO)
std::vector< int > sectorC
Definition: DBlmapReader.h:35
void PrintEMAPfromLMAP(FILE *emap, VectorLMAP *lmapHBEFO)
void printEMAProw(int channel, FILE *emap, VectorLMAP *lmap)
std::vector< int > spigoC
Definition: DBlmapReader.h:50
std::vector< int > etaC
Definition: DBlmapReader.h:26
std::vector< int > blockC
Definition: DBlmapReader.h:65
std::vector< int > wedgeC
Definition: DBlmapReader.h:33
void printHO(int channel, FILE *HOmap, VectorLMAP *lmap)
void printHBHEHF(int channel, FILE *HBEFmap, VectorLMAP *lmap)
std::vector< int > slbC
Definition: DBlmapReader.h:53
std::vector< int > orderC
Definition: DBlmapReader.h:68
std::vector< int > fedidC
Definition: DBlmapReader.h:62
VectorLMAP * GetLMAP(int version)
Definition: DBlmapReader.cc:19
std::vector< int > crateC
Definition: DBlmapReader.h:44
std::vector< int > lcC
Definition: DBlmapReader.h:66
std::vector< int > pixelC
Definition: DBlmapReader.h:37
std::vector< int > rmC
Definition: DBlmapReader.h:36
std::vector< int > htr_fiC
Definition: DBlmapReader.h:48
std::vector< std::string > rctnamC
Definition: DBlmapReader.h:61
bool SortComp(int x, int y)
void PrintLMAP(FILE *HBEFmap, FILE *HOmap, VectorLMAP *lmapHBEFO)
std::vector< std::string > slbinC
Definition: DBlmapReader.h:54
std::vector< int > sideC
Definition: DBlmapReader.h:25
std::vector< std::string > let_codeC
Definition: DBlmapReader.h:43
std::vector< std::string > rbxC
Definition: DBlmapReader.h:32
std::vector< int > qieC
Definition: DBlmapReader.h:38
std::vector< int > depthC
Definition: DBlmapReader.h:30
VectorLMAP * SortByHardware(VectorLMAP *lmapHBEFO)
std::vector< int > rm_fiC
Definition: DBlmapReader.h:41
std::vector< int > geoC
Definition: DBlmapReader.h:63
std::vector< std::string > fpgaC
Definition: DBlmapReader.h:47
std::vector< int > dccC
Definition: DBlmapReader.h:51
std::vector< int > rctcraC
Definition: DBlmapReader.h:57
void lrTestFunction(void)
Definition: DBlmapReader.cc:13
std::vector< int > rctcarC
Definition: DBlmapReader.h:59
std::vector< int > dphiC
Definition: DBlmapReader.h:29
std::vector< int > phiC
Definition: DBlmapReader.h:27
std::vector< int > htrC
Definition: DBlmapReader.h:45
std::vector< int > rctconC
Definition: DBlmapReader.h:60
std::vector< int > versionC
Definition: DBlmapReader.h:69
Definition: DDAxes.h:10
std::vector< std::string > detC
Definition: DBlmapReader.h:31
std::vector< int > dcc_slC
Definition: DBlmapReader.h:49
std::vector< std::string > slnamC
Definition: DBlmapReader.h:56
std::vector< std::string > slbin2C
Definition: DBlmapReader.h:55
std::vector< int > adcC
Definition: DBlmapReader.h:39
std::vector< int > fi_chC
Definition: DBlmapReader.h:42