src
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
Definition:
CSCALCTHeader.h:22
CSCAnodeData::wireDigis
std::vector< std::vector< CSCWireDigi > > wireDigis() const
Definition:
CSCAnodeData.cc:28
MessageLogger.h
mps_fire.result
result
Definition:
mps_fire.py:311
CSCAnodeData2007
Definition:
CSCAnodeData2007.h:30
CSCDetId.h
CSCAnodeData::CSCAnodeData
CSCAnodeData(const CSCALCTHeader &)
a blank one, for Monte Carlo
Definition:
CSCAnodeData.cc:9
CSCAnodeData::firmwareVersion
int firmwareVersion
Definition:
CSCAnodeData.h:30
simCaloStage2Layer1Digis_cfi.firmwareVersion
firmwareVersion
Definition:
simCaloStage2Layer1Digis_cfi.py:22
RecoTauValidation_cfi.header
header
Definition:
RecoTauValidation_cfi.py:291
CSCAnodeData2006
Definition:
CSCAnodeData2006.h:39
visDQMUpload.buf
buf
Definition:
visDQMUpload.py:153
CSCAnodeData.h
nano_mu_digi_cff.layer
layer
Definition:
nano_mu_digi_cff.py:27
CSCAnodeData2006.h
CSCDetId::minLayerId
static int minLayerId()
Definition:
CSCDetId.h:242
CSCAnodeData2007.h
CSCALCTHeader.h
CSCAnodeData::theData
std::shared_ptr< CSCAnodeDataFormat > theData
Definition:
CSCAnodeData.h:29
CSCDetId::maxLayerId
static int maxLayerId()
Definition:
CSCDetId.h:243
Generated for CMSSW Reference Manual by
1.8.14