File indexing completed on 2025-08-05 08:14:37
0001
0002 #ifndef _HCALCONTROLS_H_
0003 #define _HCALCONTROLS_H_
0004 #include <Riostream.h>
0005 #include <TString.h>
0006
0007
0008 enum OBJECTKINDS {
0009 CALOR,
0010 COUNTER
0011 };
0012 enum GAINS {
0013 HIGH,
0014 LOW
0015 };
0016 enum STACKS{
0017 EMC,
0018 HINNER,
0019 HOUTER,
0020 HODO,
0021 SCINT,
0022 CHER
0023 };
0024
0025
0026
0027
0028 static const int READOUTCHANNELS = 192;
0029
0030 static const int TRIGGERCHANNELS = 0;
0031
0032
0033 static const int chinspected = 32;
0034 static const int triggerinsp = 0;
0035
0036
0037
0038
0039 static const int CALSTACKS = 6;
0040 static const int T1044TRIGGERCH = 14;
0041 static const int T1044HODO = 16;
0042 static const int NSAMPLES = 24;
0043 static const Double_t PEDESTAL = 2048.;
0044
0045
0046
0047
0048
0049
0050 static Int_t TRGAINRANGE = 0;
0051 static const Int_t STTOTAMPTHR = 10;
0052 static const Int_t TWRAMPTHR = 1;
0053 static const Int_t STHITMIN = 3;
0054 static const Int_t STHITMAX = 14;
0055
0056
0057 static const Double_t TWRZEROSUPTHR = 1.;
0058 static const Double_t STZEROSUPTHR = 5.;
0059 static const Double_t HLGRATIO = 16.;
0060 static const Float_t hlgratios[] = { 1., 32., 16., 1., 1., 1.};
0061 static Int_t emcGainSelection = 1;
0062
0063 static const int HCALTOWERS = 16;
0064 static const int HCALROWS = 4;
0065 static const int HCALCOLUMNS = 4;
0066 static const int HCALGAINS = 2;
0067
0068
0069 static const int EMCTOWERS = 64;
0070 static const int EMCROWS = 8;
0071 static const int EMCCOLUMNS = 8;
0072 static const int EMCGAINS = 1;
0073
0074 static int CHTOTAL = 0;
0075 static int ACTIVECHANNELS = 0;
0076 static int detchannels = 0;
0077 static int hgDetChannels = 0;
0078 static int lgDetChannels = 0;
0079 static const int ovrflow = 1990;
0080 static const int undflow = -1990;
0081
0082
0083 static const Double_t stECalib[] = {0.008, 0.010, 0.005, 1., 1., 1.};
0084
0085
0086 static Double_t stAScale[] = {1., 2., 1., 1., 1., 1.};
0087
0088
0089 static const int TILEFIBERS = 4;
0090 static const int TILECHANNELS = 2*TILEFIBERS;
0091
0092
0093
0094 static const int TILETRIGGERCH = 8;
0095 static const int TRIGGERRES = 3;
0096 static const int CHANNELTHRESHOLDS = 25;
0097 static const int HITMULTTHRESHOLDS = 8;
0098 static const int RISETIME = 4;
0099 static const int FALLTIME = 5;
0100 static const int NPARAMETERS = 6;
0101 static const int DISPLAYX = 4;
0102
0103
0104
0105
0106
0107 static const int chInUse[] = { 115, 113, 119, 117, 123, 121, 127, 125 };
0108
0109
0110
0111
0112
0113
0114 static const int feechinsp[] = {64,72,80,88,66,74,82,90,68,76,84,92,70,78,86,94,
0115 65,73,81,89,67,75,83,91,69,77,85,93,71,79,87,95};
0116
0117
0118 static const int hcalInnerCh[] = { 64, 72, 80, 88, 66, 74, 82, 90, 68, 76, 84, 92, 70, 78, 86, 94,
0119 65, 73, 81, 89, 67, 75, 83, 91, 69, 77, 85, 93, 71, 79, 87, 95};
0120 static const int hcalOuterCh[] = {112,120,128,136,114,122,130,138,116,124,132,140,118,126,134,142,
0121 113,121,129,137,115,123,131,139,117,125,133,141,119,127,135,143};
0122
0123
0124
0125
0126
0127
0128
0129 static const int emcCh[] = { 5, 4, 7, 6, 1, 0, 3, 2, 13, 12, 15, 14, 9, 8, 11, 10,
0130 21, 20, 23, 22, 17, 16, 19, 18, 29, 28, 31, 30, 25, 24, 27, 26,
0131 37, 36, 39, 38, 33, 32, 35, 34, 45, 44, 47, 46, 41, 40, 43, 42,
0132 53, 52, 55, 54, 49, 48, 51, 50, 61, 60, 63, 62, 57, 56, 59, 58};
0133 static const int hodoCh[] = { 96, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111};
0134 static const int counters[] = { 144,145,146,147,148,149,150,
0135 160,161,162,163,164,165,166};
0136
0137
0138
0139
0140 static const Double_t tileSizeX = 25.;
0141 static const Double_t tileSizeY = 15.;
0142 static const Int_t minProjEntries = 50;
0143
0144 static const int feech1[] = { 115, 119, 123, 127, 113, 117, 121, 125 };
0145 static const int feech2[] = { 115, 113, 119, 117, 123, 121, 127, 125 };
0146
0147
0148
0149 static const int trch1125[] = { 128, 129, 130, 131 };
0150 static const int trch1152[] = { 98, 99, 129, 131 };
0151
0152 static const Double_t sc_779[] = { 3.6, 5.2, 5.2, 4.5, 6.6, 5.3, 7.9, 4.2 };
0153 static const Double_t mu_779[] = { 72.7, 130.6, 141.5, 132.1, 132., 138., 135.5, 68.4 };
0154
0155 static const Double_t sc_900[] = { 6.6, 12.3, 12.9, 12.3, 14.6, 14.2, 12.25, 6.42 };
0156
0157 static const Double_t sc_1061[] = { 6.71, 12.74, 13.13, 12.76, 14.30, 14.35, 12.70, 6.56 };
0158
0159
0160 static const Double_t sc_1123[] = { 6.61, 11.83, 12.77, 12.41, 13.75, 13.55, 12.31, 6.44 };
0161
0162
0163
0164
0165
0166
0167
0168
0169
0170
0171
0172
0173
0174
0175
0176
0177
0178
0179
0180
0181 static const TString RCFdataDir("/sphenix/data/data01/t1044-2016a/fnal/");
0182 static const TString RCFrootDir("/sphenix/data/data01/kistenev/rootf/");
0183
0184
0185 static const TString HLABdataDir("/scratch/buffer/bnl/");
0186 static const TString HLABrootDir("/scratch/buffer/bnl/rootf/");
0187
0188
0189
0190 #define piMass 0.1356
0191
0192
0193
0194 #endif