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 
23 
29 
30 #include "DCCDataBlockPrototype.h"
31 
32 class DCCDataUnpacker;
33 
35 
36  public :
41 
43 
48  int unpack(const uint64_t ** data, unsigned int * dwToEnd, short tccChId=0);
49 
50  void display(std::ostream & o);
51 
52 
53  protected :
54 
55  virtual bool checkTccIdAndNumbTTs(){return true;};
56 
57  unsigned int tccId_;
58  unsigned int bx_;
59  unsigned int l1_;
60  unsigned int nTTs_;
61  unsigned int nTSamples_;
62  unsigned int expNumbTTs_;
63  unsigned int expTccId_;
64  unsigned int ps_;
65 
69  std::unique_ptr<EcalTrigPrimDigiCollection> * tps_;
70  std::unique_ptr<EcalPSInputDigiCollection> * pss_;
71 
72 };
73 
74 #endif
int unpack(const uint64_t **data, unsigned int *dwToEnd, short tccChId=0)
Definition: DCCTCCBlock.cc:11
EcalPseudoStripInputDigi * pPS_
Definition: DCCTCCBlock.h:68
unsigned int nTSamples_
Definition: DCCTCCBlock.h:61
DCCTCCBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpack)
Definition: DCCTCCBlock.cc:7
std::unique_ptr< EcalTrigPrimDigiCollection > * tps_
Definition: DCCTCCBlock.h:69
unsigned int l1_
Definition: DCCTCCBlock.h:59
EcalTrigTowerDetId * pTTDetId_
Definition: DCCTCCBlock.h:66
std::unique_ptr< EcalPSInputDigiCollection > * pss_
Definition: DCCTCCBlock.h:70
void display(std::ostream &o)
Definition: DCCTCCBlock.cc:122
EcalTriggerPrimitiveDigi * pTP_
Definition: DCCTCCBlock.h:67
virtual void addTriggerPrimitivesToCollection()
Definition: DCCTCCBlock.h:42
unsigned long long uint64_t
Definition: Time.h:15
unsigned int bx_
Definition: DCCTCCBlock.h:58
unsigned int tccId_
Definition: DCCTCCBlock.h:55
unsigned int expNumbTTs_
Definition: DCCTCCBlock.h:62
virtual bool checkTccIdAndNumbTTs()
Definition: DCCTCCBlock.h:55
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
unsigned int nTTs_
Definition: DCCTCCBlock.h:60
virtual int unpack(const uint64_t **data, unsigned int *dwToEnd)
unsigned int ps_
Definition: DCCTCCBlock.h:64
unsigned int expTccId_
Definition: DCCTCCBlock.h:63