CMS 3D CMS Logo

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  const 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 
54  void increment(uint32_t numb);
55 
63  enum tccFields{
64  BXMASK = 0xFFF,
65  L1MASK = 0xFFF,
67  BLOCKID = 3,
69  ETMASK = 0xFF
70  };
71 
73  uint32_t expectedId_;
74 };
75 
76 #endif
virtual void increment(uint32_t numb, std::string msg="")
uint32_t expectedId_
Definition: DCCTCCBlock.h:73
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
void increment(uint32_t numb)
Definition: DCCTCCBlock.cc:86
DCCTBEventBlock * dccBlock_
Definition: DCCTCCBlock.h:72
DCCTBTCCBlock(DCCTBEventBlock *dccBlock, DCCTBDataParser *parser, const uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordEventOffset, uint32_t expectedId)
Definition: DCCTCCBlock.cc:13