JAPAn
Just Another Parity Analyzer
Loading...
Searching...
No Matches
QwWord Class Reference

Word-level data manipulation and bit operations. More...

#include <QwWord.h>

Public Member Functions

 QwWord ()
 
Double_t GetValue () const
 
Double_t GetValue (size_t element) const
 
TString GetModType () const
 
void PrintID () const
 
void Print () const
 
void ClearEventData ()
 
TString GetWordName () const
 

Data Fields

Int_t fSubbankIndex
 
Int_t fWordInSubbank
 
TString fModuleType
 
TString fWordName
 
TString fWordType
 
Int_t fValue
 

Detailed Description

Word-level data manipulation and bit operations.

Provides low-level word manipulation capabilities for decoding and processing raw data words from various detector modules. Handles bit extraction, word identification, and basic value access.

Definition at line 30 of file QwWord.h.

Constructor & Destructor Documentation

◆ QwWord()

QwWord::QwWord ( )
inline

Definition at line 33 of file QwWord.h.

35 fWordName(""),fWordType(""),fValue(-1){};
Int_t fWordInSubbank
Definition QwWord.h:38
Int_t fSubbankIndex
Definition QwWord.h:37
Int_t fValue
Definition QwWord.h:42
TString fWordType
Definition QwWord.h:41
TString fModuleType
Definition QwWord.h:39
TString fWordName
Definition QwWord.h:40

References fModuleType, fSubbankIndex, fValue, fWordInSubbank, fWordName, and fWordType.

Member Function Documentation

◆ ClearEventData()

void QwWord::ClearEventData ( )
inline

Definition at line 61 of file QwWord.h.

61 {
62 fValue = -1;
63 }

References fValue.

◆ GetModType()

TString QwWord::GetModType ( ) const
inline

Definition at line 46 of file QwWord.h.

46{return fModuleType;};

References fModuleType.

◆ GetValue() [1/2]

Double_t QwWord::GetValue ( ) const
inline

Definition at line 44 of file QwWord.h.

44{return this->GetValue(0);};
Double_t GetValue() const
Definition QwWord.h:44

References GetValue().

Referenced by GetValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetValue() [2/2]

Double_t QwWord::GetValue ( size_t element) const
inline

Definition at line 45 of file QwWord.h.

45{ return fValue; };

References fValue.

◆ GetWordName()

TString QwWord::GetWordName ( ) const
inline

Definition at line 65 of file QwWord.h.

65{ return fWordName; };

References fWordName.

◆ Print()

void QwWord::Print ( ) const
inline

Definition at line 57 of file QwWord.h.

57 {
58 QwOut << fWordName<<" :: " << fValue << QwLog::endl;
59 }
#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

References QwLog::endl(), fValue, fWordName, and QwOut.

+ Here is the call graph for this function:

◆ PrintID()

void QwWord::PrintID ( ) const
inline

Definition at line 52 of file QwWord.h.

52 {
53 QwOut << fWordName << " :: " << fSubbankIndex << " ; "
54 << fModuleType << " ; " << fWordType << QwLog::endl;
55 }

References QwLog::endl(), fModuleType, fSubbankIndex, fWordName, fWordType, and QwOut.

+ Here is the call graph for this function:

Field Documentation

◆ fModuleType

TString QwWord::fModuleType

◆ fSubbankIndex

Int_t QwWord::fSubbankIndex

Definition at line 37 of file QwWord.h.

Referenced by QwBeamMod::LoadChannelMap(), QwHelicity::LoadChannelMap(), PrintID(), and QwWord().

◆ fValue

Int_t QwWord::fValue

Definition at line 42 of file QwWord.h.

Referenced by ClearEventData(), GetValue(), Print(), and QwWord().

◆ fWordInSubbank

Int_t QwWord::fWordInSubbank

Definition at line 38 of file QwWord.h.

Referenced by QwBeamMod::LoadChannelMap(), QwHelicity::LoadChannelMap(), and QwWord().

◆ fWordName

TString QwWord::fWordName

◆ fWordType

TString QwWord::fWordType

Definition at line 41 of file QwWord.h.

Referenced by QwHelicity::LoadChannelMap(), PrintID(), and QwWord().


The documentation for this class was generated from the following file: