Class Reference for E1039 Core & Analysis Software
VariableArray Class Reference

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/packages/vararray/VariableArray.h>

+ Inheritance diagram for VariableArray:
+ Collaboration diagram for VariableArray:

Public Member Functions

 VariableArray (const unsigned int idval=0)
 
virtual ~VariableArray ()
 
void identify (std::ostream &os=std::cout) const
 
void set_val (const std::vector< short > &vec)
 
const short int * get_array () const
 
unsigned int get_array_size () const
 
int Id () const
 
void Reset ()
 Clear Event. More...
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor More...
 
virtual ~PHObject ()
 dtor More...
 
virtual PHObjectclone () const
 Virtual copy constructor. More...
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data More...
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
void SplitLevel (const int i)
 
int SplitLevel () const
 
void BufferSize (const int i)
 
int BufferSize () const
 

Protected Attributes

int id
 
unsigned int nVal
 
short * sval
 

Detailed Description

Definition at line 7 of file VariableArray.h.

Constructor & Destructor Documentation

◆ VariableArray()

VariableArray::VariableArray ( const unsigned int  idval = 0)

Definition at line 7 of file VariableArray.cc.

◆ ~VariableArray()

VariableArray::~VariableArray ( )
virtual

Definition at line 15 of file VariableArray.cc.

Member Function Documentation

◆ get_array()

const short int* VariableArray::get_array ( ) const
inline

Definition at line 17 of file VariableArray.h.

References sval.

Referenced by PHG4InEventReadBack::process_event().

+ Here is the caller graph for this function:

◆ get_array_size()

unsigned int VariableArray::get_array_size ( ) const
inline

Definition at line 18 of file VariableArray.h.

References nVal.

Referenced by PHG4InEventReadBack::process_event().

+ Here is the caller graph for this function:

◆ Id()

int VariableArray::Id ( ) const
inline

Definition at line 19 of file VariableArray.h.

References id.

◆ identify()

void VariableArray::identify ( std::ostream &  os = std::cout) const
virtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 22 of file VariableArray.cc.

◆ Reset()

void VariableArray::Reset ( )
virtual

Clear Event.

Reimplemented from PHObject.

Definition at line 47 of file VariableArray.cc.

◆ set_val()

void VariableArray::set_val ( const std::vector< short > &  vec)

Definition at line 33 of file VariableArray.cc.

Referenced by PHG4InEventCompress::process_event().

+ Here is the caller graph for this function:

Member Data Documentation

◆ id

int VariableArray::id
protected

Definition at line 23 of file VariableArray.h.

Referenced by Id().

◆ nVal

unsigned int VariableArray::nVal
protected

Definition at line 24 of file VariableArray.h.

Referenced by get_array_size().

◆ sval

short* VariableArray::sval
protected

Definition at line 25 of file VariableArray.h.

Referenced by get_array().


The documentation for this class was generated from the following files: