EventFilter
CastorRawToDigi
interface
CastorUnpacker.h
Go to the documentation of this file.
1
/* -*- C++ -*- */
2
#ifndef CastorUnpacker_h_included
3
#define CastorUnpacker_h_included 1
4
5
#include "
DataFormats/HcalDigi/interface/CastorDataFrame.h
"
6
#include "
DataFormats/HcalDigi/interface/HcalCalibDataFrame.h
"
7
#include "
DataFormats/HcalDigi/interface/HcalTriggerPrimitiveDigi.h
"
8
// #include "DataFormats/HcalDigi/interface/HcalHistogramDigi.h"
9
#include "
DataFormats/HcalDigi/interface/HcalUnpackerReport.h
"
10
#include "
DataFormats/FEDRawData/interface/FEDRawData.h
"
11
#include "
CondFormats/CastorObjects/interface/CastorElectronicsMap.h
"
12
#include <set>
13
#include "
EventFilter/CastorRawToDigi/interface/CastorRawCollections.h
"
14
15
class
CastorUnpacker
{
16
public
:
18
CastorUnpacker
(
int
sourceIdOffset,
int
beg,
int
end
);
19
void
setExpectedOrbitMessageTime
(
int
time
) {
expectedOrbitMessageTime_
=
time
; }
21
// void unpack(const FEDRawData& raw, const CastorElectronicsMap& emap, std::vector<HcalHistogramDigi>& histoDigis);
22
void
unpack
(
const
FEDRawData
& raw,
23
const
CastorElectronicsMap
& emap,
24
CastorRawCollections
& conts,
25
HcalUnpackerReport
&
report
,
26
bool
silent
=
false
);
27
28
private
:
29
int
sourceIdOffset_
;
30
int
startSample_
;
31
int
endSample_
;
32
int
expectedOrbitMessageTime_
;
33
std::set<CastorElectronicsId>
unknownIds_
,
34
unknownIdsTrig_
;
35
};
36
37
#endif // CastorUnpacker_h_included
CastorUnpacker::unknownIdsTrig_
std::set< CastorElectronicsId > unknownIdsTrig_
Recorded to limit number of times a log message is generated.
Definition:
CastorUnpacker.h:33
CastorRawCollections
Definition:
CastorRawCollections.h:16
HcalUnpackerReport.h
HcalCalibDataFrame.h
CastorDataFrame.h
CastorUnpacker
Definition:
CastorUnpacker.h:15
CastorUnpacker::unpack
void unpack(const FEDRawData &raw, const CastorElectronicsMap &emap, CastorRawCollections &conts, HcalUnpackerReport &report, bool silent=false)
For histograms, no begin and end.
Definition:
CastorUnpacker.cc:75
CastorRawCollections.h
CastorElectronicsMap.h
CastorUnpacker::CastorUnpacker
CastorUnpacker(int sourceIdOffset, int beg, int end)
for normal data
Definition:
CastorUnpacker.cc:57
FEDRawData.h
FEDRawData
Definition:
FEDRawData.h:19
HcalTriggerPrimitiveDigi.h
CastorUnpacker::setExpectedOrbitMessageTime
void setExpectedOrbitMessageTime(int time)
Definition:
CastorUnpacker.h:19
HcalUnpackerReport
Definition:
HcalUnpackerReport.h:14
mps_fire.end
end
Definition:
mps_fire.py:242
CastorUnpacker::endSample_
int endSample_
last sample from fed raw data to copy (if present)
Definition:
CastorUnpacker.h:31
CastorUnpacker::expectedOrbitMessageTime_
int expectedOrbitMessageTime_
Expected orbit bunch time (needed to evaluate time differences)
Definition:
CastorUnpacker.h:32
CastorRawToDigi_cfi.silent
silent
Definition:
CastorRawToDigi_cfi.py:27
edmIntegrityCheck.report
report
Definition:
edmIntegrityCheck.py:349
CastorElectronicsMap
Definition:
CastorElectronicsMap.h:30
CastorUnpacker::unknownIds_
std::set< CastorElectronicsId > unknownIds_
Definition:
CastorUnpacker.h:33
ntuplemaker.time
time
Definition:
ntuplemaker.py:310
CastorUnpacker::startSample_
int startSample_
first sample from fed raw data to copy
Definition:
CastorUnpacker.h:30
CastorUnpacker::sourceIdOffset_
int sourceIdOffset_
number to subtract from the source id to get the dcc id
Definition:
CastorUnpacker.h:29
Generated for CMSSW Reference Manual by
1.8.16