class Packet_mutc_fpga: public Packet_w4

This is the packet which deals with data in mutc_fpga format.

Inheritance:


Public Methods

[more]virtual int iValue(const int channel, const char *what)
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 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 mutc_fpga format. It inherits from Packet_w4 because the data are 32bit entities.
ovirtual int iValue(const int channel, const char *what)
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 AMU cell information and all the misc. items in the FEM headers and trailers.

The AMU info is available as

 packet->iValue(0,"AMU") AMU cell 0
 packet->iValue(1,"AMU") AMU cell 1
 packet->iValue(2,"AMU") AMU cell 2
 packet->iValue(3,"AMU") AMU cell 3
In addition, there is
 packet->iValue(0,"BCLK")     Beam clock value from FEM
 packet->iValue(0,"EVTNR")  The FEM event number
 packet->iValue(0,"MODULE")   The Module ID
 packet->iValue(i,"USERWORD") The USERWORD i, where i is from 0 through 7
 packet->iValue(i,"PARITY")   The longitudinal parity
 packet->iValue(0,"SUMMARY")   The summary word

In order to get a sparsified readout, we provide the "CHN" "WRDCNT", and "SPARSE" interfaces.

fillIntArray (iarr1,len, &nw, "xxx") returns as many ords as there are fired channels, where xxx is

CHN       the list of channels
WRDCNT    the sample number
SPARSE    the data

so if you do the three calls,

fillIntArray (iarr1,len, &nw, "CHN")
fillIntArray (iarr2,len, &nw, "WRDCNT")
fillIntArray (iarr3,len, &nw, "SPARSE")

then you can loop over the nw fired channels and get the channel from iarr1[i], the sample as iarr2[i], the data as iarr3[i].


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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