CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMEventMessage.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_DQMEventMessage_h
2 #define IOPool_Streamer_DQMEventMessage_h
3 
43 #include "boost/shared_ptr.hpp"
44 #include <TObject.h>
45 #include <map>
46 
48 
49 
50 // ------------------ dqm event message ----------------
51 
52 namespace DQMEvent
53 {
54  typedef std::map< std::string, std::vector<TObject *> >
56 }
57 
59 {
72 };
73 
75 {
76  public:
77  DQMEventMsgView(void* buf);
78 
79  uint32 code() const { return head_.code(); }
80  uint32 size() const { return head_.size(); }
81 
82  uint8* startAddress() const { return buf_; }
83  uint8* eventAddress() const { return eventAddr_; }
84  uint32 eventLength() const { return eventLen_; }
86  std::string hostName() const;
88 
89  uint32 protocolVersion() const;
90  uint32 headerSize() const;
91  uint32 runNumber() const;
93  uint32 lumiSection() const;
94  uint32 updateNumber() const;
95  uint32 compressionFlag() const;
96  uint32 fuProcessId() const;
97  uint32 fuGuid() const;
98  uint32 mergeCount() const;
99 
100  edm::Timestamp timeStamp() const;
101 
102  std::string releaseTag() const { return releaseTag_; }
103  std::string topFolderName() const { return folderName_; }
104 
106  boost::shared_ptr< std::vector<std::string> > subFolderNames() const;
107 
108  std::string subFolderName(uint32 const subFolderIndex) const;
109  uint32 meCount(std::string const& subFolderName) const;
110  uint32 meCount(uint32 const subFolderIndex) const;
111 
112  private:
115  std::string releaseTag_;
116  std::string folderName_;
123  std::map<std::string, uint32> subFolderIndexTable_;
124  boost::shared_ptr< std::vector<std::string> > nameListPtr_;
125  std::vector<uint32> meCountList_;
126 };
127 
128 #endif
char_uint32 lumiSection_
char_uint32 protocolVersion_
char_uint64 timeStamp_
uint8 * eventAddress() const
uint32 hostName_len() const
char_uint32 headerSize_
uint32 protocolVersion() const
uint32 eventNumberAtUpdate() const
uint32 code() const
Definition: MsgHeader.h:34
char_uint32 updateNumber_
uint32 adler32_chksum() const
char_uint32 mergeCount_
uint8 * host_name_start_
uint32 updateNumber() const
uint32 meCount(std::string const &subFolderName) const
std::string topFolderName() const
uint32 subFolderCount() const
uint32 headerSize() const
std::map< std::string, uint32 > subFolderIndexTable_
uint32 eventLength() const
uint32 fuGuid() const
char_uint32 fuGuid_
std::string releaseTag_
DQMEventMsgView(void *buf)
std::string subFolderName(uint32 const subFolderIndex) const
boost::shared_ptr< std::vector< std::string > > nameListPtr_
uint32 compressionFlag() const
std::string folderName_
uint8 * startAddress() const
unsigned int uint32
Definition: MsgTools.h:13
unsigned char char_uint32[sizeof(uint32)]
Definition: MsgTools.h:16
char_uint32 eventNumber_
char_uint32 fuProcessId_
std::string releaseTag() const
unsigned char char_uint64[sizeof(uint64)]
Definition: MsgTools.h:15
uint32 size() const
Definition: MsgHeader.h:35
std::vector< uint32 > meCountList_
char_uint32 compressionFlag_
unsigned char uint8
Definition: MsgTools.h:11
uint32 lumiSection() const
boost::shared_ptr< std::vector< std::string > > subFolderNames() const
uint32 code() const
char_uint32 runNumber_
uint32 fuProcessId() const
std::string hostName() const
std::map< std::string, std::vector< TObject * > > TObjectTable
uint32 size() const
uint32 runNumber() const
edm::Timestamp timeStamp() const
uint32 mergeCount() const