CMS 3D CMS Logo

VisCSCDigiTools.h

Go to the documentation of this file.
00001 #ifndef VIS_MUON_CSC_VIS_CSCDIGI_TOOLS_H
00002 # define VIS_MUON_CSC_VIS_CSCDIGI_TOOLS_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 #include <vector>
00007 
00008 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00009 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00010 
00011 // This is to become a class better...
00012 // Some common Digi visualiszation parameters
00013 //
00014 //static struct CommonVar{
00015 //  float OurUsedPhi;
00016 //  float OurUsedZ;
00017 //} CommonVar;
00018 float const MEsFrames_X = -3;
00019 float const MEsFrames_Xstep = 2.;
00020 float const MEsFrames_Y = -1.;
00021 float const MEsFrames_Ystep = 1.;
00022  
00023 float const MEsHorisontal_Y = 7.5;
00024 float const MEsHorisontal_X = -3.55;
00025 float const MEsHorisontal_stepX = 2.0;
00026 
00027 
00028 float const MEsVertical_X = -6.;
00029 float const MEsVertical_Y = -1.15;
00030 float const MEsVertical_stepY = 1.;
00031 
00032 float const Digis_Y = -5.5;
00033 float const Digis_X = -3.5;
00034 float const Digis_stepX = 4.5;
00035 
00036 
00037 float const PHI_Y = 0.;
00038 float const PHI_X = -5.5;
00039 
00040 char const VisFont[10] = "Times";
00041 float const VisFontSize = 0.5;
00042 
00043 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00044 
00045 class SoSeparator;
00046 class SoLineSet;
00047 class SoTranslation;
00048 
00049 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00050 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00051 
00052 // function is to be called once only
00053 bool VisCaptions(float const layer_z, 
00054                  float const layer_phi, 
00055                  float &OurPhi, 
00056                  float &OurZ, 
00057                  SoSeparator *sep);
00058 //              
00059 bool VisFrames(const std::vector<float> trapezBounds, 
00060                SoLineSet *trapez,
00061                SoLineSet *rect_w, 
00062                SoLineSet *rect_s);
00063 //
00064 bool MakeTrans(const std::vector<float> trapezBounds,
00065                float const station_id, 
00066                float const layer_r,
00067                float const layer_phi,
00068                float const layer_z,
00069                float const OurPhi,
00070                float const OurZ,
00071                SoTranslation *trans,
00072                SoTranslation *trans_caption,
00073                SoTranslation *trans_s,
00074                SoTranslation *trans_w);
00075 
00076 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00077 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00078 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00079 
00080 #endif // VIS_MUON_CSC_VIS_CSCDIGI_TOOLS_H

Generated on Tue Jun 9 17:50:20 2009 for CMSSW by  doxygen 1.5.4