List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
fevt::SLTData Class Reference

Description of trigger data for one Telescope. More...

#include "fevt/SLTData.h"

Public Member Functions

int GetRowMask (unsigned int col) const
 
int GetSize () const
 
int GetSLTDataWord (unsigned int col) const
 
int GetSLTPattern (unsigned int col) const
 
bool HasParityError (unsigned int col) const
 
bool HasPixel (const unsigned int id) const
 
bool HasPixel (unsigned int col, const unsigned int row) const
 
bool HasSpare (unsigned int col) const
 
bool HasTrigger (unsigned int col) const
 
void SetColumn (unsigned int col, const int row, const int pattern, const bool pe, const bool trigger, const bool spare)
 
void SetParityError (unsigned int col, const bool bit)
 
void SetRowMask (unsigned int col, const int mask)
 
void SetSLTDataWord (unsigned int col, const unsigned int sltDataWord)
 
void SetSLTPattern (unsigned int col, const int pattern)
 
void SetSpare (unsigned int col, const bool bit)
 
void SetTrigger (unsigned int col, const bool bit)
 
 SLTData (const std::vector< unsigned int > &sltDataWord)
 
 SLTData (const int size)
 
 SLTData ()
 

Private Member Functions

void CheckBounds (unsigned int col) const
 

Private Attributes

unsigned int fColSize
 
std::vector< bool > fParityErrorBit
 
std::vector< int > fRowMask
 
std::vector< int > fSLTPattern
 
std::vector< bool > fSpare
 
std::vector< bool > fTrigger
 

Friends

class fevt::TelescopTriggerData
 
class utl::ShadowPtr< SLTData >
 

Detailed Description

Description of trigger data for one Telescope.

This class describes the data of the SLT and multiplicity

Author
Ralf Ulrich
Date
Mon Oct 16 09:07:19 CEST 2006

Definition at line 34 of file SLTData.h.

Constructor & Destructor Documentation

SLTData::SLTData ( const std::vector< unsigned int > &  sltDataWord)

Definition at line 13 of file SLTData.cc.

References fColSize, and SetSLTDataWord().

SLTData::SLTData ( const int  size)

Definition at line 27 of file SLTData.cc.

References fColSize, fParityErrorBit, fRowMask, fSLTPattern, fSpare, and fTrigger.

SLTData::SLTData ( )

Definition at line 21 of file SLTData.cc.

Member Function Documentation

void SLTData::CheckBounds ( unsigned int  col) const
private
int fevt::SLTData::GetRowMask ( unsigned int  col) const
inline

Definition at line 45 of file SLTData.h.

References CheckBounds(), and fRowMask.

int fevt::SLTData::GetSize ( ) const
inline

Definition at line 41 of file SLTData.h.

References fColSize.

int SLTData::GetSLTDataWord ( unsigned int  col) const

Definition at line 54 of file SLTData.cc.

References CheckBounds(), fParityErrorBit, fRowMask, fSLTPattern, fSpare, and fTrigger.

int fevt::SLTData::GetSLTPattern ( unsigned int  col) const
inline

Definition at line 44 of file SLTData.h.

References CheckBounds(), and fSLTPattern.

bool fevt::SLTData::HasParityError ( unsigned int  col) const
inline

Definition at line 48 of file SLTData.h.

References CheckBounds(), and fParityErrorBit.

bool SLTData::HasPixel ( const unsigned int  id) const

Definition at line 92 of file SLTData.cc.

bool SLTData::HasPixel ( unsigned int  col,
const unsigned int  row 
) const

Definition at line 69 of file SLTData.cc.

References CheckBounds(), and fRowMask.

bool fevt::SLTData::HasSpare ( unsigned int  col) const
inline

Definition at line 50 of file SLTData.h.

References CheckBounds(), and fSpare.

bool fevt::SLTData::HasTrigger ( unsigned int  col) const
inline

Definition at line 49 of file SLTData.h.

References CheckBounds(), and fTrigger.

void SLTData::SetColumn ( unsigned int  col,
const int  row,
const int  pattern,
const bool  pe,
const bool  trigger,
const bool  spare 
)

Definition at line 39 of file SLTData.cc.

References CheckBounds(), fParityErrorBit, fRowMask, fSLTPattern, fSpare, and fTrigger.

void SLTData::SetParityError ( unsigned int  col,
const bool  bit 
)

Definition at line 146 of file SLTData.cc.

References CheckBounds(), and fParityErrorBit.

Referenced by io::SLTData_ROOT::operator>>().

void SLTData::SetRowMask ( unsigned int  col,
const int  mask 
)
void SLTData::SetSLTDataWord ( unsigned int  col,
const unsigned int  sltDataWord 
)
void SLTData::SetSLTPattern ( unsigned int  col,
const int  pattern 
)

Definition at line 116 of file SLTData.cc.

References CheckBounds(), and fSLTPattern.

void SLTData::SetSpare ( unsigned int  col,
const bool  bit 
)

Definition at line 166 of file SLTData.cc.

References CheckBounds(), and fSpare.

Referenced by io::SLTData_ROOT::operator>>().

void SLTData::SetTrigger ( unsigned int  col,
const bool  bit 
)

Definition at line 156 of file SLTData.cc.

References CheckBounds(), and fTrigger.

Referenced by io::SLTData_ROOT::operator>>().

Friends And Related Function Documentation

friend class fevt::TelescopTriggerData
friend

Definition at line 78 of file SLTData.h.

friend class utl::ShadowPtr< SLTData >
friend

Definition at line 79 of file SLTData.h.

Member Data Documentation

unsigned int fevt::SLTData::fColSize
mutableprivate

Definition at line 76 of file SLTData.h.

Referenced by CheckBounds(), GetSize(), and SLTData().

std::vector<bool> fevt::SLTData::fParityErrorBit
private
std::vector<int> fevt::SLTData::fRowMask
private
std::vector<int> fevt::SLTData::fSLTPattern
private
std::vector<bool> fevt::SLTData::fSpare
private

Definition at line 73 of file SLTData.h.

Referenced by GetSLTDataWord(), HasSpare(), SetColumn(), SetSLTDataWord(), SetSpare(), and SLTData().

std::vector<bool> fevt::SLTData::fTrigger
private

Definition at line 72 of file SLTData.h.

Referenced by GetSLTDataWord(), HasTrigger(), SetColumn(), SetSLTDataWord(), SetTrigger(), and SLTData().


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

, generated on Tue Sep 26 2023.