CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
47  int unpack(const uint64_t ** data, unsigned int * dwToEnd, short tccChId=0);
48 
49  void display(std::ostream & o);
50 
51 
52  protected :
53 
54  virtual bool checkTccIdAndNumbTTs(){return true;};
55 
56  unsigned int tccId_;
57  unsigned int bx_;
58  unsigned int l1_;
59  unsigned int nTTs_;
60  unsigned int nTSamples_;
61  unsigned int expNumbTTs_;
62  unsigned int expTccId_;
63  unsigned int ps_;
64 
68  std::auto_ptr<EcalTrigPrimDigiCollection> * tps_;
69  std::auto_ptr<EcalPSInputDigiCollection> * pss_;
70 
71 };
72 
73 #endif
int unpack(const uint64_t **data, unsigned int *dwToEnd, short tccChId=0)
Definition: DCCTCCBlock.cc:11
EcalPseudoStripInputDigi * pPS_
Definition: DCCTCCBlock.h:67
unsigned int nTSamples_
Definition: DCCTCCBlock.h:60
std::auto_ptr< EcalTrigPrimDigiCollection > * tps_
Definition: DCCTCCBlock.h:68
DCCTCCBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpack)
Definition: DCCTCCBlock.cc:7
unsigned int l1_
Definition: DCCTCCBlock.h:58
EcalTrigTowerDetId * pTTDetId_
Definition: DCCTCCBlock.h:65
std::auto_ptr< EcalPSInputDigiCollection > * pss_
Definition: DCCTCCBlock.h:69
void display(std::ostream &o)
Definition: DCCTCCBlock.cc:122
EcalTriggerPrimitiveDigi * pTP_
Definition: DCCTCCBlock.h:66
virtual void addTriggerPrimitivesToCollection()
Definition: DCCTCCBlock.h:42
unsigned long long uint64_t
Definition: Time.h:15
unsigned int bx_
Definition: DCCTCCBlock.h:57
unsigned int tccId_
Definition: DCCTCCBlock.h:54
unsigned int expNumbTTs_
Definition: DCCTCCBlock.h:61
virtual bool checkTccIdAndNumbTTs()
Definition: DCCTCCBlock.h:54
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
unsigned int nTTs_
Definition: DCCTCCBlock.h:59
unsigned int ps_
Definition: DCCTCCBlock.h:63
unsigned int expTccId_
Definition: DCCTCCBlock.h:62