class Packet_pc_fpga: public Packet_w4

This is the packet which deals with data in PC_DCM"3" format.

Inheritance:


Protected Methods

[more]int* decode(int *)
with the "what" parameter you can decide which aspect of the data is made available.


Inherited from Packet_w4:


Inherited from Packet_A:


Inherited from Packet:

Public Methods

ovirtual int iValue(const int channel)
ovirtual int iValue(const int channel, const char * what)
ovirtual int iValue(const int channel, const int iy)
ovirtual float rValue(const int channel)
ovirtual float rValue(const int channel, const char * what)
ovirtual float rValue(const int channel, const int iy)
ovirtual int getArraylength(const char * what ="")
ovirtual int fillIntArray(int destination[], const int length, int * nw, const char * what="")
ovirtual int fillFloatArray(float destination[], const int length, int * nw, const char * what="")
ovirtual int* getIntArray(int * nw, const char * ="")
ovirtual float* getFloatArray(int * nw, const char * ="")
ovirtual int is_pointer_type() const
ovirtual int convert()
ovirtual int getLength() const
ovirtual int getDebugLength() const
ovirtual int getIdentifier() const
ovirtual int getPadding() const
ovirtual int getStructure() const
ovirtual int getHitFormat() const
ovirtual int getDataLength() const
ovirtual voidfullIdentify (std::ostream& os = std::cout) const (ostream & os = cout) const
ovirtual void dump(std::ostream& os = std::cout)
ovirtual void gdump(const int how = EVT_HEXADECIMAL, std::ostream& os = std::cout) const

Public

o


Documentation

This is the packet which deals with data in PC_DCM"3" format. It has the 13 words per row, where the 1st word is a check to verify/detect byte shifts. It inherits from Packet_w4 because the data are 32bit entities.
oint* decode(int *)
with the "what" parameter you can decide which aspect of the data is made available. This class is one of those which have several different "kinds" of data; we use this to bring up the misc. items in the FEM headers and trailers.

There are a few standard ones listed below. The one special for this packet is the iValue(i, "CHECKCTR") call, which gives you the check counter (someone can give me a better word) for row i.

A new "MISMATCH" query was introduced. iValue(0, "MISMATCH") returns 0 (false) when all the check values match. If not, you will get the number of the row where the first deviating check wird appears, which is true (you have to look with "CHECKCTR" if there are more).

So you can just do if (p->iValue(0, "MISMATCH") ) do_something();

The standard "what" parameters for an FEM packet are

 packet->iValue(0,"EVTNR")  The FEM event number
 packet->iValue(0,"MODULE")   The Module ID
 packet->iValue(0,"BCLK")     Beam clock value from FEM
 packet->iValue(i,"PARITY")   The longitudinal parity


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.