JAPAn
Just Another Parity Analyzer
Loading...
Searching...
No Matches
QwWord.h
Go to the documentation of this file.
1/*
2 * QwWord.h
3 *
4 * Created on: Dec 14, 2010
5 * Author: wdconinc
6 */
7
8/*!
9 * \file QwWord.h
10 * \brief Word-level data manipulation and bit operations
11 */
12
13#pragma once
14
15// ROOT headers
16#include "Rtypes.h"
17
18// Qweak headers
19#include "QwLog.h"
20
21/**
22 * \class QwWord
23 * \ingroup QwAnalysis
24 * \brief Word-level data manipulation and bit operations
25 *
26 * Provides low-level word manipulation capabilities for decoding
27 * and processing raw data words from various detector modules.
28 * Handles bit extraction, word identification, and basic value access.
29 */
30class QwWord
31{
32public:
33 Int_t fSubbankIndex{-1};
34 Int_t fWordInSubbank{-1};
35 TString fModuleType{""};
36 TString fWordName{""};
37 TString fWordType{""};
38 Int_t fValue{-1};
39
40 Double_t GetValue() const {return this->GetValue(0);};
41 Double_t GetValue(size_t element) const { return fValue; };
42 TString GetModType() const {return fModuleType;};
43
44
45
46
47
48 void PrintID() const {
49 QwOut << fWordName << " :: " << fSubbankIndex << " ; "
50 << fModuleType << " ; " << fWordType << QwLog::endl;
51 }
52
53 void Print() const {
54 QwOut << fWordName<<" :: " << fValue << QwLog::endl;
55 }
56
58 fValue = -1;
59 }
60
61 TString GetWordName() const { return fWordName; };
62
63
64};
A logfile class, based on an identical class in the Hermes analyzer.
#define QwOut
Predefined log drain for explicit output.
Definition QwLog.h:34
static std::ostream & endl(std::ostream &)
End of the line.
Definition QwLog.cc:297
Word-level data manipulation and bit operations.
Definition QwWord.h:31
Int_t fWordInSubbank
Definition QwWord.h:34
Int_t fSubbankIndex
Definition QwWord.h:33
Int_t fValue
Definition QwWord.h:38
TString GetWordName() const
Definition QwWord.h:61
void Print() const
Definition QwWord.h:53
Double_t GetValue(size_t element) const
Definition QwWord.h:41
void PrintID() const
Definition QwWord.h:48
TString fWordType
Definition QwWord.h:37
void ClearEventData()
Definition QwWord.h:57
TString fModuleType
Definition QwWord.h:35
Double_t GetValue() const
Definition QwWord.h:40
TString fWordName
Definition QwWord.h:36
TString GetModType() const
Definition QwWord.h:42