test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DCCTCCBlock.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------*/
2 /* DCC TCC BLOCK CLASS */
3 /* */
4 /* Author : N.Almeida (LIP) Date : 30/05/2005 */
5 /*--------------------------------------------------------------*/
6 #ifndef DCCTBTCCBLOCK_HH
7 #define DCCTBTCCBLOCK_HH
8 
9 #include <iostream> //STL
10 #include <string>
11 #include <vector>
12 #include <map>
13 #include <utility>
14 
15 #include "DCCBlockPrototype.h" //DATA DECODER
16 #include "DCCDataParser.h"
17 #include "DCCDataMapper.h"
18 #include "DCCEventBlock.h"
19 
20 class DCCTBEventBlock;
21 class DCCTBDataParser;
22 
23 
25 
26 public :
30  DCCTBTCCBlock(DCCTBEventBlock * dccBlock,
32  uint32_t * buffer,
33  uint32_t numbBytes,
34  uint32_t wordsToEnd,
35  uint32_t wordEventOffset,
36  uint32_t expectedId );
37 
38 
39 
40  std::vector< std::pair<int, bool> > triggerSamples();
41 
42  std::vector<int> triggerFlags();
43 
44 protected :
48  void dataCheck();
49 
53  void increment(uint32_t numb);
54 
62  enum tccFields{
63  BXMASK = 0xFFF,
64  L1MASK = 0xFFF,
66  BLOCKID = 3,
68  ETMASK = 0xFF
69  };
70 
72  uint32_t expectedId_;
73 };
74 
75 #endif
uint32_t expectedId_
Definition: DCCTCCBlock.h:72
void dataCheck()
Definition: DCCTCCBlock.cc:43
std::vector< int > triggerFlags()
Definition: DCCTCCBlock.cc:124
std::vector< std::pair< int, bool > > triggerSamples()
Definition: DCCTCCBlock.cc:107
DCCTBTCCBlock(DCCTBEventBlock *dccBlock, DCCTBDataParser *parser, uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordEventOffset, uint32_t expectedId)
Definition: DCCTCCBlock.cc:13
void increment(uint32_t numb)
Definition: DCCTCCBlock.cc:86
DCCTBEventBlock * dccBlock_
Definition: DCCTCCBlock.h:71