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 
24 public:
30  const uint32_t* buffer,
31  uint32_t numbBytes,
32  uint32_t wordsToEnd,
33  uint32_t wordEventOffset,
34  uint32_t expectedId);
35 
36  std::vector<std::pair<int, bool> > triggerSamples();
37 
38  std::vector<int> triggerFlags();
39 
40 protected:
44  void dataCheck();
45 
50  void increment(uint32_t numb);
51 
59  enum tccFields {
60  BXMASK = 0xFFF,
61  L1MASK = 0xFFF,
63  BLOCKID = 3,
65  ETMASK = 0xFF
66  };
67 
69  uint32_t expectedId_;
70 };
71 
72 #endif
virtual void increment(uint32_t numb, std::string msg="")
uint32_t expectedId_
Definition: DCCTCCBlock.h:69
void dataCheck()
Definition: DCCTCCBlock.cc:47
std::vector< int > triggerFlags()
Definition: DCCTCCBlock.cc:117
std::vector< std::pair< int, bool > > triggerSamples()
Definition: DCCTCCBlock.cc:104
void increment(uint32_t numb)
Definition: DCCTCCBlock.cc:87
DCCTBEventBlock * dccBlock_
Definition: DCCTCCBlock.h:68
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