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 #ifndef SMPROXY_H
2 #define SMPROXY_H
3 
4 
8 #include "xdaq/Application.h"
9 
10 
11 #include <string>
12 
13 
14 namespace evf {
15 
16  class SMProxy
17  {
18  public:
19  //
20  // construction/destruction
21  //
22  SMProxy(xdaq::ApplicationDescriptor *fuAppDesc,
23  xdaq::ApplicationDescriptor *smAppDesc,
24  xdaq::ApplicationContext *fuAppContext,
25  toolbox::mem::Pool *i2oPool);
26  virtual ~SMProxy();
27 
28 
29  //
30  // member functions
31  //
32  UInt_t sendInitMessage(UInt_t fuResourceId,
33  UInt_t outModId,
34  UInt_t fuProcessId,
35  UInt_t fuGuid,
36  UChar_t*data,
37  UInt_t dataSize) throw (evf::Exception);
38 
39  UInt_t sendDataEvent(UInt_t fuResourceId,
41  UInt_t evtNumber,
42  UInt_t outModId,
43  UInt_t fuProcessId,
44  UInt_t fuGuid,
45  UChar_t*data,
46  UInt_t dataSize) throw (evf::Exception);
47 
48  UInt_t sendErrorEvent(UInt_t fuResourceId,
49  UInt_t runNumber,
50  UInt_t evtNumber,
51  UInt_t fuProcessId,
52  UInt_t fuGuid,
53  UChar_t*data,
54  UInt_t dataSize) throw (evf::Exception);
55 
56  UInt_t sendDqmEvent(UInt_t fuDqmId,
57  UInt_t runNumber,
58  UInt_t evtAtUpdate,
59  UInt_t folderId,
60  UInt_t fuProcessId,
61  UInt_t fuGuid,
62  UChar_t*data,
63  UInt_t dataSize) throw (evf::Exception);
64 
65 
66  private:
67  //
68  // private member functions
69  //
70  MemRef_t* createFragmentChain(UShort_t i2oFunctionCode,
71  UInt_t headerSize,
72  UChar_t *data,
73  UInt_t dataSize,
74  UInt_t &totalSize) 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:197
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:245
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:154
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:110
UInt_t sendInitMessage(UInt_t fuResourceId, UInt_t outModId, UInt_t fuProcessId, UInt_t fuGuid, UChar_t *data, UInt_t dataSize)
Definition: SMProxy.cc:71
virtual ~SMProxy()
Definition: SMProxy.cc:60
SMProxy(xdaq::ApplicationDescriptor *fuAppDesc, xdaq::ApplicationDescriptor *smAppDesc, xdaq::ApplicationContext *fuAppContext, toolbox::mem::Pool *i2oPool)
Definition: SMProxy.cc:36