class Packet_id4scaler: public Packet_w4

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

Inheritance:


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 ID4SCALER format. It inherits from Packet_w4 because the data are 32bit entities.

Since there is a variety of data contained in that packet, the main interaction with this packet is through the iValue (channel,"STRING") interface.

The packet contains a num,ber of trigger masks which were valid for this partition.

iValue(0,"NUMBERMASKS") returns the number of masks iValue(i,"TRIGGERMASK") returns the triggermask i, where 0 <= i < iValue(0,"NUMBERMASKS")

Similarly,

iValue(0,"NUMBERSCALERS") returns the number of scalers valid for this partition.

Then you have 3 sets of scalers.

iValue(i,"RAWSCALERS") iValue(i,"LIFESCALERS") iValue(i,"SCALEDSCALERS")

where 0 <= i < iValue(0,"NUMBERSCALERS")

which return the respective scaler values.

Finally, a more complicated one is the iValue(i,"TIMESTRING") interface. Similar to the IDCSTR packet. It returns a character string losely modeled after the standard UNIX getc(FILE* fp) interface.

When the string is ended, it returns EOF, so if you are familiar with the construct

int c; while ( ( c = getc(fp) ) !=EOF ) *str++ = c;

you'll see the similarity with

int i = 0; while ( ( c = p->iValue(i++,"TIMESTRING") ) != EOF ) *str++ = c;

(p is the pointer to this packet)

In the end, you will have a regular 0-terminated C character string.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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