GRSISort
"v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TILLDataParser.h
Go to the documentation of this file.
1
#ifndef TILLDARAPARSER_H
2
#define TILLDARAPARSER_H
3
4
/** \addtogroup Sorting
5
* @{
6
*/
7
8
/////////////////////////////////////////////////////////////////
9
///
10
/// \class TILLDataParser
11
///
12
/// The TILLDataParser is the DAQ dependent part of GRSISort.
13
/// It takes a "DAQ-dependent"-flavoured LST file and
14
/// converts it into a generic TFragment that the rest of
15
/// GRSISort can deal with. This is where event word masks
16
/// are applied, and any changes to the event format must
17
/// be implemented.
18
///
19
/////////////////////////////////////////////////////////////////
20
21
#include "
Globals.h
"
22
#include <ctime>
23
#include <sstream>
24
#include <vector>
25
#include <map>
26
#include <limits>
27
28
#ifndef __CINT__
29
#include <memory>
30
#endif
31
32
#include "
TDataParser.h
"
33
#include "
TChannel.h
"
34
#include "
TFragment.h
"
35
#include "
TPPG.h
"
36
#include "
TScaler.h
"
37
#include "
TFragmentMap.h
"
38
#include "
ThreadsafeQueue.h
"
39
#include "
TEpicsFrag.h
"
40
#include "
TRawEvent.h
"
41
#include "
TLstEvent.h
"
42
43
class
TILLDataParser
:
public
TDataParser
{
44
public
:
45
TILLDataParser
();
46
~TILLDataParser
();
47
48
// ENUM(EBank, char, kWFDN,kGRF1,kGRF2,kGRF3,kFME0,kFME1,kFME2,kFME3);
49
enum class
EBank
{
kWFDN
= 0,
kGRF1
= 1,
kGRF2
= 2,
kGRF3
= 3,
kGRF4
= 4,
kFME0
= 5,
kFME1
= 6,
kFME2
= 7,
kFME3
= 8 };
50
51
enum class
EDataParserState
{
52
kGood
,
53
kBadHeader
,
54
kMissingWords
,
55
kBadScalerLowTS
,
56
kBadScalerValue
,
57
kBadScalerHighTS
,
58
kBadScalerType
,
59
kBadTriggerId
,
60
kBadLowTS
,
61
kBadHighTS
,
62
kSecondHeader
,
63
kWrongNofWords
,
64
kNotSingleCfd
,
65
kSizeMismatch
,
66
kBadFooter
,
67
kFault
,
68
kMissingPsd
,
69
kMissingCfd
,
70
kMissingCharge
,
71
kBadBank
,
72
kBadModuleType
,
73
kEndOfData
,
74
kUndefined
75
};
76
77
#ifndef __CINT__
78
int
Process
(std::shared_ptr<TRawEvent>)
override
;
79
#endif
80
81
private
:
82
int
V1SingleFippsEventToFragment
(uint32_t* data);
83
int
V2SingleFippsEventToFragment
(uint32_t* data);
84
85
EDataParserState
fState
;
86
};
87
/*! @} */
88
#endif
Globals.h
TChannel.h
TDataParser.h
TEpicsFrag.h
TFragment.h
TFragmentMap.h
TLstEvent.h
TPPG.h
TRawEvent.h
TScaler.h
ThreadsafeQueue.h
TDataParser
Definition
TDataParser.h:42
TILLDataParser
Definition
TILLDataParser.h:43
TILLDataParser::EBank
EBank
Definition
TILLDataParser.h:49
TILLDataParser::EBank::kGRF1
@ kGRF1
TILLDataParser::EBank::kGRF3
@ kGRF3
TILLDataParser::EBank::kFME3
@ kFME3
TILLDataParser::EBank::kFME0
@ kFME0
TILLDataParser::EBank::kGRF2
@ kGRF2
TILLDataParser::EBank::kWFDN
@ kWFDN
TILLDataParser::EBank::kFME1
@ kFME1
TILLDataParser::EBank::kFME2
@ kFME2
TILLDataParser::EBank::kGRF4
@ kGRF4
TILLDataParser::V2SingleFippsEventToFragment
int V2SingleFippsEventToFragment(uint32_t *data)
Definition
TILLDataParser.cxx:115
TILLDataParser::EDataParserState
EDataParserState
Definition
TILLDataParser.h:51
TILLDataParser::EDataParserState::kBadTriggerId
@ kBadTriggerId
TILLDataParser::EDataParserState::kBadScalerLowTS
@ kBadScalerLowTS
TILLDataParser::EDataParserState::kGood
@ kGood
TILLDataParser::EDataParserState::kSizeMismatch
@ kSizeMismatch
TILLDataParser::EDataParserState::kBadScalerHighTS
@ kBadScalerHighTS
TILLDataParser::EDataParserState::kBadScalerType
@ kBadScalerType
TILLDataParser::EDataParserState::kMissingCfd
@ kMissingCfd
TILLDataParser::EDataParserState::kWrongNofWords
@ kWrongNofWords
TILLDataParser::EDataParserState::kEndOfData
@ kEndOfData
TILLDataParser::EDataParserState::kUndefined
@ kUndefined
TILLDataParser::EDataParserState::kMissingPsd
@ kMissingPsd
TILLDataParser::EDataParserState::kMissingWords
@ kMissingWords
TILLDataParser::EDataParserState::kBadModuleType
@ kBadModuleType
TILLDataParser::EDataParserState::kBadLowTS
@ kBadLowTS
TILLDataParser::EDataParserState::kBadHeader
@ kBadHeader
TILLDataParser::EDataParserState::kBadHighTS
@ kBadHighTS
TILLDataParser::EDataParserState::kMissingCharge
@ kMissingCharge
TILLDataParser::EDataParserState::kFault
@ kFault
TILLDataParser::EDataParserState::kSecondHeader
@ kSecondHeader
TILLDataParser::EDataParserState::kNotSingleCfd
@ kNotSingleCfd
TILLDataParser::EDataParserState::kBadBank
@ kBadBank
TILLDataParser::EDataParserState::kBadFooter
@ kBadFooter
TILLDataParser::EDataParserState::kBadScalerValue
@ kBadScalerValue
TILLDataParser::V1SingleFippsEventToFragment
int V1SingleFippsEventToFragment(uint32_t *data)
Definition
TILLDataParser.cxx:63
TILLDataParser::~TILLDataParser
~TILLDataParser()
Definition
TILLDataParser.cxx:25
TILLDataParser::Process
int Process(std::shared_ptr< TRawEvent >) override
Definition
TILLDataParser.cxx:29
TILLDataParser::fState
EDataParserState fState
Definition
TILLDataParser.h:85
TILLDataParser::TILLDataParser
TILLDataParser()
Definition
TILLDataParser.cxx:19
IllData
include
TILLDataParser.h
GRSISort ("v4.0.0.5") Reference Guide Generated on Mon Feb 3 2025 16:38:04.