11 |
|
#include <GL/gl.h> |
12 |
|
#include <GL/glu.h> |
13 |
|
#include "../interface/glut.h" |
14 |
+ |
#include <ext/hash_map> |
15 |
+ |
using namespace __gnu_cxx; |
16 |
+ |
typedef hash_map<unsigned int, char*, hash<unsigned int>, equal_to<unsigned int> > HASH_Map; |
17 |
|
#else |
18 |
|
#define _CRT_SECURE_NO_DEPRECATE 1 |
19 |
|
#include <windows.h> |
25 |
|
#pragma comment (lib,"opengl32.lib") |
26 |
|
#pragma comment (lib,"glut.lib") |
27 |
|
#pragma comment (lib,"glut32.lib") |
28 |
+ |
#include <hash_map> |
29 |
+ |
using namespace stdext; |
30 |
+ |
typedef hash_map<unsigned int, char*, hash_compare<unsigned int, std::less<unsigned int> >> HASH_Map; |
31 |
|
#endif |
32 |
|
|
33 |
+ |
HASH_Map test; |
34 |
+ |
|
35 |
+ |
#include <time.h> |
36 |
+ |
time_t start; |
37 |
+ |
time_t end; |
38 |
+ |
|
39 |
|
#include <stdio.h> |
40 |
|
#include <math.h> |
41 |
|
|
107 |
|
char gEcal = 0; |
108 |
|
char gHcal = 0; |
109 |
|
char gMuon = 0; |
110 |
< |
char gSim = 2; |
110 |
> |
char gSim = 0; |
111 |
|
char gReco = 15; |
112 |
|
|
113 |
< |
int mTrackI = -1; |
113 |
> |
int mObj_I = -1; |
114 |
> |
int mColl_I = -1; |
115 |
|
bool mLoading = true; |
116 |
|
int mLoading_I = 0; |
117 |
|
|
140 |
|
|
141 |
|
std::vector<IdAndWidthAndColor*> WaC_SimTracks; |
142 |
|
|
130 |
– |
std::vector<ObjectInfo> objInfos; |
131 |
– |
int kObjName = 0; |
132 |
– |
|
143 |
|
void DrawTrack(MySimTrack* track, MySimVertex* vertex1, MySimVertex* vertex2); |
144 |
|
void reshape (int w, int h); |
145 |
|
void display(); |
151 |
|
void initGeomEcalInEvent(); |
152 |
|
void initGeomHcal(); |
153 |
|
void initGeomHcalInEvent(); |
154 |
+ |
void defineColorForSimTrack(unsigned int i); |
155 |
|
|
156 |
|
void initSimTrack(); |
157 |
|
void init(); |
161 |
|
void gl_select(int x, int y); |
162 |
|
void list_hits(GLint hits, GLuint *names); |
163 |
|
|
164 |
+ |
|
165 |
|
#endif |
166 |
|
|