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.12.6.1 2011/03/07 11:33:04 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,
37  );
38 
39  void configureAlarms(AlarmParams const&);
40 
42  return eventIDsReceived_;
43  }
45  return eventIDsReceived_;
46  }
47 
50  }
53  }
54 
57  }
60  }
61 
63  return runNumbersSeen_;
64  }
66  return runNumbersSeen_;
67  }
68 
70  return lumiSectionsSeen_;
71  }
73  return lumiSectionsSeen_;
74  }
75 
77  return eolsSeen_;
78  }
80  return eolsSeen_;
81  }
82 
83  void addUnwantedEvent(const I2OChain&);
84 
85 
86  private:
87 
88  //Prevent copying of the RunMonitorCollection
91 
95  MonitoredQuantity runNumbersSeen_; // Does this make sense?
98 
101 
102  virtual void do_calculateStatistics();
103  virtual void do_reset();
105  virtual void do_updateInfoSpaceItems();
106 
108  {
109  uint32_t count;
110  uint32_t previousCount;
111  std::string alarmName;
112  uint32_t hltTriggerCount;
113  std::vector<unsigned char> bitList;
114 
115  UnwantedEvent(const I2OChain&);
116 
117  static uint32_t nextId;
118  };
119  typedef std::map<uint32_t, UnwantedEvent> UnwantedEventsMap;
122 
123  void checkForBadEvents();
124  void alarmErrorEvents();
126 
127  xdata::UnsignedInteger32 runNumber_; // The current run number
128  xdata::UnsignedInteger32 dataEvents_; // Number of data events received
129  xdata::UnsignedInteger32 errorEvents_; // Number of error events received
130  xdata::UnsignedInteger32 unwantedEvents_; // Number of events not consumed
131 
133  };
134 
135 } // namespace stor
136 
137 #endif // EventFilter_StorageManager_RunMonitorCollection_h
138 
139 
xdata::UnsignedInteger32 dataEvents_
void configureAlarms(AlarmParams const &)
const MonitoredQuantity & getLumiSectionsSeenMQ() const
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
boost::shared_ptr< AlarmHandler > AlarmHandlerPtr
Definition: AlarmHandler.h:91
xdata::UnsignedInteger32 unwantedEvents_
MonitoredQuantity unwantedEventIDsReceived_
MonitoredQuantity & getUnwantedEventIDsReceivedMQ()
const MonitoredQuantity & getEventIDsReceivedMQ() const
MonitoredQuantity & getEventIDsReceivedMQ()
std::vector< std::pair< std::string, xdata::Serializable * > > InfoSpaceItems
MonitoredQuantity eventIDsReceived_
RunMonitorCollection(const utils::Duration_t &updateInterval, AlarmHandlerPtr, SharedResourcesPtr)
void addUnwantedEvent(const I2OChain &)
virtual void do_appendInfoSpaceItems(InfoSpaceItems &)
xdata::UnsignedInteger32 errorEvents_
const MonitoredQuantity & getRunNumbersSeenMQ() const