This is the packet which deals with data in ID4SCALER format.
 virtual   int iValue(const int channel)
virtual   int iValue(const int channel)
 virtual   int iValue(const int channel, const char * what)
virtual   int iValue(const int channel, const char * what)
 virtual   int iValue(const int channel, const int iy)
virtual   int iValue(const int channel, const int iy)
 virtual   float rValue(const int channel)
virtual   float rValue(const int channel)
 virtual   float rValue(const int channel, const char * what)
virtual   float rValue(const int channel, const char * what)
 virtual   float rValue(const int channel, const int iy)
virtual   float rValue(const int channel, const int iy)
 virtual   int getArraylength(const char * what ="")
virtual   int getArraylength(const char * what ="")
 virtual   int fillIntArray(int destination[],  const int length,  int * nw,  const char * what="")
virtual   int fillIntArray(int destination[],  const int length,  int * nw,  const char * what="")
 virtual   int fillFloatArray(float destination[],  const int length,  int * nw,  const char * what="")
virtual   int fillFloatArray(float destination[],  const int length,  int * nw,  const char * what="")
 virtual   int* getIntArray(int * nw, const char * ="")
virtual   int* getIntArray(int * nw, const char * ="")
 virtual   float* getFloatArray(int * nw, const char * ="")
virtual   float* getFloatArray(int * nw, const char * ="")
 virtual   int is_pointer_type() const
virtual   int is_pointer_type() const 
 virtual   int convert()
virtual   int convert()
 virtual   int getLength() const
virtual   int getLength() const 
 virtual   int getDebugLength() const
virtual   int getDebugLength() const 
 virtual   int getIdentifier() const
virtual   int getIdentifier() const 
 virtual   int getPadding() const
virtual   int getPadding() const 
 virtual   int getStructure() const
virtual   int getStructure() const 
 virtual   int getHitFormat() const
virtual   int getHitFormat() const 
 virtual   int getDataLength() const
virtual   int getDataLength() const 
 virtual   voidfullIdentify (std::ostream& os = std::cout) const (ostream & os = cout) const
virtual   voidfullIdentify (std::ostream& os = std::cout) const (ostream & os = cout) const 
 virtual   void dump(std::ostream& os = std::cout)
virtual   void dump(std::ostream& os = std::cout)
 virtual   void gdump(const int how = EVT_HEXADECIMAL, std::ostream& os = std::cout) const
virtual   void gdump(const int how = EVT_HEXADECIMAL, std::ostream& os = std::cout) const 
 
 
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.
Alphabetic index HTML hierarchy of classes or Java