Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
EventFilter
CSCRawToDigi
interface
CSCVTMBHeaderFormat.h
Go to the documentation of this file.
1
#ifndef CSCVTMBHeaderFormat_h
2
#define 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/MuonDetId/interface/CSCDetId.h
"
8
#include <vector>
9
#include <iosfwd>
10
#include <strings.h>
11
class
CSCDMBHeader
;
12
13
14
class
CSCVTMBHeaderFormat
{
15
public
:
16
virtual
~CSCVTMBHeaderFormat
() {}
17
void
init
() {
18
bzero(
this
,
sizeInWords
()*2);
19
}
20
21
virtual
void
setEventInformation
(
const
CSCDMBHeader
&) = 0;
22
virtual
uint16_t
BXNCount
()
const
= 0;
23
virtual
uint16_t
ALCTMatchTime
()
const
= 0;
24
virtual
uint16_t
CLCTOnly
()
const
= 0;
25
virtual
uint16_t
ALCTOnly
()
const
= 0;
26
virtual
uint16_t
TMBMatch
()
const
= 0;
27
virtual
uint16_t
Bxn0Diff
()
const
= 0;
28
virtual
uint16_t
Bxn1Diff
()
const
= 0;
29
virtual
uint16_t
L1ANumber
()
const
= 0;
30
uint16_t
sizeInBytes
()
const
{
31
return
sizeInWords
()*2;
32
}
33
virtual
uint16_t
NTBins
()
const
= 0;
34
virtual
uint16_t
NCFEBs
()
const
= 0;
35
virtual
uint16_t
firmwareRevision
()
const
= 0;
37
virtual
std::vector<CSCCLCTDigi>
CLCTDigis
(uint32_t idlayer) = 0;
39
virtual
std::vector<CSCCorrelatedLCTDigi>
CorrelatedLCTDigis
(uint32_t idlayer)
const
= 0;
40
41
44
virtual
unsigned
short
int
sizeInWords
()
const
= 0;
45
46
virtual
unsigned
short
int
NHeaderFrames
()
const
= 0;
47
virtual
unsigned
short
*
data
() = 0;
48
virtual
bool
check
()
const
= 0;
49
51
//void setChamberId(const CSCDetId & detId) {theChamberId = detId;}
52
54
virtual
void
addCLCT0
(
const
CSCCLCTDigi
& digi) = 0;
55
virtual
void
addCLCT1
(
const
CSCCLCTDigi
& digi) = 0;
56
virtual
void
addALCT0
(
const
CSCALCTDigi
& digi) = 0;
57
virtual
void
addALCT1
(
const
CSCALCTDigi
& digi) = 0;
58
virtual
void
addCorrelatedLCT0
(
const
CSCCorrelatedLCTDigi
& digi) = 0;
59
virtual
void
addCorrelatedLCT1
(
const
CSCCorrelatedLCTDigi
& digi) = 0;
60
61
62
virtual
void
print
(std::ostream & os)
const
= 0;
63
protected
:
64
65
void
swapCLCTs
(
CSCCLCTDigi
& digi1,
CSCCLCTDigi
& digi2);
66
};
67
68
#endif
69
CSCVTMBHeaderFormat::addCorrelatedLCT0
virtual void addCorrelatedLCT0(const CSCCorrelatedLCTDigi &digi)=0
CSCCorrelatedLCTDigi.h
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::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::addALCT1
virtual void addALCT1(const CSCALCTDigi &digi)=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
Needed before data packing.
CSCVTMBHeaderFormat::init
void init()
Definition:
CSCVTMBHeaderFormat.h:17
CSCALCTDigi.h
CSCVTMBHeaderFormat::sizeInBytes
uint16_t sizeInBytes() const
Definition:
CSCVTMBHeaderFormat.h:30
CSCVTMBHeaderFormat::NHeaderFrames
virtual unsigned short int NHeaderFrames() const =0
CSCVTMBHeaderFormat::addALCT0
virtual void addALCT0(const CSCALCTDigi &digi)=0
CSCVTMBHeaderFormat::~CSCVTMBHeaderFormat
virtual ~CSCVTMBHeaderFormat()
Definition:
CSCVTMBHeaderFormat.h:16
CSCVTMBHeaderFormat::CorrelatedLCTDigis
virtual std::vector< CSCCorrelatedLCTDigi > CorrelatedLCTDigis(uint32_t idlayer) const =0
returns CorrelatedLCT digis
CSCVTMBHeaderFormat::Bxn0Diff
virtual uint16_t Bxn0Diff() const =0
CSCVTMBHeaderFormat::setEventInformation
virtual void setEventInformation(const CSCDMBHeader &)=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::CLCTDigis
virtual std::vector< CSCCLCTDigi > CLCTDigis(uint32_t idlayer)=0
returns CLCT digis
CSCVTMBHeaderFormat::sizeInWords
virtual unsigned short int sizeInWords() const =0
CSCVTMBHeaderFormat::BXNCount
virtual uint16_t BXNCount() const =0
CSCVTMBHeaderFormat::swapCLCTs
void swapCLCTs(CSCCLCTDigi &digi1, CSCCLCTDigi &digi2)
CSCVTMBHeaderFormat
Definition:
CSCVTMBHeaderFormat.h:14
CSCVTMBHeaderFormat::NTBins
virtual uint16_t NTBins() const =0
CSCCLCTDigi.h
CSCVTMBHeaderFormat::L1ANumber
virtual uint16_t L1ANumber() const =0
CSCCorrelatedLCTDigi
Definition:
CSCCorrelatedLCTDigi.h:17
CSCVTMBHeaderFormat::check
virtual bool check() const =0
CSCDMBHeader
Definition:
CSCDMBHeader.h:9
Generated for CMSSW Reference Manual by
1.8.5