EventFilter
CSCRawToDigi
src
CSCAnodeData.cc
Go to the documentation of this file.
1
#include "
EventFilter/CSCRawToDigi/interface/CSCAnodeData.h
"
2
#include "
EventFilter/CSCRawToDigi/interface/CSCALCTHeader.h
"
3
#include "
EventFilter/CSCRawToDigi/interface/CSCAnodeData2006.h
"
4
#include "
EventFilter/CSCRawToDigi/interface/CSCAnodeData2007.h
"
5
#include "
DataFormats/MuonDetId/interface/CSCDetId.h
"
6
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
7
#include <cstring>
// for bzero
8
9
CSCAnodeData::CSCAnodeData
(
const
CSCALCTHeader
&
header
)
10
:
firmwareVersion
(
header
.alctFirmwareVersion()) {
11
if
(
firmwareVersion
== 2006) {
12
theData
= std::shared_ptr<CSCAnodeDataFormat>(
new
CSCAnodeData2006
(
header
));
13
}
else
{
14
theData
= std::shared_ptr<CSCAnodeDataFormat>(
new
CSCAnodeData2007
(
header
));
15
}
16
}
17
18
// initialize
19
CSCAnodeData::CSCAnodeData
(
const
CSCALCTHeader
&
header
,
const
unsigned
short
*
buf
)
20
:
firmwareVersion
(
header
.alctFirmwareVersion()) {
21
if
(
firmwareVersion
== 2006) {
22
theData
= std::shared_ptr<CSCAnodeDataFormat>(
new
CSCAnodeData2006
(
header
,
buf
));
23
}
else
{
24
theData
= std::shared_ptr<CSCAnodeDataFormat>(
new
CSCAnodeData2007
(
header
,
buf
));
25
}
26
}
27
28
std::vector<std::vector<CSCWireDigi> >
CSCAnodeData::wireDigis
()
const
{
29
std::vector<std::vector<CSCWireDigi> >
result
;
30
for
(
int
layer
=
CSCDetId::minLayerId
();
layer
<=
CSCDetId::maxLayerId
(); ++
layer
) {
31
result
.push_back(
wireDigis
(
layer
));
32
}
33
return
result
;
34
}
CSCALCTHeader.h
MessageLogger.h
CSCAnodeData2006.h
CSCAnodeData2007.h
CSCDetId.h
simCaloStage2Layer1Digis_cfi.firmwareVersion
firmwareVersion
Definition:
simCaloStage2Layer1Digis_cfi.py:21
CSCALCTHeader
Definition:
CSCALCTHeader.h:21
CSCAnodeData.h
CSCAnodeData::CSCAnodeData
CSCAnodeData(const CSCALCTHeader &)
a blank one, for Monte Carlo
Definition:
CSCAnodeData.cc:9
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition:
phase1PixelTopology.h:99
CSCDetId::minLayerId
static int minLayerId()
Definition:
CSCDetId.h:242
CSCAnodeData::wireDigis
std::vector< std::vector< CSCWireDigi > > wireDigis() const
Definition:
CSCAnodeData.cc:28
CSCAnodeData2007
Definition:
CSCAnodeData2007.h:30
visDQMUpload.buf
buf
Definition:
visDQMUpload.py:160
CSCAnodeData2006
Definition:
CSCAnodeData2006.h:39
CSCDetId::maxLayerId
static int maxLayerId()
Definition:
CSCDetId.h:243
CSCAnodeData::firmwareVersion
int firmwareVersion
Definition:
CSCAnodeData.h:30
RecoTauValidation_cfi.header
header
Definition:
RecoTauValidation_cfi.py:291
mps_fire.result
result
Definition:
mps_fire.py:311
CSCAnodeData::theData
std::shared_ptr< CSCAnodeDataFormat > theData
Definition:
CSCAnodeData.h:29
Generated for CMSSW Reference Manual by
1.8.16