Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

SctData.RawScanResult Class Reference

A RawScanResult represents the raw data for a single scan. More...

Inheritance diagram for SctData.RawScanResult:

Inheritance graph
[legend]
Collaboration diagram for SctData.RawScanResult:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RawScanResult (ResultHeader header, ModuleConfiguration moduleConfig, ScanPoints points, IHistogram2D scanData)
String getClassName ()
String getUniqueID ()
IHistogram2D getData ()
 Gets the scan data as a ROOT histogram.

void write (OStream s, ObjectManager o) throws java.io.IOException

Static Public Member Functions

String getUniqueID (ResultHeader header)
RawScanResult read (IStream s, ObjectManager o) throws java.io.IOException
 Utility function that gets a general occupancy hist.


Package Functions

Histogram2D setHistSize (int x_size)

Private Member Functions

 RawScanResult (IStream s, ObjectManager o) throws java.io.IOException
void readData (IStream s) throws java.io.IOException
int getWidthMultiplier (short width)
void readRawData (IStream s, int size, short width) throws java.io.IOException
void readSliceData (IStream s, int size, short width) throws java.io.IOException
void readRootData (IStream s, int size, short width) throws java.io.IOException

Private Attributes

IHistogram2D scanData
short originalType

Static Private Attributes

final short SLICE = (short)2
final short SCURVE = (short)4
final short SLICE_COMPRESSED = (short)6
final short SCURVE_COMPRESSED = (short)8
final short FIT = (short)10
final short HITS_PER_EVENT = (short)12
final short ROOTHIST = (short)14
final short RAWHIST = (short)16
final short WIDTH_64BIT = (short)64
final short WIDTH_32BIT = (short)32
final short WIDTH_16BIT = (short)16

Detailed Description

A RawScanResult represents the raw data for a single scan.

Note that this object (like all others in the package) owns its members (i.e. it will delete them when it is deleted). This can cause problems with the 4 argument constructor if you give it local vars!!!! The get***Occupancy functions all return a TH1D with a constant name. It is up to the calling code to rename it as required if it does not want the hist deleted the next time any of these functions is called.

Author:
Matthew Palmer

Definition at line 15 of file RawScanResult.java.


Member Function Documentation

String SctData.RawScanResult.getUniqueID  ) 
 

Returns:
a String which uniquely identifies this object.

Implements Sct.Serializable.

Definition at line 25 of file RawScanResult.java.

References SctData.ResultHeader.getUniqueID().

Here is the call graph for this function:

RawScanResult SctData.RawScanResult.read IStream  s,
ObjectManager  o
throws java.io.IOException [static]
 

Utility function that gets a general occupancy hist.

Returns a TH1D containing the occupancy.

Definition at line 40 of file RawScanResult.java.

void SctData.RawScanResult.write OStream  s,
ObjectManager  o
throws java.io.IOException
 

ROOT-data specific bits:

Reimplemented from SctData.ScanResult.

Definition at line 44 of file RawScanResult.java.

References SctData.ScanPoints.getNPoints().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Thu Jul 15 09:57:14 2004 for SCT DAQ/DCS Software - Java by doxygen 1.3.5