Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
oncsSub_idmvtxv1 Class Reference

#include <online_distribution/blob/master/newbasic/oncsSub_idmvtxv1.h>

+ Inheritance diagram for oncsSub_idmvtxv1:
+ Collaboration diagram for oncsSub_idmvtxv1:

Public Member Functions

 oncsSub_idmvtxv1 (subevtdata_ptr)
 
 ~oncsSub_idmvtxv1 ()
 
int iValue (const int ruid, const char *what)
 
int iValue (const int ruid)
 iValue returns the value of a given channel as an int.
 
int iValue (const int ruid, const int ruchn, const char *what)
 
int iValue (const int ruid, const int ruchn)
 
int iValue (const int ruid, const int ruchn, const int i)
 
void dump (OSTREAM &os=COUT)
 
void gdump (const int how=EVT_HEXADECIMAL, OSTREAM &os=COUT) const
 
int encode_hit (unsigned short row, unsigned short col) const
 
unsigned short decode_row (int hit) const
 
unsigned short decode_col (int hit) const
 
bool mask_contains_ruchn (int mask, int ruchn)
 
- Public Member Functions inherited from oncsSubevent_w4
 oncsSubevent_w4 (subevtdata_ptr)
 
- Public Member Functions inherited from oncsSubevent
 oncsSubevent (subevtdata_ptr data)
 
virtual ~oncsSubevent ()
 
virtual int getLength () const
 
virtual int getIdentifier () const
 get the packet identifier
 
virtual int getHitFormat () const
 get the hit format; in case of unformatted get the encoding scheme.
 
virtual int getPadding () const
 get the number of padding units in the packet data.
 
virtual int getDataLength () const
 get what the name says...
 
virtual int getStructure () const
 get the structure of the packet data; unformatted, hitlist, etc.
 
virtual int getDebugLength () const
 get the length of the debug block
 
virtual int getErrorLength () const
 
virtual void identify (OSTREAM &=COUT) const
 
virtual int setIdentifier (const int newid)
 set a new packet identifier
 
int iValue (const int)
 iValue returns the value of a given channel as an int.
 
int iValue (const int, const char *)
 
int iValue (const int, const int)
 
int iValue (const int, const int, const char *)
 
int iValue (const int channel, const int iy, const int iz)
 
int iValue (const int channel, const int iy, const int iz, const char *what)
 
virtual float rValue (const int)
 
virtual float rValue (const int, const char *)
 
virtual float rValue (const int, const int)
 
virtual int getArraylength (const char *)
 
virtual int fillIntArray (int[], const int, int *, const char *what="")
 
virtual int fillFloatArray (float[], const int, int *, const char *what="")
 fillFloatArray fills an array of floats
 
virtual int * getIntArray (int *, const char *what="")
 
virtual float * getFloatArray (int *, const char *what="")
 getFloatArray creates and returns an array of floats
 
virtual int is_pointer_type () const
 find out what type (pointer- or data based) packet object we have
 
virtual int convert ()
 convert from pointer- to data based object, if it is already data-based, do nothing.
 
virtual int copyMe (int[], const int maxlength) const
 
int setInternalParameter (const int p1=0, const int p2=0, const char *what="")
 
- Public Member Functions inherited from Packet
virtual ~Packet ()
 the virtual destructor
 
virtual double dValue (const int channel)
 
virtual double dValue (const int channel, const char *what)
 
virtual double dValue (const int channel, const int iy)
 
virtual long long lValue (const int channel)
 
virtual long long lValue (const int channel, const char *what)
 
virtual long long lValue (const int channel, const int iy)
 
virtual long long lValue (const int channel, const int iy, const char *what)
 
virtual void * pValue (const int)
 
virtual void * pValue (const int, const char *)
 
virtual void * pValue (const int, const int)
 
virtual void identify (std::ostream &os=std::cout) const =0
 see below for comments
 
virtual void fullIdentify (std::ostream &os=std::cout) const
 write an indepth identification message to the supplied OSTREAM.
 
virtual void dump (std::ostream &os=std::cout)=0
 
virtual void gdump (const int how=EVT_HEXADECIMAL, std::ostream &os=std::cout) const =0
 
virtual int getCheckSumStatus () const
 

Protected Member Functions

int * mvtx_decode ()
 
int decode_thebit (int the_row, int encoder_id, int address) const
 
void print_stuff (OSTREAM &out, unsigned int data, int width, int shift, bool blank=false) const
 
- Protected Member Functions inherited from oncsSubevent_w4
virtual int * decode (int *)
 

Protected Attributes

int _is_decoded
 
int _highest_ruid
 
std::vector< int > _hit_vectors [IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
 
int _unexpected_felix_counters
 
int _bad_ruids
 
int _bad_ruchns [IDMVTXV1_MAXRUID+1]
 
int _lanes_active [IDMVTXV1_MAXRUID+1]
 
int _lane_stops [IDMVTXV1_MAXRUID+1]
 
int _lane_timeouts [IDMVTXV1_MAXRUID+1]
 
int _chip_id [IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
 
int _bad_bytes [IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
 
int _excess_bytes [IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
 
int _bunchcounter [IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
 
bool _header_found [IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
 
bool _trailer_found [IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
 
int _readout_flags [IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
 

Detailed Description

Definition at line 8 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 8 of file oncsSub_idmvtxv1.h

Constructor & Destructor Documentation

oncsSub_idmvtxv1::~oncsSub_idmvtxv1 ( )

Definition at line 37 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 37 of file oncsSub_idmvtxv1.cc

Member Function Documentation

unsigned short oncsSub_idmvtxv1::decode_col ( int  hit) const

Definition at line 96 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 96 of file oncsSub_idmvtxv1.cc

Referenced by dump().

+ Here is the caller graph for this function:

unsigned short oncsSub_idmvtxv1::decode_row ( int  hit) const

Definition at line 91 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 91 of file oncsSub_idmvtxv1.cc

Referenced by dump().

+ Here is the caller graph for this function:

int oncsSub_idmvtxv1::decode_thebit ( int  the_row,
int  encoder_id,
int  address 
) const
protected

Definition at line 56 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 56 of file oncsSub_idmvtxv1.cc

Referenced by mvtx_decode().

+ Here is the caller graph for this function:

void oncsSub_idmvtxv1::dump ( OSTREAM os = COUT)
virtual

Reimplemented from oncsSubevent_w4.

Definition at line 533 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 533 of file oncsSub_idmvtxv1.cc

References decode_col(), decode_row(), i, oncsSubevent::identify(), IDMVTXV1_MAXRUCHN, IDMVTXV1_MAXRUID, iValue(), mask_contains_ruchn(), and mvtx_decode().

+ Here is the call graph for this function:

int oncsSub_idmvtxv1::encode_hit ( unsigned short  row,
unsigned short  col 
) const

Definition at line 86 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 86 of file oncsSub_idmvtxv1.cc

References col.

Referenced by mvtx_decode().

+ Here is the caller graph for this function:

void oncsSub_idmvtxv1::gdump ( const int  how = EVT_HEXADECIMAL,
OSTREAM os = COUT 
) const
virtual

Reimplemented from oncsSubevent_w4.

Definition at line 614 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 614 of file oncsSub_idmvtxv1.cc

References subevt_data::data, EVT_DECIMAL, EVT_HEXADECIMAL, oncsSubevent::getLength(), oncsSubevent::getPadding(), oncsSubevent::identify(), j, print_stuff(), SETW, SEVTHEADERLENGTH, subevt_data::sub_length, subevt_data::sub_padding, and oncsSubevent::SubeventHdr.

+ Here is the call graph for this function:

int oncsSub_idmvtxv1::iValue ( const int  ,
const char *   
)
virtual

with the "what" parameter you can decide which aspect of the data you want to see (for devices which have more than one)

Implements Packet.

Definition at line 414 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 414 of file oncsSub_idmvtxv1.cc

References _bad_ruchns, _bad_ruids, _highest_ruid, _lane_stops, _lane_timeouts, _lanes_active, _unexpected_felix_counters, IDMVTXV1_MAXRUCHN, IDMVTXV1_MAXRUID, and mvtx_decode().

Referenced by dump().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int oncsSub_idmvtxv1::iValue ( const int  )
virtual

iValue returns the value of a given channel as an int.

Implements Packet.

Definition at line 460 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 460 of file oncsSub_idmvtxv1.cc

References _highest_ruid, _lanes_active, and mvtx_decode().

+ Here is the call graph for this function:

int oncsSub_idmvtxv1::iValue ( const int  ,
const int  ,
const char *   
)
virtual

we have a few recent devices which have one more dimension (such as card, time sample, channel)

Implements Packet.

Definition at line 468 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 468 of file oncsSub_idmvtxv1.cc

References _bad_bytes, _bunchcounter, _chip_id, _excess_bytes, _header_found, _highest_ruid, _lanes_active, _readout_flags, _trailer_found, and mvtx_decode().

+ Here is the call graph for this function:

int oncsSub_idmvtxv1::iValue ( const int  ,
const int   
)
virtual

this supports devices which are inherently organized as two-dimensional data, such as flash ADC's (channel vs time slice)

Implements Packet.

Definition at line 513 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 513 of file oncsSub_idmvtxv1.cc

References _highest_ruid, _hit_vectors, _lanes_active, mask_contains_ruchn(), and mvtx_decode().

+ Here is the call graph for this function:

int oncsSub_idmvtxv1::iValue ( const int  ,
const int  ,
const int   
)
virtual

this supports devices organized as three-dimensional data (card vs channel vs time slice )

Implements Packet.

Definition at line 523 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 523 of file oncsSub_idmvtxv1.cc

References _highest_ruid, _hit_vectors, _lanes_active, mask_contains_ruchn(), and mvtx_decode().

+ Here is the call graph for this function:

bool oncsSub_idmvtxv1::mask_contains_ruchn ( int  mask,
int  ruchn 
)

Definition at line 101 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 101 of file oncsSub_idmvtxv1.cc

Referenced by dump(), and iValue().

+ Here is the caller graph for this function:

int * oncsSub_idmvtxv1::mvtx_decode ( )
protected

Definition at line 108 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 108 of file oncsSub_idmvtxv1.cc

References _bad_bytes, _bad_ruchns, _bad_ruids, _bunchcounter, _chip_id, _excess_bytes, _header_found, _highest_ruid, _hit_vectors, _is_decoded, _lane_stops, _lane_timeouts, _lanes_active, _readout_flags, _trailer_found, _unexpected_felix_counters, KFPMath::b, CHIPEMPTYFRAME, CHIPHEADER, col, data32::counter, data32::d0, subevt_data::data, DATALONG0, DATALONG1, DATASHORT, decode_thebit(), dlength, encode_hit(), oncsSubevent::getDataLength(), oncsSubevent::getPadding(), i, IDMVTXV1_MAXRUCHN, IDMVTXV1_MAXRUID, IDMVTXV1_RUHEADER, IDMVTXV1_RUTRAILER, Acts::Test::pos, data32::ruid, utils::status, and oncsSubevent::SubeventHdr.

Referenced by dump(), and iValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void oncsSub_idmvtxv1::print_stuff ( OSTREAM out,
unsigned int  data,
int  width,
int  shift,
bool  blank = false 
) const
protected

Definition at line 76 of file oncsSub_idmvtxv1.cc.

View newest version in sPHENIX GitHub at line 76 of file oncsSub_idmvtxv1.cc

References i, mask, and width.

Referenced by gdump().

+ Here is the caller graph for this function:

Member Data Documentation

int oncsSub_idmvtxv1::_bad_bytes[IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
protected

Definition at line 61 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 61 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_bad_ruchns[IDMVTXV1_MAXRUID+1]
protected

Definition at line 56 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 56 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_bad_ruids
protected

Definition at line 55 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 55 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_bunchcounter[IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
protected

Definition at line 63 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 63 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_chip_id[IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
protected

Definition at line 60 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 60 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_excess_bytes[IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
protected

Definition at line 62 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 62 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

bool oncsSub_idmvtxv1::_header_found[IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
protected

Definition at line 64 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 64 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_highest_ruid
protected

Definition at line 50 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 50 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

std::vector<int> oncsSub_idmvtxv1::_hit_vectors[IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
protected

Definition at line 52 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 52 of file oncsSub_idmvtxv1.h

Referenced by iValue(), and mvtx_decode().

int oncsSub_idmvtxv1::_is_decoded
protected

Definition at line 48 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 48 of file oncsSub_idmvtxv1.h

Referenced by mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_lane_stops[IDMVTXV1_MAXRUID+1]
protected

Definition at line 58 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 58 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_lane_timeouts[IDMVTXV1_MAXRUID+1]
protected

Definition at line 59 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 59 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_lanes_active[IDMVTXV1_MAXRUID+1]
protected

Definition at line 57 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 57 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_readout_flags[IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
protected

Definition at line 66 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 66 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

bool oncsSub_idmvtxv1::_trailer_found[IDMVTXV1_MAXRUID+1][IDMVTXV1_MAXRUCHN+1]
protected

Definition at line 65 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 65 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().

int oncsSub_idmvtxv1::_unexpected_felix_counters
protected

Definition at line 54 of file oncsSub_idmvtxv1.h.

View newest version in sPHENIX GitHub at line 54 of file oncsSub_idmvtxv1.h

Referenced by iValue(), mvtx_decode(), and oncsSub_idmvtxv1().


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