HistoData.h
Go to the documentation of this file.
1 #ifndef OM_HISTODATA_H
2 #define OM_HISTODATA_H
3 #include <string>
4 #include <vector>
5 #include "NovaDAQConventions/DAQConventions.h"
6 
7 namespace om {
8  //
9  // Enumerate the supported types of detectors. Copy the definitions
10  // from novadaq::cnv.
11  //
12  typedef enum _det_types {
18  kUnknownDet = 999999
19  } Detector_t;
20 
21  //
22  // Enumerate the supported types of histograms
23  //
24  typedef enum _histo_types {
28  } Histo_t;
29 
30  //......................................................................
31 
32  ///
33  /// A complete line of data describing a histogram used in the online
34  /// monitoring.
35  ///
36  class HistoData
37  {
38  public:
39  bool IsValid() const;
40  public:
41  std::vector<std::string> fCategory; ///< Categories this hist. belongs to
42  unsigned int fReset; ///< Reset schedule (see TickerSubscriber.h)
43  unsigned int fLookBack; ///< How many copies to save in history
44  Detector_t fDetector; ///< Detector these settings apply to
45  std::string fTriggers; ///< Triggers to which histo applies
46  Histo_t fType; ///< What kind of histogram is this?
47  std::string fName; ///< C++ name of this histogram
48  std::string fTitle; ///< Titles for histogram
49  int fNx; ///< Number of bins in x
50  double fX1; ///< Low edge of x range
51  double fX2; ///< High edge of x range
52  double fNy; ///< Number of bins in y
53  double fY1; ///< Low edge of y range
54  double fY2; ///< High edge of y range
55  std::vector<std::string> fOption; ///< Booking/drawing options
56  std::string fCaption; ///< What does this histogram show?
57  };
58 }
59 #endif
60 ////////////////////////////////////////////////////////////////////////
61 
double fX1
Low edge of x range.
Definition: HistoData.h:50
unsigned int fLookBack
How many copies to save in history.
Definition: HistoData.h:43
_det_types
Definition: HistoData.h:12
_histo_types
Definition: HistoData.h:24
std::vector< std::string > fCategory
Categories this hist. belongs to.
Definition: HistoData.h:41
bool IsValid() const
Definition: HistoData.cxx:4
std::string fCaption
What does this histogram show?
Definition: HistoData.h:56
std::string fTitle
Titles for histogram.
Definition: HistoData.h:48
int fNx
Number of bins in x.
Definition: HistoData.h:49
std::string fTriggers
Triggers to which histo applies.
Definition: HistoData.h:45
Far Detector at Ash River, MN.
std::vector< std::string > fOption
Booking/drawing options.
Definition: HistoData.h:55
Prototype Near Detector on the surface at FNAL.
Near Detector in the NuMI cavern.
double fY2
High edge of y range.
Definition: HistoData.h:54
std::string fName
C++ name of this histogram.
Definition: HistoData.h:47
double fX2
High edge of x range.
Definition: HistoData.h:51
Histo_t fType
What kind of histogram is this?
Definition: HistoData.h:46
double fNy
Number of bins in y.
Definition: HistoData.h:52
Detector_t fDetector
Detector these settings apply to.
Definition: HistoData.h:44
unsigned int fReset
Reset schedule (see TickerSubscriber.h)
Definition: HistoData.h:42
double fY1
Low edge of y range.
Definition: HistoData.h:53
enum om::_det_types Detector_t
Online Monitoring package header.
enum om::_histo_types Histo_t
enum BeamMode string