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 
65  std::unique_ptr<EcalTrigPrimDigiCollection>* tps_;
66  std::unique_ptr<EcalPSInputDigiCollection>* pss_;
67 };
68 
69 #endif
DCCEventBlock
Definition: DCCEventBlock.h:29
DCCTCCBlock::DCCTCCBlock
DCCTCCBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpack)
Definition: DCCTCCBlock.cc:7
DCCTCCBlock::pPS_
EcalPseudoStripInputDigi * pPS_
Definition: DCCTCCBlock.h:64
DCCDataUnpacker
Definition: DCCDataUnpacker.h:49
DCCTCCBlock::l1_
unsigned int l1_
Definition: DCCTCCBlock.h:55
DCCTCCBlock::pTTDetId_
EcalTrigTowerDetId * pTTDetId_
Definition: DCCTCCBlock.h:62
DCCTCCBlock::display
void display(std::ostream &o) override
Definition: DCCTCCBlock.cc:112
DCCDataBlockPrototype::unpack
virtual int unpack(const uint64_t **data, unsigned int *dwToEnd)
Definition: DCCDataBlockPrototype.h:40
DCCTCCBlock::unpack
int unpack(const uint64_t **data, unsigned int *dwToEnd, short tccChId=0)
Definition: DCCTCCBlock.cc:10
EcalTrigTowerDetId
Definition: EcalTrigTowerDetId.h:14
EcalPseudoStripInputDigi
Definition: EcalPseudoStripInputDigi.h:13
DCCDataBlockPrototype
Definition: DCCDataBlockPrototype.h:28
DCCTCCBlock::nTSamples_
unsigned int nTSamples_
Definition: DCCTCCBlock.h:57
EcalTriggerPrimitiveDigi.h
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
DCCTCCBlock::pTP_
EcalTriggerPrimitiveDigi * pTP_
Definition: DCCTCCBlock.h:63
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
EcalDigiCollections.h
EcalTrigTowerDetId.h
DCCTCCBlock::tps_
std::unique_ptr< EcalTrigPrimDigiCollection > * tps_
Definition: DCCTCCBlock.h:65
DCCTCCBlock::expNumbTTs_
unsigned int expNumbTTs_
Definition: DCCTCCBlock.h:58
DCCTCCBlock::checkTccIdAndNumbTTs
virtual bool checkTccIdAndNumbTTs()
Definition: DCCTCCBlock.h:51
DCCTCCBlock::pss_
std::unique_ptr< EcalPSInputDigiCollection > * pss_
Definition: DCCTCCBlock.h:66
DCCTCCBlock::addTriggerPrimitivesToCollection
virtual void addTriggerPrimitivesToCollection()
Definition: DCCTCCBlock.h:40
EcalPseudoStripInputDigi.h
EcalElectronicsMapper
Definition: EcalElectronicsMapper.h:36
DCCDataBlockPrototype.h
EcalTriggerPrimitiveSample.h
EcalTriggerPrimitiveDigi
Definition: EcalTriggerPrimitiveDigi.h:16
DCCTCCBlock::ps_
unsigned int ps_
Definition: DCCTCCBlock.h:60
DCCTCCBlock::bx_
unsigned int bx_
Definition: DCCTCCBlock.h:54
DCCTCCBlock::tccId_
unsigned int tccId_
Definition: DCCTCCBlock.h:51
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
DCCTCCBlock
Definition: DCCTCCBlock.h:33
DCCTCCBlock::expTccId_
unsigned int expTccId_
Definition: DCCTCCBlock.h:59
DCCTCCBlock::nTTs_
unsigned int nTTs_
Definition: DCCTCCBlock.h:56
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37