File indexing completed on 2024-04-06 12:10:37
0001
0002
0003
0004 #ifndef DCCTBXTALBLOCK_HH
0005 #define DCCTBXTALBLOCK_HH
0006
0007 #include "DCCBlockPrototype.h"
0008 class DCCTBDataParser;
0009
0010 class DCCTBXtalBlock : public DCCTBBlockPrototype {
0011 public:
0012 DCCTBXtalBlock(DCCTBDataParser* parser,
0013 const uint32_t* buffer,
0014 uint32_t numbBytes,
0015 uint32_t wordsToEnd,
0016 uint32_t wordEventOffset,
0017 uint32_t expectedXtalID,
0018 uint32_t expectedStripID);
0019
0020 void dataCheck();
0021 int xtalID();
0022 int stripID();
0023 std::vector<int> xtalDataSamples();
0024
0025 protected:
0026 using DCCTBBlockPrototype::increment;
0027 void increment(uint32_t numb);
0028
0029 enum xtalBlockFields { BPOSITION_BLOCKID = 30, BLOCKID = 3 };
0030
0031 uint32_t expectedXtalID_;
0032 uint32_t expectedStripID_;
0033 };
0034 #endif