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 "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
#include <cstring>
// for bzero
7
8
CSCAnodeData::CSCAnodeData
(
const
CSCALCTHeader
&
header
)
9
:
firmwareVersion
(
header
.alctFirmwareVersion()) {
10
if
(
firmwareVersion
== 2006) {
11
theData
= std::shared_ptr<CSCAnodeDataFormat>(
new
CSCAnodeData2006
(
header
));
12
}
else
{
13
theData
= std::shared_ptr<CSCAnodeDataFormat>(
new
CSCAnodeData2007
(
header
));
14
}
15
}
16
17
// initialize
18
CSCAnodeData::CSCAnodeData
(
const
CSCALCTHeader
&
header
,
const
unsigned
short
*
buf
)
19
:
firmwareVersion
(
header
.alctFirmwareVersion()) {
20
if
(
firmwareVersion
== 2006) {
21
theData
= std::shared_ptr<CSCAnodeDataFormat>(
new
CSCAnodeData2006
(
header
,
buf
));
22
}
else
{
23
theData
= std::shared_ptr<CSCAnodeDataFormat>(
new
CSCAnodeData2007
(
header
,
buf
));
24
}
25
}
26
27
std::vector<std::vector<CSCWireDigi> >
CSCAnodeData::wireDigis
()
const
{
28
std::vector<std::vector<CSCWireDigi> >
result
;
29
for
(
int
layer = 1; layer <= 6; ++layer) {
30
result
.push_back(
wireDigis
(layer));
31
}
32
return
result
;
33
}
CSCALCTHeader.h
MessageLogger.h
CSCAnodeData2006.h
CSCAnodeData2007.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:8
CSCAnodeData::wireDigis
std::vector< std::vector< CSCWireDigi > > wireDigis() const
Definition:
CSCAnodeData.cc:27
CSCAnodeData2007
Definition:
CSCAnodeData2007.h:30
visDQMUpload.buf
buf
Definition:
visDQMUpload.py:154
CSCAnodeData2006
Definition:
CSCAnodeData2006.h:39
CSCAnodeData::firmwareVersion
int firmwareVersion
Definition:
CSCAnodeData.h:31
RecoTauValidation_cfi.header
header
Definition:
RecoTauValidation_cfi.py:292
mps_fire.result
result
Definition:
mps_fire.py:311
CSCAnodeData::theData
std::shared_ptr< CSCAnodeDataFormat > theData
Definition:
CSCAnodeData.h:30
Generated for CMSSW Reference Manual by
1.8.16