Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
CastorDataFrame.h
HcalTriggerPrimitiveDigi.h
CastorUnpacker::unknownIds_
std::set< CastorElectronicsId > unknownIds_
Definition:
CastorUnpacker.h:33
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
zeeHLT_cff.report
tuple report
Definition:
zeeHLT_cff.py:9
CastorUnpacker::unknownIdsTrig_
std::set< CastorElectronicsId > unknownIdsTrig_
Recorded to limit number of times a log message is generated.
Definition:
CastorUnpacker.h:33
CastorUnpacker::CastorUnpacker
CastorUnpacker(int sourceIdOffset, int beg, int end)
for normal data
Definition:
CastorUnpacker.cc:57
FEDRawData
Definition:
FEDRawData.h:19
CastorUnpacker::setExpectedOrbitMessageTime
void setExpectedOrbitMessageTime(int time)
Definition:
CastorUnpacker.h:19
CastorRawCollections
Definition:
CastorRawCollections.h:16
HcalUnpackerReport
Definition:
HcalUnpackerReport.h:14
CastorElectronicsMap.h
CastorUnpacker
Definition:
CastorUnpacker.h:15
HcalUnpackerReport.h
CastorRawCollections.h
CastorUnpacker::sourceIdOffset_
int sourceIdOffset_
number to subtract from the source id to get the dcc id
Definition:
CastorUnpacker.h:29
CastorElectronicsMap
Definition:
CastorElectronicsMap.h:30
CastorUnpacker::expectedOrbitMessageTime_
int expectedOrbitMessageTime_
Expected orbit bunch time (needed to evaluate time differences)
Definition:
CastorUnpacker.h:32
HLT_FULL_cff.silent
tuple silent
Definition:
HLT_FULL_cff.py:8557
FEDRawData.h
dataset.end
string end
Definition:
dataset.py:937
HcalCalibDataFrame.h
CastorUnpacker::startSample_
int startSample_
first sample from fed raw data to copy
Definition:
CastorUnpacker.h:30
CastorUnpacker::endSample_
int endSample_
last sample from fed raw data to copy (if present)
Definition:
CastorUnpacker.h:31
Generated for CMSSW Reference Manual by
1.8.5