ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <online_distribution/blob/master/newbasic/oncsSubevent.h>
Public Member Functions | |
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 |
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. | |
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 void * | pValue (const int chan) |
virtual void * | pValue (const int chan, const char *what) |
virtual void * | pValue (const int chan, const int iy) |
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 |
virtual int | copyMe (int[], const int maxlength) const |
Protected Member Functions | |
virtual int * | decode (int *)=0 |
Protected Attributes | |
subevtdata_ptr | SubeventHdr |
int | data1_length |
int | data2_length |
int | data3_length |
int | data4_length |
int * | decoded_data1 |
int * | decoded_data2 |
int * | decoded_data3 |
int * | decoded_data4 |
int | is_data_type |
Definition at line 15 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 15 of file oncsSubevent.h
oncsSubevent::oncsSubevent | ( | subevtdata_ptr | data | ) |
Definition at line 10 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 10 of file oncsSubevent.cc
References data1_length, data2_length, data3_length, data4_length, decoded_data1, decoded_data2, decoded_data3, decoded_data4, is_data_type, and SubeventHdr.
|
virtual |
Definition at line 28 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 28 of file oncsSubevent.cc
References decoded_data1, decoded_data2, decoded_data3, decoded_data4, is_data_type, and SubeventHdr.
|
virtual |
convert from pointer- to data based object, if it is already data-based, do nothing.
Implements Packet.
Definition at line 99 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 99 of file oncsSubevent.cc
References getLength(), is_data_type, k, SubeventHdr, and tmp.
Implemented in oncsSubevent_w4, oncsSubevent_w2, oncsSubevent_w1, oncsSub_iddreamv0, oncsSub_idfnalmwpcv2, oncsSub_idfnalmwpc, oncsSub_idsrs_v01, oncsSub_idbspetdata, oncsSub_idrcpetdata, oncsSub_iduppetdata, oncsSub_iduppetdata_v104, oncsSub_iduppetparams, oncsSub_idcaenv1742, oncsSub_iddrs4v1, oncsSub_idsis3300r, oncsSub_idcaenv792, oncsSub_idcstr, oncsSub_idsis3300, oncsSub_id2evt, and oncsSub_id4evt.
Referenced by fillFloatArray(), fillIntArray(), getArraylength(), getFloatArray(), getIntArray(), iValue(), and rValue().
|
virtual |
fillFloatArray fills an array of floats
Implements Packet.
Definition at line 298 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 298 of file oncsSubevent.cc
References data1_length, decode(), and decoded_data1.
Referenced by getFloatArray().
|
virtual |
fillIntArray and fillFloatArray fill existing (user-supplied) arrays with the decoded data
Implements Packet.
Definition at line 246 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 246 of file oncsSubevent.cc
References subevt_data::data, data1_length, decode(), decoded_data1, getLength(), and SubeventHdr.
Referenced by getIntArray().
|
virtual |
getArraylength returns the length of the array needed to store the decoded values.
Implements Packet.
Definition at line 230 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 230 of file oncsSubevent.cc
References data1_length, decode(), and decoded_data1.
|
virtual |
get what the name says...
Implements Packet.
Definition at line 49 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 49 of file oncsSubevent.cc
References subevt_data::sub_length, and SubeventHdr.
Referenced by oncsSub_idmvtxv2::decode(), oncsSubevent_w1::gdump(), oncsSubevent_w2::gdump(), oncsSubevent_w4::gdump(), and oncsSub_idmvtxv1::mvtx_decode().
|
inlinevirtual |
get the length of the debug block
Implements Packet.
Definition at line 33 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 33 of file oncsSubevent.h
|
inlinevirtual |
Implements Packet.
Definition at line 34 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 34 of file oncsSubevent.h
|
virtual |
getFloatArray creates and returns an array of floats
Implements Packet.
Definition at line 353 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 353 of file oncsSubevent.cc
References data1_length, decode(), decoded_data1, and fillFloatArray().
|
virtual |
get the hit format; in case of unformatted get the encoding scheme.
Implements Packet.
Definition at line 68 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 68 of file oncsSubevent.cc
References subevt_data::sub_decoding, and SubeventHdr.
Referenced by oncsSub_idcaenv792::decode(), and identify().
|
virtual |
get the packet identifier
Implements Packet.
Definition at line 56 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 56 of file oncsSubevent.cc
References subevt_data::sub_id, and SubeventHdr.
Referenced by identify().
getIntArray and getFloatArray create a new array of the approriate size fill it with the decoded values, and return a pointer to the array. nw is the length of the array created.
Implements Packet.
Definition at line 328 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 328 of file oncsSubevent.cc
References data1_length, decode(), decoded_data1, and fillIntArray().
|
virtual |
getLength() returns the length of the raw packet data. If you were to copy the data somewhere, the destination must be able to hold as many words.
Implements Packet.
Definition at line 42 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 42 of file oncsSubevent.cc
References subevt_data::sub_length, and SubeventHdr.
Referenced by convert(), oncsSub_id4evt::decode(), oncsSub_id2evt::decode(), oncsSub_idcstr::decode(), oncsSub_iduppetdata::decode(), oncsSub_iduppetdata_v104::decode(), oncsSub_idbspetdata::decode(), oncsSub_idrcpetdata::decode(), oncsSub_idtpcfeev1::decode(), oncsSub_idsrs_v01::decode(), oncsSub_idfnalmwpc::decode(), oncsSub_idfnalmwpcv2::decode(), oncsSub_iddreamv0::decode(), fillIntArray(), oncsSub_idmvtxv0::gdump(), oncsSub_idmvtxv1::gdump(), oncsSub_idmvtxv2::gdump(), oncsSubevent_w1::gdump(), oncsSubevent_w2::gdump(), oncsSubevent_w4::gdump(), identify(), oncsSub_idmvtxv0::mvtx_decode(), and oncsSub_idtpcfeev2::tpc_decode().
|
virtual |
get the number of padding units in the packet data.
Implements Packet.
Definition at line 74 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 74 of file oncsSubevent.cc
References subevt_data::sub_padding, and SubeventHdr.
Referenced by oncsSub_id4evt::decode(), oncsSub_id2evt::decode(), oncsSub_idcstr::decode(), oncsSub_iduppetdata_v104::decode(), oncsSub_idtpcfeev1::decode(), oncsSub_iduppetdata::decode(), oncsSub_idbspetdata::decode(), oncsSub_idrcpetdata::decode(), oncsSub_idsrs_v01::decode(), oncsSub_idfnalmwpc::decode(), oncsSub_idfnalmwpcv2::decode(), oncsSub_iddreamv0::decode(), oncsSub_idmvtxv2::decode(), oncsSub_idmvtxv0::gdump(), oncsSub_idmvtxv1::gdump(), oncsSub_idmvtxv2::gdump(), oncsSub_idmvtxv0::mvtx_decode(), oncsSub_idmvtxv1::mvtx_decode(), and oncsSub_idtpcfeev2::tpc_decode().
|
inlinevirtual |
get the structure of the packet data; unformatted, hitlist, etc.
Implements Packet.
Definition at line 32 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 32 of file oncsSubevent.h
Referenced by identify().
Definition at line 81 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 81 of file oncsSubevent.cc
References getHitFormat(), getIdentifier(), getLength(), getStructure(), oncs_get_mnemonic(), and SETW.
Referenced by oncsSub_iddigitizerv1::dump(), oncsSub_iddrs4v1::dump(), oncsSub_idtpcfeev1::dump(), oncsSub_iduppetdata_v104::dump(), oncsSub_idsrs_v01::dump(), oncsSub_idtpcfeev2::dump(), oncsSub_iddreamv0::dump(), oncsSub_idmvtxv0::dump(), oncsSub_idfnalmwpc::dump(), oncsSub_idfnalmwpcv2::dump(), oncsSub_idmvtxv1::dump(), oncsSub_idmvtxv2::dump(), oncsSub_idmvtxv0::gdump(), oncsSub_idmvtxv1::gdump(), oncsSub_idmvtxv2::gdump(), oncsSubevent_w1::gdump(), oncsSubevent_w2::gdump(), and oncsSubevent_w4::gdump().
|
virtual |
find out what type (pointer- or data based) packet object we have
Implements Packet.
Definition at line 93 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 93 of file oncsSubevent.cc
References is_data_type.
iValue returns the value of a given channel as an int.
Implements Packet.
Definition at line 121 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 121 of file oncsSubevent.cc
References data1_length, decode(), and decoded_data1.
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 139 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 139 of file oncsSubevent.cc
References data1_length, decode(), and decoded_data1.
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 157 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 157 of file oncsSubevent.cc
References data1_length, decode(), and decoded_data1.
we have a few recent devices which have one more dimension (such as card, time sample, channel)
Implements Packet.
Definition at line 44 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 44 of file oncsSubevent.h
this supports devices organized as three-dimensional data (card vs channel vs time slice )
Implements Packet.
Definition at line 45 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 45 of file oncsSubevent.h
|
inlinevirtual |
this supports devices organized as three-dimensional data (card vs channel vs time slice, with a "what" selection )
Implements Packet.
Definition at line 47 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 47 of file oncsSubevent.h
|
virtual |
rValue returns the value of a given channel as a float
Implements Packet.
Definition at line 175 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 175 of file oncsSubevent.cc
References data1_length, decode(), and decoded_data1.
|
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.
Reimplemented in oncsSub_iddrs4v1.
Definition at line 193 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 193 of file oncsSubevent.cc
References data1_length, decode(), and decoded_data1.
this supports devices which are inherently organized as two-dimensional data, such as flash ADC's (channel vs time slice)
Implements Packet.
Reimplemented in oncsSub_iddrs4v1.
Definition at line 211 of file oncsSubevent.cc.
View newest version in sPHENIX GitHub at line 211 of file oncsSubevent.cc
References data1_length, decode(), and decoded_data1.
|
inlinevirtual |
Implements Packet.
Definition at line 63 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 63 of file oncsSubevent.h
|
protected |
Definition at line 71 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 71 of file oncsSubevent.h
Referenced by oncsSub_idbspetdata::dValue(), oncsSub_iduppetdata_v104::dValue(), oncsSub_idrcpetdata::dValue(), oncsSub_iduppetdata::dValue(), fillFloatArray(), fillIntArray(), getArraylength(), getFloatArray(), getIntArray(), oncsSub_idcaenv1742::iValue(), oncsSub_idsis3300::iValue(), oncsSub_idcaenv792::iValue(), oncsSub_idsis3300r::iValue(), oncsSub_iduppetdata_v104::iValue(), oncsSub_idbspetdata::iValue(), oncsSub_iduppetdata::iValue(), oncsSub_idrcpetdata::iValue(), oncsSub_iduppetparams::iValue(), oncsSub_idsrs_v01::iValue(), iValue(), oncsSub_iduppetdata::lValue(), oncsSub_idbspetdata::lValue(), oncsSub_iduppetdata_v104::lValue(), oncsSub_idrcpetdata::lValue(), oncsSubevent(), and rValue().
|
protected |
Definition at line 72 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 72 of file oncsSubevent.h
Referenced by oncsSub_idcaenv1742::decode(), oncsSub_idbspetdata::decode(), oncsSub_iduppetdata_v104::decode(), oncsSub_iduppetdata::decode(), oncsSub_idrcpetdata::decode(), and oncsSubevent().
|
protected |
Definition at line 73 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 73 of file oncsSubevent.h
Referenced by oncsSub_idbspetdata::decode(), oncsSub_idrcpetdata::decode(), oncsSub_iduppetdata_v104::decode(), oncsSub_iduppetdata::decode(), and oncsSubevent().
|
protected |
Definition at line 74 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 74 of file oncsSubevent.h
Referenced by oncsSub_iduppetdata::decode(), oncsSub_iduppetdata_v104::decode(), and oncsSubevent().
|
protected |
Definition at line 76 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 76 of file oncsSubevent.h
Referenced by oncsSub_idbspetdata::dValue(), oncsSub_iduppetdata_v104::dValue(), oncsSub_idrcpetdata::dValue(), oncsSub_iduppetdata::dValue(), fillFloatArray(), fillIntArray(), getArraylength(), getFloatArray(), getIntArray(), oncsSub_idcaenv1742::iValue(), oncsSub_idsis3300::iValue(), oncsSub_idcaenv792::iValue(), oncsSub_idsis3300r::iValue(), oncsSub_iduppetdata_v104::iValue(), oncsSub_idbspetdata::iValue(), oncsSub_iduppetdata::iValue(), oncsSub_idrcpetdata::iValue(), oncsSub_iduppetparams::iValue(), oncsSub_idsrs_v01::iValue(), iValue(), oncsSub_iduppetdata::lValue(), oncsSub_idrcpetdata::lValue(), oncsSub_iduppetdata_v104::lValue(), oncsSub_idbspetdata::lValue(), oncsSubevent(), rValue(), and ~oncsSubevent().
|
protected |
Definition at line 77 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 77 of file oncsSubevent.h
Referenced by oncsSub_idcaenv1742::decode(), oncsSub_idrcpetdata::decode(), oncsSub_iduppetdata_v104::decode(), oncsSub_idbspetdata::decode(), oncsSub_iduppetdata::decode(), oncsSub_iduppetdata::iValue(), oncsSub_iduppetdata_v104::iValue(), oncsSub_idcaenv1742::iValue(), oncsSub_idbspetdata::iValue(), oncsSub_idrcpetdata::iValue(), oncsSubevent(), and ~oncsSubevent().
|
protected |
Definition at line 78 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 78 of file oncsSubevent.h
Referenced by oncsSub_idbspetdata::decode(), oncsSub_idrcpetdata::decode(), oncsSub_iduppetdata_v104::decode(), oncsSub_iduppetdata::decode(), oncsSub_iduppetdata::iValue(), oncsSub_iduppetdata_v104::iValue(), oncsSubevent(), and ~oncsSubevent().
|
protected |
Definition at line 79 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 79 of file oncsSubevent.h
Referenced by oncsSub_iduppetdata::decode(), oncsSub_iduppetdata_v104::decode(), oncsSub_iduppetdata::iValue(), oncsSub_iduppetdata_v104::iValue(), oncsSubevent(), and ~oncsSubevent().
|
protected |
Definition at line 80 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 80 of file oncsSubevent.h
Referenced by convert(), is_pointer_type(), oncsSubevent(), and ~oncsSubevent().
|
protected |
Definition at line 70 of file oncsSubevent.h.
View newest version in sPHENIX GitHub at line 70 of file oncsSubevent.h
Referenced by convert(), oncsSub_id4evt::decode(), oncsSub_id2evt::decode(), oncsSub_idsis3300::decode(), oncsSub_idcaenv792::decode(), oncsSub_idcstr::decode(), oncsSub_idcaenv1742::decode(), oncsSub_iddrs4v1::decode(), oncsSub_idsis3300r::decode(), oncsSub_iduppetparams::decode(), oncsSub_idrcpetdata::decode(), oncsSub_idtpcfeev1::decode(), oncsSub_iduppetdata::decode(), oncsSub_iduppetdata_v104::decode(), oncsSub_idbspetdata::decode(), oncsSub_idsrs_v01::decode(), oncsSub_idfnalmwpc::decode(), oncsSub_idfnalmwpcv2::decode(), oncsSub_iddreamv0::decode(), oncsSub_idmvtxv2::decode(), oncsSub_iddigitizerv1::digitizer_decode(), fillIntArray(), oncsSub_idmvtxv0::gdump(), oncsSub_idmvtxv1::gdump(), oncsSub_idmvtxv2::gdump(), oncsSubevent_w1::gdump(), oncsSubevent_w2::gdump(), oncsSubevent_w4::gdump(), getDataLength(), getHitFormat(), getIdentifier(), getLength(), getPadding(), oncsSub_idmvtxv0::mvtx_decode(), oncsSub_idmvtxv1::mvtx_decode(), oncsSubevent(), oncsSub_idtpcfeev2::tpc_decode(), and ~oncsSubevent().