Class Reference for E1039 Core & Analysis Software
VariableArray.h
Go to the documentation of this file.
1 #ifndef VARIABLEARRAY_H_
2 #define VARIABLEARRAY_H_
3 
4 #include <phool/PHObject.h>
5 #include <vector>
6 
7 class VariableArray : public PHObject
8 {
9  public:
10  VariableArray(const unsigned int idval = 0);
11  virtual ~VariableArray();
12 
13  void identify(std::ostream &os=std::cout) const;
14 
15  // Here are the very explicit set routines...
16  void set_val(const std::vector<short> &vec);
17  const short int *get_array() const {return sval;}
18  unsigned int get_array_size() const {return nVal;}
19  int Id() const {return id;}
20  void Reset();
21 
22  protected:
23  int id;
24  unsigned int nVal;
25  short *sval; //[nVal]
26 
27  ClassDef(VariableArray,1)
28 };
29 
30 #endif /* VARIABLEARRAY */
31 
void set_val(const std::vector< short > &vec)
unsigned int get_array_size() const
Definition: VariableArray.h:18
unsigned int nVal
Definition: VariableArray.h:24
void identify(std::ostream &os=std::cout) const
const short int * get_array() const
Definition: VariableArray.h:17
void Reset()
Clear Event.
VariableArray(const unsigned int idval=0)
Definition: VariableArray.cc:7
int Id() const
Definition: VariableArray.h:19
virtual ~VariableArray()