CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DiscardManager.h
Go to the documentation of this file.
1 // $Id: DiscardManager.h,v 1.7 2011/04/07 08:02:03 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_DiscardManager_h
5 #define EventFilter_StorageManager_DiscardManager_h
6 
7 #include "xdaq/ApplicationContext.h"
8 #include "xdaq/ApplicationDescriptor.h"
9 #include "toolbox/mem/Pool.h"
10 
11 #include "boost/shared_ptr.hpp"
12 
13 #include <map>
14 #include <string>
15 #include <utility>
16 
17 
18 namespace stor {
19 
20  class DataSenderMonitorCollection;
21  class FUProxy;
22  class I2OChain;
23 
24 
34  {
35  public:
36 
37  typedef std::pair<std::string, unsigned int> HLTSenderKey;
38  typedef boost::shared_ptr<FUProxy> FUProxyPtr;
39  typedef std::map< HLTSenderKey, boost::shared_ptr<FUProxy> > FUProxyMap;
40 
48  (
49  xdaq::ApplicationContext*,
50  xdaq::ApplicationDescriptor*,
52  );
53 
57  void configure();
58 
83  bool sendDiscardMessage(I2OChain const&);
84 
85  private:
86 
88  (
89  std::string const& hltClassName,
90  unsigned int const& hltInstance
91  );
92 
94  (
95  std::string const& hltClassName,
96  unsigned int const& hltInstance
97  );
98 
99  xdaq::ApplicationContext* appContext_;
100  xdaq::ApplicationDescriptor* appDescriptor_;
101  toolbox::mem::Pool* msgPool_;
102 
104 
106  };
107 
108  typedef boost::shared_ptr<DiscardManager> DiscardManagerPtr;
109 
110 } // namespace stor
111 
112 #endif // EventFilter_StorageManager_DiscardManager_h
113 
114 
std::pair< std::string, unsigned int > HLTSenderKey
xdaq::ApplicationContext * appContext_
FUProxyPtr getProxyFromCache(std::string const &hltClassName, unsigned int const &hltInstance)
boost::shared_ptr< FUProxy > FUProxyPtr
toolbox::mem::Pool * msgPool_
FUProxyPtr makeNewFUProxy(std::string const &hltClassName, unsigned int const &hltInstance)
std::map< HLTSenderKey, boost::shared_ptr< FUProxy > > FUProxyMap
boost::shared_ptr< DiscardManager > DiscardManagerPtr
xdaq::ApplicationDescriptor * appDescriptor_
DiscardManager(xdaq::ApplicationContext *, xdaq::ApplicationDescriptor *, DataSenderMonitorCollection &)
DataSenderMonitorCollection & dataSenderMonCollection_
bool sendDiscardMessage(I2OChain const &)