00001 #ifndef VIS_MUON_CSC_VIS_CSCDIGI_TOOLS_H
00002 # define VIS_MUON_CSC_VIS_CSCDIGI_TOOLS_H
00003
00004
00005
00006 #include <vector>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
00044
00045 class SoSeparator;
00046 class SoLineSet;
00047 class SoTranslation;
00048
00049
00050
00051
00052
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
00077
00078
00079
00080 #endif // VIS_MUON_CSC_VIS_CSCDIGI_TOOLS_H