Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
:
17
19
CastorUnpacker
(
int
sourceIdOffset,
int
beg,
int
end
) ;
20
void
setExpectedOrbitMessageTime
(
int
time
) {
expectedOrbitMessageTime_
=
time
; }
22
// void unpack(const FEDRawData& raw, const CastorElectronicsMap& emap, std::vector<HcalHistogramDigi>& histoDigis);
23
void
unpack
(
const
FEDRawData
& raw,
const
CastorElectronicsMap
& emap,
CastorRawCollections
& conts,
HcalUnpackerReport
&
report
,
bool
silent
=
false
);
24
private
:
25
int
sourceIdOffset_
;
26
int
startSample_
;
27
int
endSample_
;
28
int
expectedOrbitMessageTime_
;
29
std::set<CastorElectronicsId>
unknownIds_
,
unknownIdsTrig_
;
30
};
31
32
#endif // CastorUnpacker_h_included
CastorDataFrame.h
HcalTriggerPrimitiveDigi.h
CastorUnpacker::unknownIds_
std::set< CastorElectronicsId > unknownIds_
Definition:
CastorUnpacker.h:29
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:66
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:29
CastorUnpacker::CastorUnpacker
CastorUnpacker(int sourceIdOffset, int beg, int end)
for normal data
Definition:
CastorUnpacker.cc:51
cond::rpcobgas::time
Definition:
RPCObGasPyWrapper.cc:61
FEDRawData
Definition:
FEDRawData.h:20
CastorUnpacker::setExpectedOrbitMessageTime
void setExpectedOrbitMessageTime(int time)
Definition:
CastorUnpacker.h:20
CastorRawCollections
Definition:
CastorRawCollections.h:17
HcalUnpackerReport
Definition:
HcalUnpackerReport.h:14
end
#define end
Definition:
vmac.h:37
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:25
CastorElectronicsMap
Definition:
CastorElectronicsMap.h:30
CastorUnpacker::expectedOrbitMessageTime_
int expectedOrbitMessageTime_
Expected orbit bunch time (needed to evaluate time differences)
Definition:
CastorUnpacker.h:28
FEDRawData.h
castor_dqm_sourceclient_file_cfg.silent
tuple silent
Definition:
castor_dqm_sourceclient_file_cfg.py:154
HcalCalibDataFrame.h
CastorUnpacker::startSample_
int startSample_
first sample from fed raw data to copy
Definition:
CastorUnpacker.h:26
CastorUnpacker::endSample_
int endSample_
last sample from fed raw data to copy (if present)
Definition:
CastorUnpacker.h:27
Generated for CMSSW Reference Manual by
1.8.5