/* * setup.h for K4 * Creation date : Nov 13 2000 * Author : Y.Nakaune */ #ifndef __SETUP_H #define __SETUP_H /* Comment Out for Your SetUp */ #define ADC_ON #define VMELIB06_USE #define ADC_SCI #define ADC_TGC #define TMC_DC #define TMC_TGC #define TMC_SCI /*---Beam Test 2000 setup's size ( mm )---*/ #define Height 3000 //---高さ--- #define Xwidth 3000 //---X方向の幅--- #define Zwidth 4000 //---Z方向の幅--- #define z_frame 200 //---余白--- #define Area_Zwidth ( (z_frame) + (Zwidth) + (z_frame) ) //---余白を加えた高さ--- //---Geometry for SCI (Scintillation counters)--- #define SCI03_X 100 //---Sci0,3の長さ--- #define SCI03_Y 100 //---Sci0,3の幅--- #define SCI_Z 5 //---Sci0,1,2,3の厚さ--- #define SCI12_X 50 //---Sci1,2の長さ--- #define SCI12_Y 60 //---Sci1,2の幅--- #define SCI03_HEIGHT 1550 //---Sci0,3までの高さ--- #define SCI12_HEIGHT 1570 //---Sci1,2までの高さ--- #define SCI_MAX 4 //---Sciの数--- //---Geometry for DC ( Drift Chamber )--- #define DC_X 206 //---DCのX方向の長さ--- #define DC_Y 206 //---DCのY方向の長さ--- #define DC_Z 100 //---DCのZ方向の長さ--- #define DC_HEIGHT 1497 //---DCまでの高さ--- #define DC_MAX 4 //---DCの数--- #define DC_WIRE 36 //---DCの中心からwireまでの距離--- #define DC_Xwire 73 //---DCのX方向のwireまでの距離--- #define DC_Ywire 27 //---DCのY方向のwireまでの距離--- #define DC_CELL 104 //---DCのX,Y方向のCELLの長さ--- #define DC_ZCELL 16 //---DCのZ方向のCELLの長さ--- #define DC_WINDOW 110 //---DCのX,Y方向のwindowの長さ--- //---Geometry for TGC ( Thin Gap Chamber )--- #define TGC_GAP 26 //---TGC間の距離--- #define D_T_GAP 170 //---TripletとDoublet間の距離--- #define TGC_Xup 1365 //---TGCのX方向の上の長さ--- #define TGC_Xdown 1525 //---TGCのX方向の下の長さ--- #define TGC_Y 1250 //---TGCのY方向の長さ--- #define TGC_THICK 6 //---TGCの厚さ--- #define TGCH_MAX 32 //---TGCのchannnelの数--- #define TGC_MAX 5 //---TGCの数--- //---Geometry for each Detectors--- #define SCI0_DC0_GAP 60 //---SCI0とDC0間の距離--- #define DC0_DC1_GAP 10 //---DC0とDC1間の距離--- #define DC1_SCI1_GAP 60 //---DC1とSCI1間の距離--- #define SCI1_TGC_GAP 1290 //---SCI1とTGC間の距離--- #define TGC_DC2_GAP 1065 //---TGCとDC2間の距離--- #define DC2_DC3_GAP 900 //---DC2とDC3間の距離--- #define DC3_SCI3_GAP 58 //---DC2とSCI3間の距離--- #define DC0_DIST 65 //---DC0までの距離--- #define SCI1_DIST 335 //---SCI1までの距離--- #define TGC_DIST 1625 //---TGCまでの距離--- #define DC2_DIST 2748 //---DC2までの距離--- #define SCI3_DIST 3906 //---SCI3までの距離--- //---Geometry for Wire & Strip of TGC--- #define Fst_W 14.5 //---first wireまでの距離--- #define Fst_S 14.5 //---first stripまでの距離--- #define W_PITCH 1.8 //---wire pitch--- #define STRIP_MAX 32 //---strip chの数--- #define D_WIRE_MAX 32 //---Doubletのwire chの数--- #define T_WIRE_MAX 24 //---Tripletのwire chの数--- /*---conversion factor from measurement_value to standard_value---*/ #define CENTER_X -653 //---center X postion of TGC when stage is minimum. #define CENTER_Y -32 //---center Y postion of TGC when stage is minimum. #define SCALE_ERROR_X 200 //---stage position when stage is minimum. #define SCALE_ERROR_Y 80 //---stage position when stage is minimum. /*---TGC Configuration---*/ #define TGC_LAYER 5 #define TGC_CH 32 #define W_S 2 // Don't change the value /*---SCI Configuration---*/ #define SCI_NUMBER 4 /*---DC Configuration---*/ #define DC_NUMBER 4 // Don't change the value #define DC_XY 2 // Don't change the value /*---X-T relation---*/ #define T0 2600 // by TMC count #define DTTMC_CUT 0 // by TMC count #define DRIFT_VEROCITY 0.044 // mm/nsec /* * VME TMC Configuration * ex.) * TMC_MOD 3 * TMC_ADDR 0x800000L * ADDR_STEP 0x10000L * ----------- * The VME address of the TMC Modules are * 0x800000 * 0x810000 * 0x820000 */ #define TMC_MOD 10 #define TMC_ADDR 0x800000 #define ADDR_STEP 0x10000 #define CSTSP 0 // Common Stop(=0) or Start(=1) #define EDGE 1 // Edge Detection (0=both, 1=rising, 2=falling) #define TIMERANGE 40 // Recoring depth (25ns/row, 1-126 rows) #define DISP 100 // Display Channel (Ch=0-31,All=99,None=100) #define USE_TMC_DC 1 // flag for use TMC DC #define MOD_DC 9 // module number for DC #define TIMERANGE_DC 125 // Recoring depth for DC (25ns/row, 1-126 rows) #define TMC_CH 32 #define TMC_FACT 0.78 #define TMC_OF -1000. /*---CAMAC ADC---*/ #define ADC_MOD 5 #define ADC_CH 16 /*---VME Interupt Register Configuration---*/ #define INTREG_ADDR ( (caddr_t)0x8000 ) /*---VME CAEN HV System Interface V288 Configuration---*/ #define V288_ADDR ( (caddr_t)0x10 ) /*---Configuration value for SY127 Crate Number---*/ #define CRATE_NUMBER 1 #endif /* End of File */