CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RunMonitorCollection.h
Go to the documentation of this file.
1 // $Id: RunMonitorCollection.h,v 1.14 2011/11/08 10:48:40 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_RunMonitorCollection_h
5 #define EventFilter_StorageManager_RunMonitorCollection_h
6 
7 #include <boost/thread/mutex.hpp>
8 
9 #include "xdata/UnsignedInteger32.h"
10 
15 
16 
17 namespace stor {
18 
29  {
30  public:
31 
33  (
34  const utils::Duration_t& updateInterval,
36  );
37 
38  void configureAlarms(AlarmParams const&);
39 
41  return eventIDsReceived_;
42  }
44  return eventIDsReceived_;
45  }
46 
49  }
52  }
53 
56  }
59  }
60 
62  return runNumbersSeen_;
63  }
65  return runNumbersSeen_;
66  }
67 
69  return lumiSectionsSeen_;
70  }
72  return lumiSectionsSeen_;
73  }
74 
76  return eolsSeen_;
77  }
79  return eolsSeen_;
80  }
81 
82  void addUnwantedEvent(const I2OChain&);
83 
84 
85  private:
86 
87  //Prevent copying of the RunMonitorCollection
90 
94  MonitoredQuantity runNumbersSeen_; // Does this make sense?
97 
99 
100  virtual void do_calculateStatistics();
101  virtual void do_reset();
103  virtual void do_updateInfoSpaceItems();
104 
106  {
107  uint32_t count;
108  uint32_t previousCount;
110  uint32_t hltTriggerCount;
111  std::vector<unsigned char> bitList;
112 
113  UnwantedEvent(const I2OChain&);
114 
115  static uint32_t nextId;
116  };
117  typedef std::map<uint32_t, UnwantedEvent> UnwantedEventsMap;
120 
121  void checkForBadEvents();
122  void alarmErrorEvents();
124 
125  xdata::UnsignedInteger32 runNumber_; // The current run number
126  xdata::UnsignedInteger32 dataEvents_; // Number of data events received
127  xdata::UnsignedInteger32 errorEvents_; // Number of error events received
128  xdata::UnsignedInteger32 unwantedEvents_; // Number of events not consumed
129 
131  };
132 
133 } // namespace stor
134 
135 #endif // EventFilter_StorageManager_RunMonitorCollection_h
136 
137 
xdata::UnsignedInteger32 dataEvents_
void configureAlarms(AlarmParams const &)
const MonitoredQuantity & getLumiSectionsSeenMQ() const
RunMonitorCollection(const utils::Duration_t &updateInterval, SharedResourcesPtr)
xdata::UnsignedInteger32 runNumber_
static boost::mutex mutex
Definition: LHEProxy.cc:11
const MonitoredQuantity & getUnwantedEventIDsReceivedMQ() const
MonitoredQuantity errorEventIDsReceived_
const MonitoredQuantity & getErrorEventIDsReceivedMQ() const
MonitoredQuantity & getRunNumbersSeenMQ()
boost::shared_ptr< SharedResources > SharedResourcesPtr
MonitoredQuantity & getEoLSSeenMQ()
UnwantedEventsMap unwantedEventsMap_
boost::posix_time::time_duration Duration_t
Definition: Utils.h:41
RunMonitorCollection & operator=(RunMonitorCollection const &)
void alarmUnwantedEvents(UnwantedEventsMap::value_type &)
MonitoredQuantity & getLumiSectionsSeenMQ()
MonitoredQuantity & getErrorEventIDsReceivedMQ()
MonitoredQuantity lumiSectionsSeen_
Container::value_type value_type
const MonitoredQuantity & getEoLSSeenMQ() const
SharedResourcesPtr sharedResources_
std::map< uint32_t, UnwantedEvent > UnwantedEventsMap
xdata::UnsignedInteger32 unwantedEvents_
MonitoredQuantity unwantedEventIDsReceived_
MonitoredQuantity & getUnwantedEventIDsReceivedMQ()
const MonitoredQuantity & getEventIDsReceivedMQ() const
MonitoredQuantity & getEventIDsReceivedMQ()
std::vector< std::pair< std::string, xdata::Serializable * > > InfoSpaceItems
MonitoredQuantity eventIDsReceived_
void addUnwantedEvent(const I2OChain &)
virtual void do_appendInfoSpaceItems(InfoSpaceItems &)
xdata::UnsignedInteger32 errorEvents_
const MonitoredQuantity & getRunNumbersSeenMQ() const