Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
Decoder::THaSlotData Class Reference

Definition at line 37 of file THaSlotData.h.

Public Member Functions

Bool_t BlockIsDone ()
 
void clearEvent ()
 
void compressdataindex (UInt_t numidx)
 
void define (UInt_t crate, UInt_t slot, UInt_t nchan=DEFNCHAN, UInt_t ndata=DEFNDATA, UInt_t nhitperchan=DEFNHITCHAN)
 
const char * devType () const
 
UInt_t getCrate () const
 
UInt_t getData (UInt_t chan, UInt_t hit) const
 
ModuleGetModule ()
 
UInt_t getNchan () const
 
UInt_t getNextChan (UInt_t index) const
 
UInt_t getNumChan () const
 
UInt_t getNumHits (UInt_t chan) const
 
UInt_t getNumRaw () const
 
UInt_t getRawData (UInt_t chan, UInt_t hit) const
 
UInt_t getRawData (UInt_t ihit) const
 
UInt_t getSlot () const
 
Bool_t IsMultiBlockMode ()
 
UInt_t LoadBank (const UInt_t *p, UInt_t pos, UInt_t len)
 
Int_t loadData (const char *type, UInt_t chan, UInt_t dat, UInt_t raw)
 
Int_t loadData (UInt_t chan, UInt_t dat, UInt_t raw)
 
UInt_t LoadIfSlot (const UInt_t *evbuffer, const UInt_t *pstop)
 
Int_t loadModule (const THaCrateMap *map)
 
UInt_t LoadNextEvBuffer ()
 
void print () const
 
void print_to_file () const
 
void SetDebugFile (std::ofstream *file)
 
 THaSlotData ()
 
 THaSlotData (UInt_t crate, UInt_t slot)
 
virtual ~THaSlotData ()
 

Static Public Attributes

static const UInt_t DEFNCHAN = 128
 
static const UInt_t DEFNDATA = 1024
 
static const UInt_t DEFNHITCHAN = 1
 

Private Member Functions

void compressdataindexImpl (UInt_t numidx)
 

Private Attributes

VectorUIntNI chanindex
 
VectorUIntNI chanlist
 
UInt_t crate
 
VectorUIntNI data
 
VectorUIntNI dataindex
 
std::string device
 
bool didini
 
std::ofstream * fDebugFile
 
UInt_t firstfreedataidx
 
std::unique_ptr< ModulefModule
 
UInt_t fNchan
 
VectorUIntNI idxlist
 
UInt_t numchanhit
 
UInt_t numhitperchan
 
VectorUInt numHits
 
UInt_t numholesdataidx
 
VectorUIntNI numMaxHits
 
UInt_t numraw
 
VectorUIntNI rawData
 
UInt_t slot
 

#include <THaSlotData.h>

Constructor & Destructor Documentation

◆ THaSlotData() [1/2]

Decoder::THaSlotData::THaSlotData ( )

Definition at line 38 of file THaSlotData.cxx.

◆ THaSlotData() [2/2]

Decoder::THaSlotData::THaSlotData ( UInt_t  crate,
UInt_t  slot 
)

Definition at line 44 of file THaSlotData.cxx.

◆ ~THaSlotData()

Decoder::THaSlotData::~THaSlotData ( )
virtualdefault

Member Function Documentation

◆ BlockIsDone()

Bool_t Decoder::THaSlotData::BlockIsDone ( )
inline

Definition at line 69 of file THaSlotData.h.

◆ clearEvent()

void Decoder::THaSlotData::clearEvent ( )
inline

Definition at line 177 of file THaSlotData.h.

◆ compressdataindex()

void Decoder::THaSlotData::compressdataindex ( UInt_t  numidx)
inline

Definition at line 188 of file THaSlotData.h.

◆ compressdataindexImpl()

void Decoder::THaSlotData::compressdataindexImpl ( UInt_t  numidx)
private

Definition at line 392 of file THaSlotData.cxx.

◆ define()

void Decoder::THaSlotData::define ( UInt_t  crate,
UInt_t  slot,
UInt_t  nchan = DEFNCHAN,
UInt_t  ndata = DEFNDATA,
UInt_t  nhitperchan = DEFNHITCHAN 
)

Definition at line 55 of file THaSlotData.cxx.

◆ devType()

const char * Decoder::THaSlotData::devType ( ) const
inline

Definition at line 171 of file THaSlotData.h.

◆ getCrate()

UInt_t Decoder::THaSlotData::getCrate ( ) const
inline

Definition at line 57 of file THaSlotData.h.

◆ getData()

UInt_t Decoder::THaSlotData::getData ( UInt_t  chan,
UInt_t  hit 
) const
inline

Definition at line 158 of file THaSlotData.h.

◆ GetModule()

Module * Decoder::THaSlotData::GetModule ( )
inline

Definition at line 72 of file THaSlotData.h.

◆ getNchan()

UInt_t Decoder::THaSlotData::getNchan ( ) const
inline

Definition at line 59 of file THaSlotData.h.

◆ getNextChan()

UInt_t Decoder::THaSlotData::getNextChan ( UInt_t  index) const
inline

Definition at line 147 of file THaSlotData.h.

◆ getNumChan()

UInt_t Decoder::THaSlotData::getNumChan ( ) const
inline

Definition at line 140 of file THaSlotData.h.

◆ getNumHits()

UInt_t Decoder::THaSlotData::getNumHits ( UInt_t  chan) const
inline

Definition at line 132 of file THaSlotData.h.

◆ getNumRaw()

UInt_t Decoder::THaSlotData::getNumRaw ( ) const
inline

Definition at line 50 of file THaSlotData.h.

◆ getRawData() [1/2]

UInt_t Decoder::THaSlotData::getRawData ( UInt_t  chan,
UInt_t  hit 
) const
inline

Definition at line 120 of file THaSlotData.h.

◆ getRawData() [2/2]

UInt_t Decoder::THaSlotData::getRawData ( UInt_t  ihit) const
inline

Definition at line 110 of file THaSlotData.h.

◆ getSlot()

UInt_t Decoder::THaSlotData::getSlot ( ) const
inline

Definition at line 58 of file THaSlotData.h.

◆ IsMultiBlockMode()

Bool_t Decoder::THaSlotData::IsMultiBlockMode ( )
inline

Definition at line 68 of file THaSlotData.h.

◆ LoadBank()

UInt_t Decoder::THaSlotData::LoadBank ( const UInt_t p,
UInt_t  pos,
UInt_t  len 
)

Definition at line 193 of file THaSlotData.cxx.

◆ loadData() [1/2]

Int_t Decoder::THaSlotData::loadData ( const char *  type,
UInt_t  chan,
UInt_t  dat,
UInt_t  raw 
)

Definition at line 223 of file THaSlotData.cxx.

◆ loadData() [2/2]

int Decoder::THaSlotData::loadData ( UInt_t  chan,
UInt_t  dat,
UInt_t  raw 
)

Definition at line 306 of file THaSlotData.cxx.

◆ LoadIfSlot()

UInt_t Decoder::THaSlotData::LoadIfSlot ( const UInt_t evbuffer,
const UInt_t pstop 
)

Definition at line 164 of file THaSlotData.cxx.

◆ loadModule()

int Decoder::THaSlotData::loadModule ( const THaCrateMap map)

Definition at line 79 of file THaSlotData.cxx.

◆ LoadNextEvBuffer()

UInt_t Decoder::THaSlotData::LoadNextEvBuffer ( )

Definition at line 213 of file THaSlotData.cxx.

◆ print()

void Decoder::THaSlotData::print ( ) const

Definition at line 312 of file THaSlotData.cxx.

◆ print_to_file()

void Decoder::THaSlotData::print_to_file ( ) const

Definition at line 355 of file THaSlotData.cxx.

◆ SetDebugFile()

void Decoder::THaSlotData::SetDebugFile ( std::ofstream *  file)
inline

Definition at line 71 of file THaSlotData.h.

Member Data Documentation

◆ chanindex

VectorUIntNI Decoder::THaSlotData::chanindex
private

Definition at line 95 of file THaSlotData.h.

◆ chanlist

VectorUIntNI Decoder::THaSlotData::chanlist
private

Definition at line 93 of file THaSlotData.h.

◆ crate

UInt_t Decoder::THaSlotData::crate
private

Definition at line 83 of file THaSlotData.h.

◆ data

VectorUIntNI Decoder::THaSlotData::data
private

Definition at line 99 of file THaSlotData.h.

◆ dataindex

VectorUIntNI Decoder::THaSlotData::dataindex
private

Definition at line 96 of file THaSlotData.h.

◆ DEFNCHAN

const UInt_t Decoder::THaSlotData::DEFNCHAN = 128
static

Definition at line 41 of file THaSlotData.h.

◆ DEFNDATA

const UInt_t Decoder::THaSlotData::DEFNDATA = 1024
static

Definition at line 42 of file THaSlotData.h.

◆ DEFNHITCHAN

const UInt_t Decoder::THaSlotData::DEFNHITCHAN = 1
static

Definition at line 43 of file THaSlotData.h.

◆ device

std::string Decoder::THaSlotData::device
private

Definition at line 85 of file THaSlotData.h.

◆ didini

bool Decoder::THaSlotData::didini
private

Definition at line 101 of file THaSlotData.h.

◆ fDebugFile

std::ofstream* Decoder::THaSlotData::fDebugFile
private

Definition at line 100 of file THaSlotData.h.

◆ firstfreedataidx

UInt_t Decoder::THaSlotData::firstfreedataidx
private

Definition at line 90 of file THaSlotData.h.

◆ fModule

std::unique_ptr<Module> Decoder::THaSlotData::fModule
private

Definition at line 86 of file THaSlotData.h.

◆ fNchan

UInt_t Decoder::THaSlotData::fNchan
private

Definition at line 102 of file THaSlotData.h.

◆ idxlist

VectorUIntNI Decoder::THaSlotData::idxlist
private

Definition at line 94 of file THaSlotData.h.

◆ numchanhit

UInt_t Decoder::THaSlotData::numchanhit
private

Definition at line 89 of file THaSlotData.h.

◆ numhitperchan

UInt_t Decoder::THaSlotData::numhitperchan
private

Definition at line 87 of file THaSlotData.h.

◆ numHits

VectorUInt Decoder::THaSlotData::numHits
private

Definition at line 92 of file THaSlotData.h.

◆ numholesdataidx

UInt_t Decoder::THaSlotData::numholesdataidx
private

Definition at line 91 of file THaSlotData.h.

◆ numMaxHits

VectorUIntNI Decoder::THaSlotData::numMaxHits
private

Definition at line 97 of file THaSlotData.h.

◆ numraw

UInt_t Decoder::THaSlotData::numraw
private

Definition at line 88 of file THaSlotData.h.

◆ rawData

VectorUIntNI Decoder::THaSlotData::rawData
private

Definition at line 98 of file THaSlotData.h.

◆ slot

UInt_t Decoder::THaSlotData::slot
private

Definition at line 84 of file THaSlotData.h.

Collaboration diagram for Decoder::THaSlotData:

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