CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FastMonitor.h
Go to the documentation of this file.
1 /*
2  * FastMonitor.h
3  *
4  * Created on: Nov 27, 2012
5  * Author: aspataru
6  */
7 
8 #ifndef FASTMONITOR_H_
9 #define FASTMONITOR_H_
10 
11 #include "JsonMonitorable.h"
12 #include "DataPointDefinition.h"
13 #include "DataPoint.h"
14 
15 namespace jsoncollector {
16 
17 class FastMonitor {
18 
19 public:
20  FastMonitor(const std::vector<JsonMonitorable*>& monitorableVariables,
21  std::string defPath);
22  virtual ~FastMonitor();
23 
24  // updates internal HistoDataPoint and prints one-line CSV if param == true
25  void snap(bool outputCSVFile, std::string path);
26 
27  // outputs the contents of the internal histoDataPoint, at the end of lumi
29 
30 private:
31  JsonMonitorable* getVarForName(string name) const;
32 
35  std::vector<JsonMonitorable*> monitorableVars_;
36  std::vector<JsonMonitorable*> monitoredVars_;
37  std::vector<string> accumulatedCSV_;
39 };
40 
41 }
42 
43 #endif /* FASTMONITOR_H_ */
JsonMonitorable * getVarForName(string name) const
Definition: FastMonitor.cc:99
FastMonitor(const std::vector< JsonMonitorable * > &monitorableVariables, std::string defPath)
Definition: FastMonitor.cc:25
std::vector< JsonMonitorable * > monitorableVars_
Definition: FastMonitor.h:35
DataPointDefinition dpd_
Definition: FastMonitor.h:34
std::vector< JsonMonitorable * > monitoredVars_
Definition: FastMonitor.h:36
void snap(bool outputCSVFile, std::string path)
Definition: FastMonitor.cc:42
std::vector< string > accumulatedCSV_
Definition: FastMonitor.h:37
void outputFullHistoDataPoint(std::string path)
Definition: FastMonitor.cc:65