Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
IORawData
HcalTBInputService
src
CDFChunk.h
Go to the documentation of this file.
1
#ifndef CDFChunk_h_included
2
#define CDFChunk_h_included 1
3
4
#include "TObject.h"
5
#include "TString.h"
6
7
class
CDFChunk
:
public
TObject {
8
public
:
9
CDFChunk
();
10
CDFChunk
(
const
char
*
name
);
11
void
adoptBuffer
(ULong64_t* buffer, Int_t length) {
fChunk
=buffer;
fChunkLength
=length;
fHeaderSize
=2;
fTrailerSize
=1; }
12
void
releaseBuffer
() {
fChunk
=0;
fChunkLength
=0; }
13
void
setChunkName
(
const
char
* name) {
fChunkName
=
name
; }
14
inline
ULong64_t*
getData
() {
return
fChunk
; }
15
inline
Int_t
getDataLength
()
const
{
return
fChunkLength
; }
16
inline
int
getSourceId
()
const
{
return
((
fChunk
[0]>>8)&0xFFF); }
17
private
:
18
TString
fChunkName
;
19
Int_t
fHeaderSize
;
20
Int_t
fTrailerSize
;
21
Int_t
fChunkLength
;
22
ULong64_t*
fChunk
;
// [fChunkLength]
23
ClassDef(
CDFChunk
,1)
24
};
25
#endif // CDFChunk_h_included
CDFChunk::CDFChunk
CDFChunk()
Definition:
CDFChunk.cc:3
CDFChunk::releaseBuffer
void releaseBuffer()
Definition:
CDFChunk.h:12
CDFChunk::getSourceId
int getSourceId() const
Definition:
CDFChunk.h:16
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
CDFChunk::fChunkLength
Int_t fChunkLength
Definition:
CDFChunk.h:21
CDFChunk::fChunkName
TString fChunkName
Definition:
CDFChunk.h:18
CDFChunk::setChunkName
void setChunkName(const char *name)
Definition:
CDFChunk.h:13
CDFChunk::adoptBuffer
void adoptBuffer(ULong64_t *buffer, Int_t length)
Definition:
CDFChunk.h:11
CDFChunk::fChunk
ULong64_t * fChunk
Definition:
CDFChunk.h:22
CDFChunk::fTrailerSize
Int_t fTrailerSize
Definition:
CDFChunk.h:20
CDFChunk::fHeaderSize
Int_t fHeaderSize
Definition:
CDFChunk.h:19
CDFChunk::getDataLength
Int_t getDataLength() const
Definition:
CDFChunk.h:15
CDFChunk
Definition:
CDFChunk.h:7
CDFChunk::getData
ULong64_t * getData()
Definition:
CDFChunk.h:14
Generated for CMSSW Reference Manual by
1.8.5