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  * $Date: 2012/08/06 21:51:35 $
12  * $Revision: 1.3 $
13  *
14  * \author N. Almeida
15  *
16  *
17 */
18 
19 #include <iostream>
20 #include <string>
21 #include <vector>
22 #include <map>
23 #include <utility>
24 
25 
31 
32 #include "DCCDataBlockPrototype.h"
33 
34 class DCCDataUnpacker;
35 
37 
38  public :
43 
45 
49  int unpack(const uint64_t ** data, unsigned int * dwToEnd, short tccChId=0);
50 
51  void display(std::ostream & o);
52 
53 
54  protected :
55 
56  virtual bool checkTccIdAndNumbTTs(){return true;};
57 
58  unsigned int tccId_;
59  unsigned int bx_;
60  unsigned int l1_;
61  unsigned int nTTs_;
62  unsigned int nTSamples_;
63  unsigned int expNumbTTs_;
64  unsigned int expTccId_;
65  unsigned int ps_;
66 
70  std::auto_ptr<EcalTrigPrimDigiCollection> * tps_;
71  std::auto_ptr<EcalPSInputDigiCollection> * pss_;
72 
73 };
74 
75 #endif
int unpack(const uint64_t **data, unsigned int *dwToEnd, short tccChId=0)
Definition: DCCTCCBlock.cc:11
EcalPseudoStripInputDigi * pPS_
Definition: DCCTCCBlock.h:69
unsigned int nTSamples_
Definition: DCCTCCBlock.h:62
std::auto_ptr< EcalTrigPrimDigiCollection > * tps_
Definition: DCCTCCBlock.h:70
DCCTCCBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpack)
Definition: DCCTCCBlock.cc:7
unsigned int l1_
Definition: DCCTCCBlock.h:60
EcalTrigTowerDetId * pTTDetId_
Definition: DCCTCCBlock.h:67
std::auto_ptr< EcalPSInputDigiCollection > * pss_
Definition: DCCTCCBlock.h:71
void display(std::ostream &o)
Definition: DCCTCCBlock.cc:122
EcalTriggerPrimitiveDigi * pTP_
Definition: DCCTCCBlock.h:68
virtual void addTriggerPrimitivesToCollection()
Definition: DCCTCCBlock.h:44
unsigned long long uint64_t
Definition: Time.h:15
unsigned int bx_
Definition: DCCTCCBlock.h:59
unsigned int tccId_
Definition: DCCTCCBlock.h:56
unsigned int expNumbTTs_
Definition: DCCTCCBlock.h:63
virtual bool checkTccIdAndNumbTTs()
Definition: DCCTCCBlock.h:56
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
unsigned int nTTs_
Definition: DCCTCCBlock.h:61
unsigned int ps_
Definition: DCCTCCBlock.h:65
unsigned int expTccId_
Definition: DCCTCCBlock.h:64