src
EventFilter
CSCRawToDigi
interface
CSCVTMBHeaderFormat.h
Go to the documentation of this file.
1
#ifndef EventFilter_CSCRawToDigi_CSCVTMBHeaderFormat_h
2
#define EventFilter_CSCRawToDigi_CSCVTMBHeaderFormat_h
3
4
#include "
DataFormats/CSCDigi/interface/CSCCLCTDigi.h
"
5
#include "
DataFormats/CSCDigi/interface/CSCALCTDigi.h
"
6
#include "
DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigi.h
"
7
#include "
DataFormats/CSCDigi/interface/CSCShowerDigi.h
"
8
#include "
DataFormats/MuonDetId/interface/CSCDetId.h
"
9
#include "
DataFormats/CSCDigi/interface/CSCConstants.h
"
10
#include <vector>
11
#include <iosfwd>
12
#include <strings.h>
13
class
CSCDMBHeader
;
14
15
class
CSCVTMBHeaderFormat
{
16
public
:
17
virtual
~CSCVTMBHeaderFormat
() {}
18
19
virtual
void
setEventInformation
(
const
CSCDMBHeader
&) = 0;
20
virtual
uint16_t
BXNCount
()
const
= 0;
21
virtual
uint16_t
ALCTMatchTime
()
const
= 0;
22
virtual
void
setALCTMatchTime
(uint16_t alctmatchtime) = 0;
23
virtual
uint16_t
CLCTOnly
()
const
= 0;
24
virtual
uint16_t
ALCTOnly
()
const
= 0;
25
virtual
uint16_t
TMBMatch
()
const
= 0;
26
virtual
uint16_t
Bxn0Diff
()
const
= 0;
27
virtual
uint16_t
Bxn1Diff
()
const
= 0;
28
virtual
uint16_t
L1ANumber
()
const
= 0;
29
virtual
uint16_t
syncError
()
const
= 0;
30
virtual
uint16_t
syncErrorCLCT
()
const
= 0;
31
virtual
uint16_t
syncErrorMPC0
()
const
= 0;
32
virtual
uint16_t
syncErrorMPC1
()
const
= 0;
33
virtual
uint16_t
L1AMatchTime
()
const
= 0;
34
36
virtual
uint16_t
clct0_ComparatorCode
()
const
= 0;
37
virtual
uint16_t
clct1_ComparatorCode
()
const
= 0;
38
virtual
uint16_t
clct0_xky
()
const
= 0;
39
virtual
uint16_t
clct1_xky
()
const
= 0;
40
virtual
uint16_t
hmt_nhits
()
const
= 0;
41
virtual
uint16_t
hmt_ALCTMatchTime
()
const
= 0;
42
virtual
uint16_t
alctHMT
()
const
= 0;
43
virtual
uint16_t
clctHMT
()
const
= 0;
44
virtual
uint16_t
gem_enabled_fibers
()
const
= 0;
45
virtual
uint16_t
gem_fifo_tbins
()
const
= 0;
46
virtual
uint16_t
gem_fifo_pretrig
()
const
= 0;
47
virtual
uint16_t
gem_zero_suppress
()
const
= 0;
48
virtual
uint16_t
gem_sync_dataword
()
const
= 0;
49
virtual
uint16_t
gem_timing_dataword
()
const
= 0;
50
virtual
uint16_t
run3_CLCT_patternID
()
const
= 0;
51
52
uint16_t
sizeInBytes
()
const
{
return
sizeInWords
() * 2; }
53
virtual
uint16_t
NTBins
()
const
= 0;
54
virtual
uint16_t
NCFEBs
()
const
= 0;
55
virtual
void
setNCFEBs
(uint16_t ncfebs) = 0;
56
virtual
uint16_t
firmwareRevision
()
const
= 0;
58
virtual
std::vector<CSCCLCTDigi>
CLCTDigis
(uint32_t idlayer) = 0;
60
virtual
std::vector<CSCCorrelatedLCTDigi>
CorrelatedLCTDigis
(uint32_t idlayer)
const
= 0;
62
virtual
CSCShowerDigi
showerDigi
(uint32_t idlayer)
const
= 0;
64
virtual
CSCShowerDigi
anodeShowerDigi
(uint32_t idlayer)
const
= 0;
66
virtual
CSCShowerDigi
cathodeShowerDigi
(uint32_t idlayer)
const
= 0;
67
70
virtual
unsigned
short
int
sizeInWords
()
const
= 0;
71
72
virtual
unsigned
short
int
NHeaderFrames
()
const
= 0;
73
virtual
unsigned
short
*
data
() = 0;
74
virtual
bool
check
()
const
= 0;
75
77
virtual
void
addCLCT0
(
const
CSCCLCTDigi
& digi) = 0;
78
virtual
void
addCLCT1
(
const
CSCCLCTDigi
& digi) = 0;
79
virtual
void
addALCT0
(
const
CSCALCTDigi
& digi) = 0;
80
virtual
void
addALCT1
(
const
CSCALCTDigi
& digi) = 0;
81
virtual
void
addCorrelatedLCT0
(
const
CSCCorrelatedLCTDigi
& digi) = 0;
82
virtual
void
addCorrelatedLCT1
(
const
CSCCorrelatedLCTDigi
& digi) = 0;
83
virtual
void
addShower
(
const
CSCShowerDigi
& digi) = 0;
84
virtual
void
addAnodeShower
(
const
CSCShowerDigi
& digi) = 0;
85
virtual
void
addCathodeShower
(
const
CSCShowerDigi
& digi) = 0;
86
87
virtual
void
print
(std::ostream&
os
)
const
= 0;
88
89
protected
:
90
void
swapCLCTs
(
CSCCLCTDigi
& digi1,
CSCCLCTDigi
& digi2);
91
};
92
93
#endif
CSCVTMBHeaderFormat::addCorrelatedLCT0
virtual void addCorrelatedLCT0(const CSCCorrelatedLCTDigi &digi)=0
CSCVTMBHeaderFormat::cathodeShowerDigi
virtual CSCShowerDigi cathodeShowerDigi(uint32_t idlayer) const =0
returns Run3 cathode HMT Shower digi
CSCShowerDigi
Definition:
CSCShowerDigi.h:9
CSCVTMBHeaderFormat::gem_timing_dataword
virtual uint16_t gem_timing_dataword() const =0
CSCVTMBHeaderFormat::gem_fifo_pretrig
virtual uint16_t gem_fifo_pretrig() const =0
CSCCorrelatedLCTDigi.h
CSCVTMBHeaderFormat::gem_enabled_fibers
virtual uint16_t gem_enabled_fibers() const =0
CSCALCTDigi
Definition:
CSCALCTDigi.h:17
CSCVTMBHeaderFormat::data
virtual unsigned short * data()=0
CSCDetId.h
CSCVTMBHeaderFormat::NCFEBs
virtual uint16_t NCFEBs() const =0
CSCVTMBHeaderFormat::CLCTOnly
virtual uint16_t CLCTOnly() const =0
CSCVTMBHeaderFormat::hmt_ALCTMatchTime
virtual uint16_t hmt_ALCTMatchTime() const =0
CSCConstants.h
CSCVTMBHeaderFormat::TMBMatch
virtual uint16_t TMBMatch() const =0
CSCVTMBHeaderFormat::addCorrelatedLCT1
virtual void addCorrelatedLCT1(const CSCCorrelatedLCTDigi &digi)=0
CSCVTMBHeaderFormat::ALCTMatchTime
virtual uint16_t ALCTMatchTime() const =0
CSCVTMBHeaderFormat::gem_sync_dataword
virtual uint16_t gem_sync_dataword() const =0
CSCVTMBHeaderFormat::run3_CLCT_patternID
virtual uint16_t run3_CLCT_patternID() const =0
CSCVTMBHeaderFormat::syncErrorCLCT
virtual uint16_t syncErrorCLCT() const =0
CSCVTMBHeaderFormat::addALCT1
virtual void addALCT1(const CSCALCTDigi &digi)=0
CSCVTMBHeaderFormat::anodeShowerDigi
virtual CSCShowerDigi anodeShowerDigi(uint32_t idlayer) const =0
returns Run3 anode HMT Shower digi
CSCVTMBHeaderFormat::clct0_xky
virtual uint16_t clct0_xky() const =0
CSCVTMBHeaderFormat::firmwareRevision
virtual uint16_t firmwareRevision() const =0
CSCVTMBHeaderFormat::print
virtual void print(std::ostream &os) const =0
CSCVTMBHeaderFormat::addCLCT0
virtual void addCLCT0(const CSCCLCTDigi &digi)=0
for data packing
CSCVTMBHeaderFormat::alctHMT
virtual uint16_t alctHMT() const =0
CSCALCTDigi.h
CSCVTMBHeaderFormat::NHeaderFrames
virtual unsigned short int NHeaderFrames() const =0
CSCVTMBHeaderFormat::L1AMatchTime
virtual uint16_t L1AMatchTime() const =0
CSCVTMBHeaderFormat::addALCT0
virtual void addALCT0(const CSCALCTDigi &digi)=0
l1tGTMenu_BTagSeeds_cff.os
os
Definition:
l1tGTMenu_BTagSeeds_cff.py:34
CSCVTMBHeaderFormat::~CSCVTMBHeaderFormat
virtual ~CSCVTMBHeaderFormat()
Definition:
CSCVTMBHeaderFormat.h:17
CSCVTMBHeaderFormat::CorrelatedLCTDigis
virtual std::vector< CSCCorrelatedLCTDigi > CorrelatedLCTDigis(uint32_t idlayer) const =0
returns CorrelatedLCT digis
CSCVTMBHeaderFormat::Bxn0Diff
virtual uint16_t Bxn0Diff() const =0
CSCVTMBHeaderFormat::addCathodeShower
virtual void addCathodeShower(const CSCShowerDigi &digi)=0
CSCVTMBHeaderFormat::setEventInformation
virtual void setEventInformation(const CSCDMBHeader &)=0
CSCVTMBHeaderFormat::hmt_nhits
virtual uint16_t hmt_nhits() const =0
CSCCLCTDigi
Definition:
CSCCLCTDigi.h:17
CSCVTMBHeaderFormat::ALCTOnly
virtual uint16_t ALCTOnly() const =0
CSCVTMBHeaderFormat::Bxn1Diff
virtual uint16_t Bxn1Diff() const =0
CSCVTMBHeaderFormat::addCLCT1
virtual void addCLCT1(const CSCCLCTDigi &digi)=0
CSCVTMBHeaderFormat::setNCFEBs
virtual void setNCFEBs(uint16_t ncfebs)=0
CSCVTMBHeaderFormat::syncErrorMPC0
virtual uint16_t syncErrorMPC0() const =0
CSCVTMBHeaderFormat::CLCTDigis
virtual std::vector< CSCCLCTDigi > CLCTDigis(uint32_t idlayer)=0
returns CLCT digis
CSCVTMBHeaderFormat::addShower
virtual void addShower(const CSCShowerDigi &digi)=0
CSCVTMBHeaderFormat::addAnodeShower
virtual void addAnodeShower(const CSCShowerDigi &digi)=0
CSCVTMBHeaderFormat::gem_fifo_tbins
virtual uint16_t gem_fifo_tbins() const =0
CSCShowerDigi.h
CSCVTMBHeaderFormat::sizeInWords
virtual unsigned short int sizeInWords() const =0
CSCVTMBHeaderFormat::sizeInBytes
uint16_t sizeInBytes() const
Definition:
CSCVTMBHeaderFormat.h:52
CSCVTMBHeaderFormat::BXNCount
virtual uint16_t BXNCount() const =0
CSCVTMBHeaderFormat::syncError
virtual uint16_t syncError() const =0
CSCVTMBHeaderFormat::swapCLCTs
void swapCLCTs(CSCCLCTDigi &digi1, CSCCLCTDigi &digi2)
CSCVTMBHeaderFormat::setALCTMatchTime
virtual void setALCTMatchTime(uint16_t alctmatchtime)=0
CSCVTMBHeaderFormat::gem_zero_suppress
virtual uint16_t gem_zero_suppress() const =0
CSCVTMBHeaderFormat
Definition:
CSCVTMBHeaderFormat.h:15
CSCVTMBHeaderFormat::clctHMT
virtual uint16_t clctHMT() const =0
CSCVTMBHeaderFormat::NTBins
virtual uint16_t NTBins() const =0
CSCCLCTDigi.h
CSCVTMBHeaderFormat::showerDigi
virtual CSCShowerDigi showerDigi(uint32_t idlayer) const =0
returns Run3 lct HMT Shower digi
CSCVTMBHeaderFormat::clct1_xky
virtual uint16_t clct1_xky() const =0
CSCVTMBHeaderFormat::L1ANumber
virtual uint16_t L1ANumber() const =0
CSCVTMBHeaderFormat::clct0_ComparatorCode
virtual uint16_t clct0_ComparatorCode() const =0
== Run 3 CSC-GEM Trigger Format
CSCCorrelatedLCTDigi
Definition:
CSCCorrelatedLCTDigi.h:19
CSCVTMBHeaderFormat::check
virtual bool check() const =0
CSCVTMBHeaderFormat::clct1_ComparatorCode
virtual uint16_t clct1_ComparatorCode() const =0
CSCVTMBHeaderFormat::syncErrorMPC1
virtual uint16_t syncErrorMPC1() const =0
CSCDMBHeader
Definition:
CSCDMBHeader.h:15
Generated for CMSSW Reference Manual by
1.8.14