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

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

+ Inheritance diagram for oncsSub_idmvtxv0:
+ Collaboration diagram for oncsSub_idmvtxv0:

Public Member Functions

 oncsSub_idmvtxv0 (subevtdata_ptr)
 
 ~oncsSub_idmvtxv0 ()
 
int iValue (const int ich, const char *what)
 
int iValue (const int chip, const int region, const int row)
 
int iValue (const int chip, const int row)
 
void dump (OSTREAM &os=COUT)
 
void gdump (const int how=EVT_HEXADECIMAL, OSTREAM &os=COUT) const
 
- 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 _unexpected_felix_counter
 
int _bad_ruid
 
int _bad_ruchns
 
int _bad_chipids
 
int _highest_row_overall
 
int _highest_chip
 
int _excess_data_bytes
 
int _chip_id [MAXRUCHN+1]
 
int _highest_region [MAXRUCHN+1]
 
int _unexpected_bytes [MAXRUCHN+1]
 
int _bunchcounter [MAXRUCHN+1]
 
bool _header_found [MAXRUCHN+1]
 
bool _trailer_found [MAXRUCHN+1]
 
int _readout_flags [MAXRUCHN+1]
 
unsigned int chip_row [MAXRUCHN+1][512][32]
 
unsigned int chip_rowmap [MAXRUCHN+1][512]
 

Detailed Description

Definition at line 8 of file oncsSub_idmvtxv0.h.

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

Constructor & Destructor Documentation

oncsSub_idmvtxv0::~oncsSub_idmvtxv0 ( )

Definition at line 36 of file oncsSub_idmvtxv0.cc.

View newest version in sPHENIX GitHub at line 36 of file oncsSub_idmvtxv0.cc

Member Function Documentation

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

Definition at line 55 of file oncsSub_idmvtxv0.cc.

View newest version in sPHENIX GitHub at line 55 of file oncsSub_idmvtxv0.cc

Referenced by mvtx_decode().

+ Here is the caller graph for this function:

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

Reimplemented from oncsSubevent_w4.

Definition at line 505 of file oncsSub_idmvtxv0.cc.

View newest version in sPHENIX GitHub at line 505 of file oncsSub_idmvtxv0.cc

References i, oncsSubevent::identify(), iValue(), and mvtx_decode().

+ Here is the call graph for this function:

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

Reimplemented from oncsSubevent_w4.

Definition at line 567 of file oncsSub_idmvtxv0.cc.

View newest version in sPHENIX GitHub at line 567 of file oncsSub_idmvtxv0.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_idmvtxv0::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 400 of file oncsSub_idmvtxv0.cc.

View newest version in sPHENIX GitHub at line 400 of file oncsSub_idmvtxv0.cc

References _bad_chipids, _bad_ruchns, _bad_ruid, _bunchcounter, _chip_id, _excess_data_bytes, _header_found, _highest_chip, _highest_region, _highest_row_overall, _readout_flags, _trailer_found, _unexpected_bytes, _unexpected_felix_counter, and mvtx_decode().

Referenced by dump().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int oncsSub_idmvtxv0::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 484 of file oncsSub_idmvtxv0.cc.

View newest version in sPHENIX GitHub at line 484 of file oncsSub_idmvtxv0.cc

References _highest_chip, chip_row, and mvtx_decode().

+ Here is the call graph for this function:

int oncsSub_idmvtxv0::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 495 of file oncsSub_idmvtxv0.cc.

View newest version in sPHENIX GitHub at line 495 of file oncsSub_idmvtxv0.cc

References _highest_chip, chip_rowmap, and mvtx_decode().

+ Here is the call graph for this function:

int * oncsSub_idmvtxv0::mvtx_decode ( )
protected

Definition at line 85 of file oncsSub_idmvtxv0.cc.

View newest version in sPHENIX GitHub at line 85 of file oncsSub_idmvtxv0.cc

References _bad_ruchns, _bad_ruid, _bunchcounter, _chip_id, _excess_data_bytes, _header_found, _highest_chip, _highest_region, _highest_row_overall, _is_decoded, _readout_flags, _trailer_found, _unexpected_bytes, _unexpected_felix_counter, KFPMath::b, chip_row, chip_rowmap, CHIPEMPTYFRAME, CHIPHEADER, data32::counter, data32::d0, subevt_data::data, DATALONG0, DATALONG1, DATASHORT, decode_thebit(), dlength, oncsSubevent::getLength(), oncsSubevent::getPadding(), if(), MAXRUCHN, MAXRUID, Acts::Test::pos, RUHEADER, data32::ruid, RUTRAILER, 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_idmvtxv0::print_stuff ( OSTREAM out,
unsigned int  data,
int  width,
int  shift,
bool  blank = false 
) const
protected

Definition at line 75 of file oncsSub_idmvtxv0.cc.

View newest version in sPHENIX GitHub at line 75 of file oncsSub_idmvtxv0.cc

References i, mask, and width.

Referenced by gdump().

+ Here is the caller graph for this function:

Member Data Documentation

int oncsSub_idmvtxv0::_bad_chipids
protected

Definition at line 40 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 40 of file oncsSub_idmvtxv0.h

Referenced by iValue(), and oncsSub_idmvtxv0().

int oncsSub_idmvtxv0::_bad_ruchns
protected

Definition at line 39 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 39 of file oncsSub_idmvtxv0.h

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

int oncsSub_idmvtxv0::_bad_ruid
protected

Definition at line 38 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 38 of file oncsSub_idmvtxv0.h

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

int oncsSub_idmvtxv0::_bunchcounter[MAXRUCHN+1]
protected

Definition at line 47 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 47 of file oncsSub_idmvtxv0.h

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

int oncsSub_idmvtxv0::_chip_id[MAXRUCHN+1]
protected

Definition at line 44 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 44 of file oncsSub_idmvtxv0.h

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

int oncsSub_idmvtxv0::_excess_data_bytes
protected

Definition at line 43 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 43 of file oncsSub_idmvtxv0.h

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

bool oncsSub_idmvtxv0::_header_found[MAXRUCHN+1]
protected

Definition at line 48 of file oncsSub_idmvtxv0.h.

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

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

int oncsSub_idmvtxv0::_highest_chip
protected

Definition at line 42 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 42 of file oncsSub_idmvtxv0.h

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

int oncsSub_idmvtxv0::_highest_region[MAXRUCHN+1]
protected

Definition at line 45 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 45 of file oncsSub_idmvtxv0.h

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

int oncsSub_idmvtxv0::_highest_row_overall
protected

Definition at line 41 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 41 of file oncsSub_idmvtxv0.h

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

int oncsSub_idmvtxv0::_is_decoded
protected

Definition at line 36 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 36 of file oncsSub_idmvtxv0.h

Referenced by mvtx_decode(), and oncsSub_idmvtxv0().

int oncsSub_idmvtxv0::_readout_flags[MAXRUCHN+1]
protected

Definition at line 50 of file oncsSub_idmvtxv0.h.

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

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

bool oncsSub_idmvtxv0::_trailer_found[MAXRUCHN+1]
protected

Definition at line 49 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 49 of file oncsSub_idmvtxv0.h

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

int oncsSub_idmvtxv0::_unexpected_bytes[MAXRUCHN+1]
protected

Definition at line 46 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 46 of file oncsSub_idmvtxv0.h

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

int oncsSub_idmvtxv0::_unexpected_felix_counter
protected

Definition at line 37 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 37 of file oncsSub_idmvtxv0.h

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

unsigned int oncsSub_idmvtxv0::chip_row[MAXRUCHN+1][512][32]
protected

Definition at line 53 of file oncsSub_idmvtxv0.h.

View newest version in sPHENIX GitHub at line 53 of file oncsSub_idmvtxv0.h

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

unsigned int oncsSub_idmvtxv0::chip_rowmap[MAXRUCHN+1][512]
protected

Definition at line 54 of file oncsSub_idmvtxv0.h.

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

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


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