StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcGeomDefs.h
1 // Hey Emacs this is really -*-c++-*- !
2 // \author Piotr A. Zolnierczuk Aug 26, 2002
3 #ifndef EEmcGeom_EEmcDefs_h
4 #define EEmcGeom_EEmcDefs_h
5 /*********************************************************************
6  * $Id: EEmcGeomDefs.h,v 1.7 2007/07/12 19:30:14 fisyak Exp $
7  *********************************************************************
8  * Descripion:
9  * STAR Endcap Electromagnetic Calorimeter Definitions (temp file)
10  *********************************************************************
11  * $Log: EEmcGeomDefs.h,v $
12  * Revision 1.7 2007/07/12 19:30:14 fisyak
13  * Add includes for ROOT 5.16
14  *
15  * Revision 1.6 2007/01/25 22:33:11 balewski
16  * add:
17  * - better writeup
18  * - new simpler to use method calculating dca fo track to strip, it is just a wrapper, some approximations were used, may fail at the sector boundary
19  *
20  * Revision 1.5 2003/10/15 15:28:53 wzhang
21  * updated for the new StEEmcSmdGeom
22  *
23  * Revision 1.4 2003/04/04 15:35:47 wzhang
24  * added SMD constants
25  *
26  * Revision 1.3 2003/03/22 22:44:57 zolnie
27  * make it standalone library
28  *
29  * Revision 1.2 2003/03/06 18:54:20 zolnie
30  * improvements for track/tower matching
31  *
32  * Revision 1.1 2003/02/20 21:26:58 zolnie
33  * added simple geometry class
34  *
35  * Revision 1.1 2003/02/20 21:15:16 zolnie
36  * *** empty log message ***
37  *
38  *********************************************************************/
39 
40 const int kEEmcNumDepths = 5;
41 const int kEEmcNumSectors = 12;
42 const int kEEmcNumSubSectors = 5;
43 const int kEEmcNumEtas = 12;
44 const int kEEmcNumSmdPlanes = 3;
45 const int kEEmcNumStrips =288;
46 const int kEEmcNumEdgeStrips =283;
47 const int kEEmcNumSmdUVs = 2; // 2 SMD layers: U and V
48 
49 
50 const float kEEmcZPRE1=270.190; // [cm] z preshower1
51 const float kEEmcZPRE2=271.695; // [cm] z preshower2
52 const float kEEmcZSMD =279.542; // [cm] z location of the EEMC SMD layer
53 const float kEEmcZPOST=306.158; // [cm] z postshower
54 
55 // z-shift [cm] of innermost (negative) and outermost (positve) EEMC SMD plane
56 const float kEEmcSmdZPlaneShift = 1.215;
57 
58 // inner-shift offset of radius [cm] of EEMC SMD layers in 3 planes
59 const float kEEmcSmdROffset[kEEmcNumSmdPlanes]={1.850,0.925,0.0};
60 
61 // The value of the map matrix(3x12) indicates if a EEMC SMD layer in a plane
62 // is U=0, V=1, or void=-1
63 #ifndef __CINT__
64 
65 const int kEEmcSmdMapUV[kEEmcNumSmdPlanes][kEEmcNumSectors] =
66  {{1,0,-1,1,0,-1,1,0,-1,1,0,-1},
67  {-1,1,0,-1,1,0,-1,1,0,-1,1,0},
68  {0,-1,1,0,-1,1,0,-1,1,0,-1,1}};
69 
70 // The value of the map matrix(3x12) indicates if a EEMC SMD module in a plane
71 // is an edge module
72 const int kEEmcSmdMapEdge[kEEmcNumSmdPlanes][kEEmcNumSectors] =
73  {{0,0,0,1,0,0,0,0,0,1,0,0},
74  {0,0,1,0,0,0,0,0,1,0,0,0},
75  {0,0,0,0,0,0,0,0,0,0,0,0}};
76 #else
77 const int **kEEmcSmdMapUV;
78 const int **kEEmcSmdMapEdge;
79 #endif
80 
81 const char kEEmcSmdUVChar[kEEmcNumSmdUVs] = {'U','V'};
82 
83 const int kEEmcSmdSectorIdPhiCrossPi = 9;
84 
85 /* ------------------------------------------
86  MEGA 1 270.19 - preshower 1
87  MEGA 2 271.695 - preshower 2
88  MEGA 3 273.15
89  MEGA 4 274.555
90  MEGA 5 275.96
91  MEGA 6 277.365
92  ------------------
93  SMD 1 278.327
94  SMD 2 279.542
95  SMD 3 280.757
96  ------------------
97  MEGA 7 282.3630
98  MEGA 8 283.7680
99  MEGA 9 285.1730
100  MEGA 10 286.5780
101  MEGA 11 287.9830
102  MEGA 12 289.3880
103  MEGA 13 290.7930
104  MEGA 14 292.1980
105  MEGA 15 293.6030
106  MEGA 16 295.0080
107  MEGA 17 296.4130
108  MEGA 18 297.8180
109  MEGA 19 299.2230
110  MEGA 20 300.6280
111  MEGA 21 302.0330
112  MEGA 22 303.4380
113  MEGA 23 304.8430
114  MEGA 24 306.1580 - postshower
115  ------------------------------------------*/
116 #endif