CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SMProxy.h
Go to the documentation of this file.
1 //
3 // SMProxy
4 // -------
5 //
7 
8 #ifndef SMPROXY_H
9 #define SMPROXY_H
10 
14 #include "xdaq/Application.h"
15 
16 #include <string>
17 
18 namespace evf {
19 
24 class SMProxy {
25 public:
26  //
27  // construction/destruction
28  //
29  SMProxy(xdaq::ApplicationDescriptor *fuAppDesc,
30  xdaq::ApplicationDescriptor *smAppDesc,
31  xdaq::ApplicationContext *fuAppContext,
32  toolbox::mem::Pool *i2oPool);
33  virtual ~SMProxy();
34 
35  //
36  // member functions
37  //
38 
42  UInt_t sendInitMessage(UInt_t fuResourceId, UInt_t outModId,
43  UInt_t fuProcessId, UInt_t fuGuid, UChar_t*data, UInt_t dataSize,
44  UInt_t nExpectedEPs) throw (evf::Exception);
45 
50  UInt_t evtNumber, UInt_t outModId, UInt_t fuProcessId,
51  UInt_t fuGuid, UChar_t*data, UInt_t dataSize)
52  throw (evf::Exception);
53 
57  UInt_t sendErrorEvent(UInt_t fuResourceId, UInt_t runNumber,
58  UInt_t evtNumber, UInt_t fuProcessId, UInt_t fuGuid, UChar_t*data,
59  UInt_t dataSize) throw (evf::Exception);
60 
64  UInt_t sendDqmEvent(UInt_t fuDqmId, UInt_t runNumber, UInt_t evtAtUpdate,
65  UInt_t folderId, UInt_t fuProcessId, UInt_t fuGuid, UChar_t*data,
66  UInt_t dataSize) throw (evf::Exception);
67 
68 private:
69  //
70  // private member functions
71  //
72  MemRef_t* createFragmentChain(UShort_t i2oFunctionCode, UInt_t headerSize,
73  UChar_t *data, UInt_t dataSize, UInt_t &totalSize)
74  throw (evf::Exception);
75 
76 private:
77  //
78  // member data
79  //
80  Logger log_;
81  xdaq::ApplicationDescriptor *fuAppDesc_;
82  xdaq::ApplicationDescriptor *smAppDesc_;
83  xdaq::ApplicationContext *fuAppContext_;
84  toolbox::mem::Pool *i2oPool_;
85 
89 
90  std::string fuUrl_;
91  std::string fuClassName_;
92 
93 };
94 
95 } // namespace evf
96 
97 
98 #endif
unsigned short UShort_t
Definition: FUTypes.h:13
xdaq::ApplicationDescriptor * fuAppDesc_
Definition: SMProxy.h:81
std::string fuUrl_
Definition: SMProxy.h:90
toolbox::mem::Reference MemRef_t
Definition: FUTypes.h:10
toolbox::mem::Pool * i2oPool_
Definition: SMProxy.h:84
xdaq::ApplicationDescriptor * smAppDesc_
Definition: SMProxy.h:82
UInt_t dqmHeaderSize_
Definition: SMProxy.h:88
std::string fuClassName_
Definition: SMProxy.h:91
UInt_t sendDqmEvent(UInt_t fuDqmId, UInt_t runNumber, UInt_t evtAtUpdate, UInt_t folderId, UInt_t fuProcessId, UInt_t fuGuid, UChar_t *data, UInt_t dataSize)
Definition: SMProxy.cc:153
UInt_t dataHeaderSize_
Definition: SMProxy.h:87
unsigned char UChar_t
Definition: FUTypes.h:14
xdaq::ApplicationContext * fuAppContext_
Definition: SMProxy.h:83
MemRef_t * createFragmentChain(UShort_t i2oFunctionCode, UInt_t headerSize, UChar_t *data, UInt_t dataSize, UInt_t &totalSize)
Definition: SMProxy.cc:188
Logger log_
Definition: SMProxy.h:80
UInt_t sendErrorEvent(UInt_t fuResourceId, UInt_t runNumber, UInt_t evtNumber, UInt_t fuProcessId, UInt_t fuGuid, UChar_t *data, UInt_t dataSize)
Definition: SMProxy.cc:122
UInt_t initHeaderSize_
Definition: SMProxy.h:86
unsigned int UInt_t
Definition: FUTypes.h:12
UInt_t sendDataEvent(UInt_t fuResourceId, UInt_t runNumber, UInt_t evtNumber, UInt_t outModId, UInt_t fuProcessId, UInt_t fuGuid, UChar_t *data, UInt_t dataSize)
Definition: SMProxy.cc:91
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
UInt_t sendInitMessage(UInt_t fuResourceId, UInt_t outModId, UInt_t fuProcessId, UInt_t fuGuid, UChar_t *data, UInt_t dataSize, UInt_t nExpectedEPs)
Definition: SMProxy.cc:62
virtual ~SMProxy()
Definition: SMProxy.cc:53
SMProxy(xdaq::ApplicationDescriptor *fuAppDesc, xdaq::ApplicationDescriptor *smAppDesc, xdaq::ApplicationContext *fuAppContext, toolbox::mem::Pool *i2oPool)
Definition: SMProxy.cc:34