Go to the documentation of this file.00001 #ifndef FORIA_L1TRIGGERBIT_HH
00002 #define FORIA_L1TRIGGERBIT_HH
00003
00004 #include "ForIA/L1TriggerBit.fh"
00005
00006 #include <vector>
00007 #include <bitset>
00008
00009 namespace ForIA{
00010
00011 using std::vector;
00012 using std::bitset;
00013
00014 class L1TriggerBit{
00015
00016 public:
00017
00018 enum Bit{MBTS_4_4=15, MBTS_1=226, MBTS_2=227, MBTS_1_1=228, N_BITS=256};
00019
00020 L1TriggerBit();
00021
00022 bool hasBit(Bit bit);
00023
00024 private:
00025
00026 friend class DataConverter;
00027
00028 void fillBits();
00029
00030 bool m_doFillBits;
00031
00032
00033 const vector<unsigned int> *m_rdo_TAV;
00034
00035
00036 unsigned int m_lvl1aBC;
00037
00038
00039 static const unsigned int s_nBitsPerBC;
00040
00041 bitset<N_BITS> m_bits;
00042
00043 };
00044
00045 }
00046 #endif