CMS 3D CMS Logo

DCCTCCBlock.h
Go to the documentation of this file.
1 #ifndef DCCTCCBLOCK_HH
2 #define DCCTCCBLOCK_HH
3 
4 /*
5  *\ Class DCCTCCBlock
6  *
7  * Class responsible for the trigger primitives unpacking.
8  *
9  * \file DCCTCCBlock.h
10  *
11  *
12  * \author N. Almeida
13  *
14  *
15 */
16 
17 #include <iostream>
18 #include <string>
19 #include <vector>
20 #include <map>
21 #include <utility>
22 
28 
29 #include "DCCDataBlockPrototype.h"
30 
31 class DCCDataUnpacker;
32 
34 public:
39 
41 
46  int unpack(const uint64_t** data, unsigned int* dwToEnd, short tccChId = 0);
47 
48  void display(std::ostream& o) override;
49 
50 protected:
51  virtual bool checkTccIdAndNumbTTs() { return true; };
52 
53  unsigned int tccId_;
54  unsigned int bx_;
55  unsigned int l1_;
56  unsigned int nTTs_;
57  unsigned int nTSamples_;
58  unsigned int expNumbTTs_;
59  unsigned int expTccId_;
60  unsigned int ps_;
61 
64  std::unique_ptr<EcalTrigPrimDigiCollection>* tps_;
65  std::unique_ptr<EcalPSInputDigiCollection>* pss_;
66 };
67 
68 #endif
void display(std::ostream &o) override
Definition: DCCTCCBlock.cc:112
int unpack(const uint64_t **data, unsigned int *dwToEnd, short tccChId=0)
Definition: DCCTCCBlock.cc:10
EcalPseudoStripInputDigi * pPS_
Definition: DCCTCCBlock.h:63
unsigned int nTSamples_
Definition: DCCTCCBlock.h:57
DCCTCCBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpack)
Definition: DCCTCCBlock.cc:7
std::unique_ptr< EcalTrigPrimDigiCollection > * tps_
Definition: DCCTCCBlock.h:64
unsigned int l1_
Definition: DCCTCCBlock.h:55
std::unique_ptr< EcalPSInputDigiCollection > * pss_
Definition: DCCTCCBlock.h:65
EcalTriggerPrimitiveDigi * pTP_
Definition: DCCTCCBlock.h:62
virtual void addTriggerPrimitivesToCollection()
Definition: DCCTCCBlock.h:40
unsigned long long uint64_t
Definition: Time.h:13
unsigned int bx_
Definition: DCCTCCBlock.h:54
unsigned int tccId_
Definition: DCCTCCBlock.h:51
unsigned int expNumbTTs_
Definition: DCCTCCBlock.h:58
virtual bool checkTccIdAndNumbTTs()
Definition: DCCTCCBlock.h:51
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
unsigned int nTTs_
Definition: DCCTCCBlock.h:56
virtual int unpack(const uint64_t **data, unsigned int *dwToEnd)
unsigned int ps_
Definition: DCCTCCBlock.h:60
unsigned int expTccId_
Definition: DCCTCCBlock.h:59