PAASS
Software suite to Acquire and Analyze Data from Pixie16
set2root.hpp
Go to the documentation of this file.
1 
11 #ifndef SET2ROOT_HPP
12 #define SET2ROOT_HPP
13 
14 #include <vector>
15 #include <string.h>
16 
17 #ifdef USE_ROOT_OUTPUT
18 class TFile;
19 #endif
20 
21 class parameter{
22  public:
23  std::vector<unsigned int> values;
24 
25  parameter() : name(), offset() { }
26 
27  parameter(const std::string &name_, const unsigned int &offset_) : name(name_), offset(offset_) { }
28 
29  std::string getName(){ return name; }
30 
31  unsigned int getOffset(){ return offset; }
32 
33 #ifdef USE_ROOT_OUTPUT
34  bool write(TFile *f_, const std::string &dir_="");
35 #endif
36 
37  std::string print();
38 
39  private:
40  std::string name;
41  unsigned int offset;
42 };
43 
44 #endif
std::vector< unsigned int > values
Definition: set2root.hpp:23
std::string getName()
Definition: set2root.hpp:29
std::string print()
Definition: set2root.cpp:58
parameter(const std::string &name_, const unsigned int &offset_)
Definition: set2root.hpp:27
unsigned int getOffset()
Definition: set2root.hpp:31
unsigned int offset
The name of the pixie16 parameter.
Definition: set2root.hpp:41
std::string name
Definition: set2root.hpp:40