ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FastOpenGlDisplayer/soft/main.h
(Generate patch)

Comparing UserCode/FastOpenGlDisplayer/soft/main.h (file contents):
Revision 1.1 by querten, Sun Apr 6 13:56:09 2008 UTC vs.
Revision 1.10 by roberfro, Fri Apr 25 14:03:42 2008 UTC

# Line 36 | Line 36
36   #include "Texture.h"
37   #include "ReadCards.h"
38   #include "FROG_Struct.h"
39 + #include "ObjectsInfo.h"
40  
41   int SAVE_WINDOW_W = 800;
42   int SAVE_WINDOW_H = 600;
# Line 47 | Line 48 | int WINDOW_WIDTH = 800;
48   int WINDOW_HEIGHT = 600;
49   int SCREENSHOT = 0;
50  
51 + int TEMP_I = 0;
52 +
53   float CAM_R  = 700;
54   float CAM_tx = 0.0;
55   float CAM_ty = 0.0;
56  
57   int CMS_TRACKER_RADIUS = 129;
58 < int CMS_TRACKER_LENGTH = 280;
58 > int CMS_TRACKER_LENGTH = 300;
59  
60   int TRACKING_RADIUS = 129;//295;
61 < int TRACKING_LENGTH = 280;//645;
61 > int TRACKING_LENGTH = 300;//645;
62  
63   float PT_CUTOFF = 1.0;
64 + double EECAL_CUTOFF[3] = {0.2,0.6,0.0001};
65 + double EHCAL_CUTOFF[4] = {1.5,1.5,0.5,5.0};
66  
67   bool MouseStates[3];
68  
69   std::vector<GLuint> theSimTracks;
70 + GLuint theGeomMuon[3];
71 + GLuint theGeomMuonInEvent;
72   GLuint theGeomTracker[6];
73   GLuint theGeomTrackerInEvent;
74   GLuint theGeomEcal[3];
# Line 73 | Line 80 | GLuint LogoTexture;
80  
81   double t = 0;
82  
83 < std::string inputVisFile = "MinBias.vis";
83 > std::string inputVisFile;
84 > std::string inputTrackerGeom;
85 > std::string inputEcalGeom;
86 > std::string inputHcalGeom;
87 > std::string inputMuonGeom;
88  
89   MySimEvent*  event;
90   MySimEvents* events;
91  
92   Geometry* geom;
93  
83
84 bool  mPSimHit   = false;
85 bool  mSimTrack  = true;
86 bool  mSimVertex = true;
87 bool  mRecoTrack = true;
88 bool  mRecoEcalHit = true;
89 bool  mRecoHcalHit = true;
90
94   char gTracker   = 0;
95   char gEcal      = 0;
96   char gHcal      = 0;
97 + char gMuon      = 0;
98 + char gSim       = 2;
99 + char gReco      = 15;
100  
101   int   mTrackI   = -1;
102   bool mLoading   = true;
# Line 106 | Line 112 | float mDt               = 0.005f;
112   GLint Menu_Geom_Tracker = 0;
113   GLint Menu_Geom_Ecal    = 0;
114   GLint Menu_Geom_Hcal    = 0;
115 + GLint Menu_Geom_Muon    = 0;
116   GLint Menu_Geom         = 0;
117   GLint Menu_SimEvent     = 0;
118   GLint Menu_RecoEvent    = 0;
# Line 118 | Line 125 | WidthAndColor WaC_LHC_Axis          = {3
125   WidthAndColor WaC_Default_SimTrack  = {2.0 , 0.0 , 1.0 , 1.0 , 1.0};
126   WidthAndColor WaC_Selected_SimTrack = {2.0 , 1.0 , 1.0 , 0.0 , 1.0};
127  
128 + std::vector<IdAndWidthAndColor*> WaC_SimTracks;
129 +
130 + ObjectsInfo objInfos;
131 +
132   void DrawTrack(MySimTrack* track, MySimVertex* vertex1, MySimVertex* vertex2);
133   void reshape (int w, int h);
134   void display();
135 + void initGeomMuon();
136 + void initGeomMuonInEvent();
137   void initGeomTracker();
138   void initGeomTrackerInEvent();
139   void initGeomEcal();
140   void initGeomEcalInEvent();
141   void initGeomHcal();
142   void initGeomHcalInEvent();
143 +
144   void initSimTrack();
145   void init();
146   void menu_callback(int value);
147   void menu_create();
148   void LoadCard(const char* inputCard );
149 + void gl_select(int x, int y);
150 + void list_hits(GLint hits, GLuint *names);
151 +
152 + #endif
153  
136 #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines