Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:41

0001 #ifndef __PACKET_IDLL1V2_H__
0002 #define __PACKET_IDLL1V2_H__
0003 
0004 
0005 #include "packet_w124.h"
0006 
0007 #ifndef __CINT__
0008 class WINDOWSEXPORT Packet_idll1v2 : public  Packet_w4 {
0009 #else
0010 class  Packet_idll1v2 : public  Packet_w4 {
0011 #endif
0012 
0013 public:
0014   Packet_idll1v2( PACKET_ptr);
0015   ~Packet_idll1v2();
0016 
0017   int    iValue(const int sample, const int ch);
0018   int    iValue(const int ,const char * what);
0019   void  dump ( OSTREAM& os = COUT) ;
0020 
0021 
0022 protected:
0023   int decode ();
0024 
0025   enum TRIGGERTYPE {
0026     NONE = 0,
0027     MBD = 1,
0028     EMCAL = 2,
0029     JET = 3
0030   };
0031 
0032   enum DETECTORTYPE {
0033     dNONE = 0,
0034     dEMCAL = 1,
0035     dHCAL = 2,
0036     dMBD = 3
0037   };
0038 
0039   TRIGGERTYPE _trigger_type;
0040   DETECTORTYPE _detector_type;
0041 
0042   int _monitor;
0043   int _evt_nr;
0044   int _clock;
0045 
0046   int _slot_nr;
0047   int _card_nr;
0048   int _ntrigger_words;
0049   int _nsamples;
0050 
0051   int _nfibers;
0052   int _nsums;
0053 
0054   int _nchannels;
0055   int _is_decoded;
0056 
0057   int array[256][20] {{0}};
0058   int upperbits[10] = { 15, 
0059             15,
0060             7,
0061             7,
0062             7, 
0063             7,
0064             9,
0065             10,
0066             16,
0067             25};
0068 
0069   int itrig_sums[24][16][20] {{{0}}};
0070   int itrig_emcal_8x8map[2][12][20] {{{0}}};
0071   int itrig_emcal_2x2map[128][20] {{0}};
0072   int itrig_emcal_2x2sum[64][20] {{0}};
0073   int jet_map[32][12][20] {{{0}}};
0074   int jet_sum_result[32][9][20] {{{0}}};
0075   int itrig_charge[4][8][32];
0076   int itrig_nhit[4][32];
0077   int itrig_time[4][4][32];
0078   int triggerwords[8][32];
0079 
0080 };
0081 
0082 
0083 #endif /* __PACKET_IDLL1V1_H__ */