MiniballSort
Loading...
Searching...
No Matches
FebexData Class Reference

#include <DataPackets.hh>

Inheritance diagram for FebexData:

Public Member Functions

 FebexData ()
 
 FebexData (long long int t, unsigned long long int id, unsigned int qi, unsigned short qs, std::vector< unsigned short > tr, unsigned char s, unsigned char b, unsigned char c, bool th, bool p, bool cl, bool f)
 
 ~FebexData ()
 
long long int GetTime ()
 
unsigned long long int GetEventID ()
 
unsigned short GetTraceLength ()
 
unsigned short GetQshort ()
 
unsigned int GetQint ()
 
unsigned char GetSfp ()
 
unsigned char GetBoard ()
 
unsigned char GetChannel ()
 
float GetEnergy ()
 
bool IsOverThreshold ()
 
bool IsPileup ()
 
bool IsClipped ()
 
bool HasFlag ()
 
std::vector< unsigned short > GetTrace ()
 
TGraph * GetTraceGraph ()
 
unsigned short GetSample (unsigned int i=0)
 
void SetTime (long long int t)
 
void SetEventID (unsigned long long int id)
 
void SetTrace (std::vector< unsigned short > t)
 
void AddSample (unsigned short s)
 
void SetQshort (unsigned short q)
 
void SetQint (unsigned int q)
 
void SetSfp (unsigned char s)
 
void SetBoard (unsigned char b)
 
void SetChannel (unsigned char c)
 
void SetEnergy (float e)
 
void SetThreshold (bool t)
 
void SetPileup (bool p)
 
void SetClipped (bool cl)
 
void SetFlag (bool f)
 
void ClearTrace ()
 
void ClearData ()
 

Protected Attributes

long long int time
 
unsigned long long int eventid
 
float energy
 
unsigned int Qint
 Charge from firmware as 32-bit integer.
 
unsigned short Qshort
 Charge from firmware as 16-bit integer.
 
std::vector< unsigned short > trace
 
unsigned char sfp
 SFP ID of the event.
 
unsigned char board
 board ID of the event
 
unsigned char ch
 channel ID of the event
 
bool thres
 is the energy over threshold?
 
bool pileup
 pileup flag from data stream
 
bool clipped
 clipped pulse flag from data stream
 
bool flagbit
 additional flag bit from data stream
 

Detailed Description

Definition at line 275 of file DataPackets.hh.

Constructor & Destructor Documentation

◆ FebexData() [1/2]

FebexData::FebexData ( )
inline

Definition at line 279 of file DataPackets.hh.

◆ FebexData() [2/2]

FebexData::FebexData ( long long int t,
unsigned long long int id,
unsigned int qi,
unsigned short qs,
std::vector< unsigned short > tr,
unsigned char s,
unsigned char b,
unsigned char c,
bool th,
bool p,
bool cl,
bool f )

◆ ~FebexData()

FebexData::~FebexData ( )
inline

Definition at line 294 of file DataPackets.hh.

Member Function Documentation

◆ AddSample()

void FebexData::AddSample ( unsigned short s)
inline

Definition at line 332 of file DataPackets.hh.

◆ ClearData()

void FebexData::ClearData ( )

Definition at line 256 of file DataPackets.cc.

◆ ClearTrace()

void FebexData::ClearTrace ( )
inline

Definition at line 344 of file DataPackets.hh.

◆ GetBoard()

unsigned char FebexData::GetBoard ( )
inline

Definition at line 302 of file DataPackets.hh.

Referenced by GetTraceGraph().

◆ GetChannel()

unsigned char FebexData::GetChannel ( )
inline

Definition at line 303 of file DataPackets.hh.

Referenced by GetTraceGraph().

◆ GetEnergy()

float FebexData::GetEnergy ( )
inline

Definition at line 304 of file DataPackets.hh.

◆ GetEventID()

unsigned long long int FebexData::GetEventID ( )
inline

Definition at line 297 of file DataPackets.hh.

◆ GetQint()

unsigned int FebexData::GetQint ( )
inline

Definition at line 300 of file DataPackets.hh.

◆ GetQshort()

unsigned short FebexData::GetQshort ( )
inline

Definition at line 299 of file DataPackets.hh.

◆ GetSample()

unsigned short FebexData::GetSample ( unsigned int i = 0)
inline

Definition at line 324 of file DataPackets.hh.

Referenced by GetTraceGraph().

◆ GetSfp()

unsigned char FebexData::GetSfp ( )
inline

Definition at line 301 of file DataPackets.hh.

Referenced by GetTraceGraph().

◆ GetTime()

long long int FebexData::GetTime ( )
inline

Definition at line 296 of file DataPackets.hh.

◆ GetTrace()

std::vector< unsigned short > FebexData::GetTrace ( )
inline

Definition at line 309 of file DataPackets.hh.

◆ GetTraceGraph()

TGraph * FebexData::GetTraceGraph ( )
inline

Definition at line 310 of file DataPackets.hh.

◆ GetTraceLength()

unsigned short FebexData::GetTraceLength ( )
inline

Definition at line 298 of file DataPackets.hh.

Referenced by GetTraceGraph().

◆ HasFlag()

bool FebexData::HasFlag ( )
inline

Definition at line 308 of file DataPackets.hh.

◆ IsClipped()

bool FebexData::IsClipped ( )
inline

Definition at line 307 of file DataPackets.hh.

◆ IsOverThreshold()

bool FebexData::IsOverThreshold ( )
inline

Definition at line 305 of file DataPackets.hh.

◆ IsPileup()

bool FebexData::IsPileup ( )
inline

Definition at line 306 of file DataPackets.hh.

◆ SetBoard()

void FebexData::SetBoard ( unsigned char b)
inline

Definition at line 336 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetChannel()

void FebexData::SetChannel ( unsigned char c)
inline

Definition at line 337 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetClipped()

void FebexData::SetClipped ( bool cl)
inline

Definition at line 341 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetEnergy()

void FebexData::SetEnergy ( float e)
inline

Definition at line 338 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetEventID()

void FebexData::SetEventID ( unsigned long long int id)
inline

Definition at line 330 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetFlag()

void FebexData::SetFlag ( bool f)
inline

Definition at line 342 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetPileup()

void FebexData::SetPileup ( bool p)
inline

Definition at line 340 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetQint()

void FebexData::SetQint ( unsigned int q)
inline

Definition at line 334 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetQshort()

void FebexData::SetQshort ( unsigned short q)
inline

Definition at line 333 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetSfp()

void FebexData::SetSfp ( unsigned char s)
inline

Definition at line 335 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetThreshold()

void FebexData::SetThreshold ( bool t)
inline

Definition at line 339 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetTime()

void FebexData::SetTime ( long long int t)
inline

Definition at line 329 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

◆ SetTrace()

void FebexData::SetTrace ( std::vector< unsigned short > t)
inline

Definition at line 331 of file DataPackets.hh.

Referenced by MiniballDataPackets::SetData().

Member Data Documentation

◆ board

unsigned char FebexData::board
protected

board ID of the event

Definition at line 356 of file DataPackets.hh.

Referenced by ClearData(), FebexData(), GetBoard(), and SetBoard().

◆ ch

unsigned char FebexData::ch
protected

channel ID of the event

Definition at line 357 of file DataPackets.hh.

Referenced by ClearData(), FebexData(), GetChannel(), and SetChannel().

◆ clipped

bool FebexData::clipped
protected

clipped pulse flag from data stream

Definition at line 360 of file DataPackets.hh.

Referenced by ClearData(), IsClipped(), and SetClipped().

◆ energy

float FebexData::energy
protected

Definition at line 351 of file DataPackets.hh.

Referenced by ClearData(), FebexData(), GetEnergy(), and SetEnergy().

◆ eventid

unsigned long long int FebexData::eventid
protected

Definition at line 350 of file DataPackets.hh.

Referenced by ClearData(), FebexData(), GetEventID(), and SetEventID().

◆ flagbit

bool FebexData::flagbit
protected

additional flag bit from data stream

Definition at line 361 of file DataPackets.hh.

Referenced by ClearData(), HasFlag(), and SetFlag().

◆ pileup

bool FebexData::pileup
protected

pileup flag from data stream

Definition at line 359 of file DataPackets.hh.

Referenced by ClearData(), IsPileup(), and SetPileup().

◆ Qint

unsigned int FebexData::Qint
protected

Charge from firmware as 32-bit integer.

Definition at line 352 of file DataPackets.hh.

Referenced by ClearData(), FebexData(), GetQint(), and SetQint().

◆ Qshort

unsigned short FebexData::Qshort
protected

Charge from firmware as 16-bit integer.

Definition at line 353 of file DataPackets.hh.

Referenced by ClearData(), FebexData(), GetQshort(), and SetQshort().

◆ sfp

unsigned char FebexData::sfp
protected

SFP ID of the event.

Definition at line 355 of file DataPackets.hh.

Referenced by ClearData(), FebexData(), GetSfp(), and SetSfp().

◆ thres

bool FebexData::thres
protected

is the energy over threshold?

Definition at line 358 of file DataPackets.hh.

Referenced by ClearData(), IsOverThreshold(), and SetThreshold().

◆ time

long long int FebexData::time
protected

Definition at line 349 of file DataPackets.hh.

Referenced by ClearData(), FebexData(), GetTime(), and SetTime().

◆ trace

std::vector<unsigned short> FebexData::trace
protected

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