StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGmtConsts.h
1 /*
2  * Some basic constants (enums) the GMT. All GMT related constants
3  * that are not in the database should be in this file, except those
4  * which cannot be expressed as an int. These remaining constants are
5  * in the file StGmtGeom.h.
6  *
7  *
8  */
9 
10 #ifndef _ST_GMT_CONSTS_H_
11 #define _ST_GMT_CONSTS_H_
12 
13 #include "StEvent/StEnumerations.h" // as many GMT consts are defined there
14 #include <string>
15 
16 // The following are only used in StGmtGeom and StGmtDb, at present
17 const Int_t kGmtError = -999;
18 const Char_t kGmtErrorChar = -1;
19 const std::string kGmtErrorString = "XXXXXX";
20 
21 // Constants related to clustering and pulses
22 const Int_t kGmtMaxClusterSize = 11;
23 const Int_t kGmtNumAdditionalStrips = 5;
24 
25 // For some reason, the MuDst directory fails during linking, so a seperate value is needed.
26 // For now, it is required that kMuGmtNumTimeBins == kGmtNumTimeBins
27 const Int_t kMuGmtNumTimeBins = 15;
28 
29 
30 
31 // Jan's definitions for the final 400-800 micron pitch design
32 // Note:
33 // using #define instead of const double to avoid requiring a .cpp
34 // file for the constants
35 
36 // #define kGmtRout 38.25 // cm ,
37 // #define kGmtRlast 38.1571 // location of last R strip before Rout
38 // #define kGmtRmid 19.125 // cm, at Rout/2.
39 // #define kGmtRin 11.5 // cm,
40 // #define kGmtRfirst 11.5385 // location of first R strip after Rin
41 // #define kGmtPfirst 0.0324 // location of first Phi strip
42 // #define kGmtPlast 1.5384 // location of last Phi strip
43 // #define kGmtRflat 35.85 // cm,
44 // #define kGmtPhiflat (31.0/180.*3.1416) // rad
45 // #define kGmtRadPitch 0.09538 // nominal '800 mu pitch'
46 // #define kGmtPhiPitch 0.08 // 800 mu, at outer radi or at Rmid
47 // #define kGmtPhiAnglePitch 0.002095
48 // #define kGmtDeadQuadEdge 1.2 // (cm) effective dead area along quadrant edges
49 // #define kGmtMaxClusterSize 11 //maximum cluster size in strips that a cluster algo should return
50 // #define kGmtNumAdditionalStrips 5 //strips in addition to the cluster size that are passed up. Mainly for debugging.
51 
52 // Constants for GMT (RW 3/15/2013)
53 #define kGmtXPitch 0.08 // nominal '800 mu pitch'
54 #define kGmtYPitch 0.08 // 800 mu, at outer radi or at Rmid
55 #define kGmtSfirst 0.00 // location of first strip (local X) relative to readout plane origin
56 #define kGmtPfirst 0.00 // location of first pad (local Y) relative to readout plane origin
57 #define kGmtSlast 10.16 // location of last strip [ (128 - 1 at origin) = 127 ]*pitch (in cm)
58 #define kGmtPlast 10.16 // location of last pad [ (128 - 1 at origin) = 127 ]*pitch (in cm)
59 
60 #endif