CMS 3D CMS Logo

DCCTowerBlock.h
Go to the documentation of this file.
1 // Date : 02/03/2004
2 // Author : N.Almeida (LIP)
3 
4 
5 #ifndef DCCTBTOWERBLOCK_HH
6 #define DCCTBTOWERBLOCK_HH
7 
8 #include <iostream>
9 #include <string>
10 #include <vector>
11 #include <map>
12 #include <utility>
13 
14 
15 #include "DCCBlockPrototype.h"
16 
17 class DCCTBEventBlock;
18 class DCCTBXtalBlock;
19 class DCCTBDataParser;
20 
22 
23  public :
24 
26  DCCTBEventBlock * dccBlock,
28  uint32_t * buffer,
29  uint32_t numbBytes,
30  uint32_t wordsToEnd,
31  uint32_t wordEventOffset,
32  uint32_t expectedTowerID
33  );
34 
35  ~DCCTBTowerBlock() override;
36 
37  void parseXtalData();
38  int towerID();
39 
40  std::vector< DCCTBXtalBlock * > & xtalBlocks();
41 
42  std::vector< DCCTBXtalBlock * > xtalBlocksById(uint32_t stripId, uint32_t xtalId);
43 
44  protected :
45 
46  void dataCheck();
47 
48  enum towerFields{ BXMASK = 0xFFF,L1MASK = 0xFFF };
49 
50  std::vector<DCCTBXtalBlock * > xtalBlocks_;
52  uint32_t expectedTowerID_;
53 
54 
55 };
56 
57 inline std::vector<DCCTBXtalBlock *> & DCCTBTowerBlock::xtalBlocks(){ return xtalBlocks_; }
58 
59 #endif
std::vector< DCCTBXtalBlock * > & xtalBlocks()
Definition: DCCTowerBlock.h:57
~DCCTBTowerBlock() override
DCCTBTowerBlock(DCCTBEventBlock *dccBlock, DCCTBDataParser *parser, uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordEventOffset, uint32_t expectedTowerID)
std::vector< DCCTBXtalBlock * > xtalBlocks_
Definition: DCCTowerBlock.h:50
uint32_t expectedTowerID_
Definition: DCCTowerBlock.h:52
DCCTBEventBlock * dccBlock_
Definition: DCCTowerBlock.h:51
std::vector< DCCTBXtalBlock * > xtalBlocksById(uint32_t stripId, uint32_t xtalId)