Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
PlotsRegister.hpp
Go to the documentation of this file.
1 
6 #ifndef __PLOTSREGISTER_HPP_
7 #define __PLOTSREGISTER_HPP_
8 
9 #include <utility>
10 #include <vector>
11 #include <string>
12 
15 public:
17  static PlotsRegister* get();
18 
23  bool CheckRange(int offset, int range) const;
24 
30  bool Add(int offset, int range, std::string name_);
31 
34 
35 private:
41 
42  std::vector< std::pair<int, int> > reg;
43 };
44 #endif // __PLOTSREGISTER_HPP_
PlotsRegister & operator=(PlotsRegister const &)
the copy constructor
Holds ranges and offsets of all plots. Singleton class.
Definition: PlotsRegister.hpp:14
bool Add(int offset, int range, std::string name_)
PlotsRegister()
Definition: PlotsRegister.hpp:37
static PlotsRegister * instance
static instance of the class
Definition: PlotsRegister.hpp:40
std::vector< std::pair< int, int > > reg
Vector of min, max of histogram numbers.
Definition: PlotsRegister.hpp:42
bool CheckRange(int offset, int range) const