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{
32 public:
36
39 TString fModuleType;
40 TString fWordName;
41 TString fWordType;
42 Int_t fValue;
43
44 Double_t GetValue() const {return this->GetValue(0);};
45 Double_t GetValue(size_t element) const { return fValue; };
46 TString GetModType() const {return fModuleType;};
47
48
49
50
51
52 void PrintID() const {
53 QwOut << fWordName << " :: " << fSubbankIndex << " ; "
54 << fModuleType << " ; " << fWordType << QwLog::endl;
55 }
56
57 void Print() const {
58 QwOut << fWordName<<" :: " << fValue << QwLog::endl;
59 }
60
62 fValue = -1;
63 }
64
65 TString GetWordName() const { return fWordName; };
66
67
68};
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
QwWord()
Definition QwWord.h:33
Int_t fWordInSubbank
Definition QwWord.h:38
Int_t fSubbankIndex
Definition QwWord.h:37
Int_t fValue
Definition QwWord.h:42
TString GetWordName() const
Definition QwWord.h:65
void Print() const
Definition QwWord.h:57
Double_t GetValue(size_t element) const
Definition QwWord.h:45
void PrintID() const
Definition QwWord.h:52
TString fWordType
Definition QwWord.h:41
void ClearEventData()
Definition QwWord.h:61
TString fModuleType
Definition QwWord.h:39
Double_t GetValue() const
Definition QwWord.h:44
TString fWordName
Definition QwWord.h:40
TString GetModType() const
Definition QwWord.h:46