CMS 3D CMS Logo

DCCEventBlock.h
Go to the documentation of this file.
1 // Date : 30/05/2005
2 // Author : N.Almeida (LIP)
3 // falta fazer o update dos block sizes
4 
5 #ifndef DCCTBEVENTBLOCK_HH
6 #define DCCTBEVENTBLOCK_HH
7 
8 #include "DCCBlockPrototype.h"
9 
10 class DCCTBTowerBlock;
11 class DCCTBDataParser;
12 class DCCTBTrailerBlock;
13 class DCCTBTCCBlock;
14 class DCCTBSRPBlock;
15 
17 public:
19  const uint32_t* buffer,
20  uint32_t numbBytes,
21  uint32_t wordsToEnd,
22  uint32_t wordBufferOffset = 0,
23  uint32_t wordEventOffset = 0);
24 
25  ~DCCTBEventBlock() override;
26 
27  void dataCheck();
28 
29  std::vector<DCCTBTowerBlock*>& towerBlocks();
30  std::vector<DCCTBTCCBlock*>& tccBlocks();
33  std::vector<DCCTBTowerBlock*> towerBlocksById(uint32_t towerId);
35  std::pair<bool, std::string> compare(DCCTBEventBlock*);
36 
37  bool eventHasErrors();
39  void displayEvent(std::ostream& os = std::cout);
40 
41 protected:
42  enum dccFields {
43 
48 
53 
54  SR_NREAD = 0,
55 
56  BOE = 0x5,
57 
59 
62 
63  };
64 
65  std::vector<DCCTBTowerBlock*> towerBlocks_;
66  std::vector<DCCTBTCCBlock*> tccBlocks_;
70  bool emptyEvent;
71 };
72 
73 inline std::vector<DCCTBTowerBlock*>& DCCTBEventBlock::towerBlocks() { return towerBlocks_; }
74 inline std::vector<DCCTBTCCBlock*>& DCCTBEventBlock::tccBlocks() { return tccBlocks_; }
77 
78 #endif
DCCTBEventBlock::compare
std::pair< bool, std::string > compare(DCCTBEventBlock *)
Definition: DCCEventBlock.cc:307
DCCTBTCCBlock
Definition: DCCTCCBlock.h:23
DCCTBEventBlock::TESTTRIGGER
Definition: DCCEventBlock.h:46
DCCTBEventBlock::CH_ENABLED
Definition: DCCEventBlock.h:49
DCCTBEventBlock::eventHasErrors
bool eventHasErrors()
Definition: DCCEventBlock.cc:421
DCCTBEventBlock
Definition: DCCEventBlock.h:16
DCCTBEventBlock::towerBlocksById
std::vector< DCCTBTowerBlock * > towerBlocksById(uint32_t towerId)
Definition: DCCEventBlock.cc:521
DCCTBEventBlock::dataCheck
void dataCheck()
Definition: DCCEventBlock.cc:212
gather_cfg.cout
cout
Definition: gather_cfg.py:144
writedatasetfile.parser
parser
Definition: writedatasetfile.py:7
DCCTBEventBlock::CH_DISABLED
Definition: DCCEventBlock.h:50
DCCTBEventBlock::trailerBlock
DCCTBTrailerBlock * trailerBlock()
Definition: DCCEventBlock.h:76
edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
DCCTBEventBlock::DCCTBEventBlock
DCCTBEventBlock(DCCTBDataParser *parser, const uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordBufferOffset=0, uint32_t wordEventOffset=0)
Definition: DCCEventBlock.cc:15
DCCTBSRPBlock
Definition: DCCSRPBlock.h:19
DCCTBEventBlock::wordBufferOffset_
uint32_t wordBufferOffset_
Definition: DCCEventBlock.h:69
DCCTBEventBlock::srpBlock
DCCTBSRPBlock * srpBlock()
Definition: DCCEventBlock.h:75
DCCTBEventBlock::eventErrorString
std::string eventErrorString()
Definition: DCCEventBlock.cc:462
DCCTBEventBlock::srpBlock_
DCCTBSRPBlock * srpBlock_
Definition: DCCEventBlock.h:68
DCCTBTowerBlock
Definition: DCCTowerBlock.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DCCTBEventBlock::BOE
Definition: DCCEventBlock.h:56
DCCTBEventBlock::CH_SUPPRESS
Definition: DCCEventBlock.h:52
DCCBlockPrototype.h
DCCTBEventBlock::TRAILER_SIZE
Definition: DCCEventBlock.h:61
DCCTBEventBlock::towerBlocks
std::vector< DCCTBTowerBlock * > & towerBlocks()
Definition: DCCEventBlock.h:73
DCCTBEventBlock::CH_TIMEOUT
Definition: DCCEventBlock.h:51
DCCTBEventBlock::SR_NREAD
Definition: DCCEventBlock.h:54
DCCTBEventBlock::displayEvent
void displayEvent(std::ostream &os=std::cout)
Definition: DCCEventBlock.cc:268
DCCTBEventBlock::emptyEvent
bool emptyEvent
Definition: DCCEventBlock.h:70
ecaldqm::towerId
unsigned towerId(DetId const &)
Definition: EcalDQMCommonUtils.cc:79
DCCTBEventBlock::dccFields
dccFields
Definition: DCCEventBlock.h:42
DCCTBTrailerBlock
Definition: DCCTrailerBlock.h:10
DCCTBEventBlock::TECHNICALTRIGGER
Definition: DCCEventBlock.h:47
DCCTBEventBlock::dccTrailerBlock_
DCCTBTrailerBlock * dccTrailerBlock_
Definition: DCCEventBlock.h:67
DCCTBEventBlock::towerBlocks_
std::vector< DCCTBTowerBlock * > towerBlocks_
Definition: DCCEventBlock.h:65
DCCTBEventBlock::DCCERROR_EMPTYEVENT
Definition: DCCEventBlock.h:58
DCCTBEventBlock::tccBlocks_
std::vector< DCCTBTCCBlock * > tccBlocks_
Definition: DCCEventBlock.h:66
DCCTBEventBlock::PHYSICTRIGGER
Definition: DCCEventBlock.h:44
DCCTBDataParser
Definition: DCCDataParser.h:25
DCCTBEventBlock::~DCCTBEventBlock
~DCCTBEventBlock() override
Definition: DCCEventBlock.cc:191
DCCTBBlockPrototype
Definition: DCCBlockPrototype.h:21
DCCTBEventBlock::CALIBRATIONTRIGGER
Definition: DCCEventBlock.h:45
DCCTBEventBlock::tccBlocks
std::vector< DCCTBTCCBlock * > & tccBlocks()
Definition: DCCEventBlock.h:74
DCCTBEventBlock::TOWERHEADER_SIZE
Definition: DCCEventBlock.h:60
DCCTBBlockPrototype::compare
virtual std::pair< bool, std::string > compare(DCCTBBlockPrototype *block)
Definition: DCCBlockPrototype.cc:233