File indexing completed on 2023-03-17 10:41:30
0001 #ifndef MEEEDisplay_hh
0002 #define MEEEDisplay_hh
0003
0004
0005
0006
0007
0008 #include <vector>
0009 #include <map>
0010 #include <list>
0011
0012 #include "../../interface/MEEEGeom.h"
0013
0014 class MEEEDisplay
0015 {
0016
0017 public:
0018
0019 static MEEEGeom::EtaPhiPoint getNode( MEEEGeom::SuperCrysCoord iX,
0020 MEEEGeom::SuperCrysCoord iY,
0021 int iz, int jx, int jy );
0022
0023 static void drawEEGlobal();
0024 static void drawEELocal( int isect );
0025
0026 static void drawEE();
0027 static void drawSC( MEEEGeom::SuperCrysCoord iX,
0028 MEEEGeom::SuperCrysCoord iY,
0029 int iz, float shift=0 );
0030 static void drawXtal( MEEEGeom::CrysCoord ix,
0031 MEEEGeom::CrysCoord iy,
0032 int iz, int color=kBlue, float shift=0 );
0033 static TPolyLine* getXtalPolyLine( MEEEGeom::CrysCoord ix,
0034 MEEEGeom::CrysCoord iy,
0035 int iz, float shift=0 );
0036 static TPolyLine* getSCPolyLine( MEEEGeom::SuperCrysCoord iX,
0037 MEEEGeom::SuperCrysCoord iY,
0038 int iz, float shift=0 );
0039 static void drawRz();
0040
0041 static int bkgColor;
0042 static int lineColor;
0043 static int lineWidth;
0044
0045 static void refresh();
0046
0047 virtual ~MEEEDisplay() {}
0048
0049 private:
0050
0051 static void sc_nodes( int itype, std::vector< int >& jx, std::vector< int >& jy );
0052 static void set( int iX, int iY, int jx, int jy, float eta, float phioverpi );
0053 static void setFirstQuadrant();
0054
0055 static std::map< int, MEEEGeom::EtaPhiPoint > _pointMap;
0056
0057 static void setRzXtals();
0058 static std::map< int, TPolyLine* > _rzXtals;
0059
0060 static list<TObject*> _list;
0061 static void registerTObject( TObject* );
0062
0063 ClassDef(MEEEDisplay,0)
0064
0065 };
0066
0067 #endif
0068