StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StETofConstants.h
1 /***************************************************************************
2  *
3  * $Id: StETofConstants.h,v 1.1 2019/02/19 20:12:47 fseck Exp $
4  *
5  * Author: Florian Seck, October 2018
6  ***************************************************************************
7  *
8  * Description: StETofConstants - place to collect eTOF related constants
9  *
10  ***************************************************************************
11  *
12  * $Log: StETofConstants.h,v $
13  * Revision 1.1 2019/02/19 20:12:47 fseck
14  * initial commit
15  *
16  *
17  ***************************************************************************/
18 
19 #ifndef STETOFCONSTANTS_H
20 #define STETOFCONSTANTS_H
21 
22 
23 namespace eTofConst{
24 
25  // geometry related constants
26  const int nSectors = 12;
27  const int nPlanes = 3;
28  const int nModules = nSectors * nPlanes;
29  const int nCounters = 3;
30  const int nStrips = 32;
31  const int nSides = 2;
32 
33  const int sectorStart = 13;
34  const int sectorStop = 24;
35  const int zPlaneStart = 1;
36  const int zPlaneStop = 3;
37  const int counterStart = 1;
38  const int counterStop = 3;
39  const int stripStart = 1;
40  const int stripStop = 32;
41  const int sideStart = 1;
42  const int sideStop = 2;
43 
44  const float firstStripCenter = -15.5; // [cm]
45  const float stripPitch = 1.0; // [cm]
46  const float stripLength = 27.0; // [cm]
47 
48  const float zplanes[ 3 ] = { 209.0 - 489.01, 209.0 - 501.01, 209.0 - 513.01 }; // [cm]
49 
50  // number of counters
51  const int nCountersPerSector = nCounters * nPlanes;
52  const int nCountersInSystem = nCountersPerSector * nSectors;
53 
54  // number of channels
55  const int nChannelsPerCounter = nStrips * nSides;
56  const int nChannelsPerModule = nChannelsPerCounter * nCounters;
57  const int nChannelsPerSector = nChannelsPerModule * nPlanes;
58  const int nChannelsInSystem = nChannelsPerSector * nSectors;
59 
60  const int nGet4sInSystem = nChannelsInSystem / 4;
61 
62  // clock related constants
63  const double coarseClockCycle = 6.25; // [ns] -- needs to be double otherwise strange things happen ...
64  const double bTofClockCycle = 51200.; // [ns]
65 
66 
67  // raw daq message size
68  const int daqMessageSize = 8; // 64 bits = 8 bytes
69 }
70 
71 #endif