File indexing completed on 2025-08-05 08:20:26
0001 #ifndef __LL1HEADER_H__
0002 #define __LL1HEADER_H__
0003
0004 #include <TObject.h>
0005
0006 #include <iostream>
0007 #include <string>
0008
0009 static const int NXMIT = 18;
0010 static const Int_t PACKET[NXMIT] = {13001, 13002, 13010, 13011, 13012, 13013, 13014, 13015, 13016, 13017, 13018, 13019, 13020, 13021, 13022, 13023, 13024, 13025};
0011
0012 static const int NCHANPERMOD = 64;
0013 static const int NRSAM = 5;
0014 static const int NPEDSAM = 3;
0015
0016 static const int NCH = 52;
0017 static const int NRMOD = 4;
0018 static const int NTRIGWORDS = 8;
0019 static const int NCHARGESUM= 8;
0020 static const int NHITCHANNEL= 8;
0021 static const int NTIMESUM= 4;
0022 static const int NADCSH= 13;
0023 static const int nthresholds = 13;
0024 class LL1HEADER
0025 {
0026
0027 public:
0028 int runnumber=0;
0029 int evtnr=0;
0030 int clock=0;
0031 int nsamples=NRSAM;
0032 int channels=0;
0033 uint16_t monitor = 0;
0034
0035 int evenchecksum=0;
0036 int calcevenchecksum=0;
0037 int oddchecksum=0;
0038 int calcoddchecksum=0;
0039
0040 int femslot[NRMOD]={0};
0041 int femevtnr[NRMOD]={0};
0042 int femclock[NRMOD]={0};
0043
0044 int adc[NRMOD*NCHANPERMOD][NRSAM]={0};
0045 int channel[NCH][NRSAM]={0};
0046 int triggerwords[NTRIGWORDS][NRSAM]={0};
0047 float mean[NRMOD*NCHANPERMOD]={0.};
0048 float rms[NRMOD*NCHANPERMOD]={0.};
0049 int minadc[NRMOD*NCHANPERMOD]={0};
0050 int maxadc[NRMOD*NCHANPERMOD]={0};
0051 float pedestal[NRMOD*NCHANPERMOD]={0.};
0052 float pedsig[NRMOD*NCHANPERMOD]={0.};
0053 float peak[NRMOD*NCHANPERMOD]={0.};
0054 float time[NRMOD*NCHANPERMOD]={0.};
0055 float integral[NRMOD*NCHANPERMOD]={0.};
0056 float integral2[NRMOD*NCHANPERMOD]={0.};
0057
0058 int nhit_n1[NRSAM]={0};
0059 int nhit_n2[NRSAM]={0};
0060 int nhit_s1[NRSAM]={0};
0061 int nhit_s2[NRSAM]={0};
0062 int nhit_n[NRSAM]={0};
0063 int nhit_s[NRSAM]={0};
0064 int chargesum_s1[NRSAM]={0};
0065 int chargesum_s2[NRSAM]={0};
0066 int chargesum_n1[NRSAM]={0};
0067 int chargesum_n2[NRSAM]={0};
0068 int chargesum_s[NRSAM]={0};
0069 int chargesum_n[NRSAM]={0};
0070 int timesum_s1[NRSAM]={0};
0071 int timesum_s2[NRSAM]={0};
0072 int timesum_n1[NRSAM]={0};
0073 int timesum_n2[NRSAM]={0};
0074 int timesum_s[NRSAM]={0};
0075 int timesum_n[NRSAM]={0};
0076
0077 int hit_format_jet = 0;
0078 int jet_threshold[4]={0};
0079 int photon_threshold[4]={0};
0080 int mbd_threshold[5]={0};
0081
0082 int idxsample={0};
0083 int idxhitn={0};
0084 int idxhits={0};
0085
0086 int jet_input[12][32]={0};
0087 int jet_output[9][32]={0};
0088
0089 int emcal_2x2_map[48][128]={0};
0090 int emcal_8x8_map[12][32] = {0};;
0091
0092 int emcal_sample[16] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
0093 int jet_sample[16] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
0094
0095
0096 int summary[NXMIT]={0};
0097
0098 LL1HEADER() {};
0099
0100 ~LL1HEADER() {};
0101
0102 };
0103
0104 #endif