 |
Belle II Software
release-05-02-19
|
11 #ifndef SVDPackerModule_H
12 #define SVDPackerModule_H
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <framework/datastore/StoreObjPtr.h>
17 #include <framework/dataobjects/EventMetaData.h>
18 #include <svd/dataobjects/SVDEventInfo.h>
20 #include <rawdata/dataobjects/RawSVD.h>
21 #include <svd/dataobjects/SVDShaperDigit.h>
23 #include <svd/online/SVDOnlineToOfflineMap.h>
25 #include <framework/database/PayloadFile.h>
42 class SVDPackerModule :
public Module {
56 virtual void event()
override;
57 virtual void endRun()
override;
70 typedef std::unordered_map<unsigned short, unsigned short>
FADCmap;
76 std::unordered_multimap<unsigned char, unsigned char>*
APVmap;
84 std::unique_ptr<SVDOnlineToOfflineMap>
m_map;
147 unsigned int check : 1;
156 unsigned int check : 1;
std::unique_ptr< SVDOnlineToOfflineMap > m_map
Pointer to online-to-offline map.
bool m_binPrintout
if true, print data created by the Packer
Specialization of DBObjPtr in case of PayloadFiles.
unsigned int frameErrOR
Frame Error OR.
unsigned int sample4
4th data sample
unsigned int DAQType
(from 2020c) Event type(0): "0"…3 or …6 acquisition mode, "1"…3-mixed-6 acquisition mode
std::string m_svdEventInfoName
SVDEventInfo name.
unsigned int sample2
2nd data sample
FADCTrailer m_FADCTrailer
Implementation of FADC Trailer.
virtual void event() override
event
implementation of FADC Trailer
implementation of the second data word
virtual void beginRun() override
begin run
std::unordered_multimap< unsigned char, unsigned char > * APVmap
pointer to APVforFADCmap filled by mapping procedure
int m_FADCTriggerNumberOffset
FADC trigger numnber offset.
std::string m_svdShaperDigitListName
SVDShaperDigit StoreArray name.
unsigned int runType
Run Type.
FADCmap FADCnumberMap
maps containing assignment (0,1,2,3,4,..,nFADCboards-1) <-> FADC numbers
APVHeader m_APVHeader
Implementation of APV Header.
void addData32(uint32_t adata32)
adds packed 32-bit data word to the raw data vector
FTBTrailer m_FTBTrailer
Implementation of FTB Trailer.
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
Required input for EventMetaData.
unsigned int sample6
6th data sample
data_A m_data_A
Implementation of 1st data word.
unsigned int sample3
3rd data sample
unsigned int apvErrOR
APV chip number OR.
virtual ~SVDPackerModule()
default destructor
unsigned int check
MSB "1" - for Data word identification.
unsigned int DAQMode
Event type(2:1): "00"…1-sample, "01"…3-sample, "10"…6-sample.
implementation of the first data word
implementation of FADC Header
bool m_simulate3sampleData
if true, simulate 3-sample data taking
unsigned int stripNum
Strip number.
unsigned int check
MSB "1" - for Data word identification.
int n_basf2evt
event number
unsigned int nullDigits
"0000000"
unsigned int trgType
Trigger Type.
unsigned int check
MSB "1110" - for FADC Trailer identification.
unsigned int trgNumber
Trigger Number.
virtual void initialize() override
initialize
std::vector< uint32_t > data_words
vector of raw data words
unsigned int dataSizeCut
APV data-size cut flag
unsigned int crc16
FTB CRC16 Checksum
unsigned short channel
APV channel number.
unsigned int fifoErrOR
FIFO full Error OR.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
void binPrintout(unsigned int nwords)
tool: print out N words
unsigned int trgTiming
Trigger Timing.
unsigned int FADCnum
FADC number.
unsigned int FTBFlags
FTB Flags Field.
unsigned int xTalk
cross talk tag
std::unordered_map< unsigned short, unsigned short > FADCmap
type def for the FADC map
unsigned int sample5
5th data sample
implementation of FTB Trailer
unsigned int sample1
1st data sample
virtual void terminate() override
terminate
unsigned int detectErrOR
Detection Error OR.
unsigned short nFADCboards
how many FADCs we have
unsigned int controlWord
MSB "ff55" - FADC Trailer ID.
virtual void endRun() override
end run
MainHeader m_MainHeader
Implementation of FADC Header.
6 samples and APV channel struct
data_B m_data_B
Implementation of 2nd data word.
DBObjPtr< PayloadFile > m_mapping
channel map payload
StoreArray< SVDShaperDigit > m_svdShaperDigit
Required input for SVDShaperDigit.
FADCmap FADCnumberMapRev
maps containing assignment (0,1,2,3,4,..,nFADCboards-1) <-> FADC numbers
Accessor to arrays stored in the data store.
unsigned int stripNum
Strip number.
FTBHeader m_FTBHeader
Implementation of FTB Header.
static std::string m_xmlFileName
< xml filename
StoreArray< RawSVD > m_rawSVD
output for RawSVD
uint32_t data32
Output 32-bit data word.
std::string m_rawSVDListName
RawSVD StoreArray name.
SVDPackerModule()
default constructor
unsigned int check
MSB "110" - for FADC Header identification.
StoreObjPtr< SVDEventInfo > m_svdEventInfoPtr
SVDEventInfo from simulation.