CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HistoData.h
Go to the documentation of this file.
1 #ifndef HISTO_DATA__H
2 #define HISTO_DATA__H
3 
4 #include <string>
5 
6 class HistoData {
7 public:
8 
9  HistoData(std::string Name, int Number);
10  virtual ~HistoData();
11 
12  // Getters
13  std::string GetName() { return name; }
14  std::string GetValueX() { return x_value; }
15  unsigned short GetType() { return type; }
16  int GetNumber() { return number; }
17  //int GetNBinsX() { return nbinsx; }
18  //int GetNBinsY() { return nbinsy; }
19  //float GetMinX() { return xmin; }
20  //float GetMaxX() { return xmax; }
21  //float GetMinY() { return ymin; }
22  //float GetMaxY() { return ymax; }
23 
24  // Setters
25  void SetType(unsigned short Type) { type = Type; }
26  void SetValueX(std::string Value) { x_value = Value; }
27  //void SetBinsX(int N, float MinX, float MaxX) { nbinsx = N; xmin = MinX; xmax = MaxX; }
28  void SetValueY(std::string Value) { y_value = Value; }
29  //void SetBinsY(int N, float MinY, float MaxY) { nbinsy = N; ymin = MinY; ymax = MaxY; }
30 
31  // Misc Functions
32  void Clear() { memset(this,0,sizeof(struct HistoData)); }
33  void Dump();
34 
35 private:
36 
37  std::string name;
38  std::string x_value, y_value;
39  int number;
40  unsigned short type;
41  //int nbinsx, nbinsy;
42  //float xmin, xmax;
43  //float ymin, ymax;
44 
45 };
46 
47 #endif // HISTO_DATA__H
unsigned short GetType()
Definition: HistoData.h:15
type
Definition: HCALResponse.h:22
int GetNumber()
Definition: HistoData.h:16
std::string y_value
Definition: HistoData.h:38
HistoData(std::string Name, int Number)
void SetValueY(std::string Value)
Definition: HistoData.h:28
unsigned short type
Definition: HistoData.h:40
reco::JetExtendedAssociation::JetExtendedData Value
int number
Definition: HistoData.h:39
std::string name
Definition: HistoData.h:37
virtual ~HistoData()
std::string x_value
Definition: HistoData.h:38
std::string GetName()
Definition: HistoData.h:13
void SetValueX(std::string Value)
Definition: HistoData.h:26
void Dump()
void SetType(unsigned short Type)
Definition: HistoData.h:25
void Clear()
Definition: HistoData.h:32
std::string GetValueX()
Definition: HistoData.h:14