CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CDFChunk Class Reference

#include <CDFChunk.h>

Inheritance diagram for CDFChunk:

Public Member Functions

void adoptBuffer (ULong64_t *buffer, Int_t length)
 
 CDFChunk ()
 
 CDFChunk (const char *name)
 
ULong64_t * getData ()
 
Int_t getDataLength () const
 
int getSourceId () const
 
void releaseBuffer ()
 
void setChunkName (const char *name)
 

Private Attributes

ULong64_t * fChunk
 
Int_t fChunkLength
 
TString fChunkName
 
Int_t fHeaderSize
 
Int_t fTrailerSize
 

Detailed Description

Definition at line 7 of file CDFChunk.h.

Constructor & Destructor Documentation

◆ CDFChunk() [1/2]

CDFChunk::CDFChunk ( )

Definition at line 3 of file CDFChunk.cc.

4  : TObject(), fChunkName(), fHeaderSize(0), fTrailerSize(0), fChunkLength(0), fChunk(new ULong64_t[1]) {}

◆ CDFChunk() [2/2]

CDFChunk::CDFChunk ( const char *  name)

Definition at line 6 of file CDFChunk.cc.

7  : TObject(), fChunkName(name), fHeaderSize(0), fTrailerSize(0), fChunkLength(0), fChunk(nullptr) {}

Member Function Documentation

◆ adoptBuffer()

void CDFChunk::adoptBuffer ( ULong64_t *  buffer,
Int_t  length 
)
inline

Definition at line 11 of file CDFChunk.h.

11  {
12  fChunk = buffer;
13  fChunkLength = length;
14  fHeaderSize = 2;
15  fTrailerSize = 1;
16  }

References edmScanValgrind::buffer, fChunk, fChunkLength, fHeaderSize, and fTrailerSize.

◆ getData()

ULong64_t* CDFChunk::getData ( void  )
inline

Definition at line 22 of file CDFChunk.h.

22 { return fChunk; }

References fChunk.

◆ getDataLength()

Int_t CDFChunk::getDataLength ( ) const
inline

Definition at line 23 of file CDFChunk.h.

23 { return fChunkLength; }

References fChunkLength.

Referenced by HcalTBSource::produce().

◆ getSourceId()

int CDFChunk::getSourceId ( ) const
inline

Definition at line 24 of file CDFChunk.h.

24 { return ((fChunk[0] >> 8) & 0xFFF); }

References fChunk.

Referenced by HcalTBSource::produce().

◆ releaseBuffer()

void CDFChunk::releaseBuffer ( )
inline

Definition at line 17 of file CDFChunk.h.

17  {
18  fChunk = nullptr;
19  fChunkLength = 0;
20  }

References fChunk, and fChunkLength.

◆ setChunkName()

void CDFChunk::setChunkName ( const char *  name)
inline

Definition at line 21 of file CDFChunk.h.

21 { fChunkName = name; }

References fChunkName, and Skims_PA_cff::name.

Member Data Documentation

◆ fChunk

ULong64_t* CDFChunk::fChunk
private

Definition at line 31 of file CDFChunk.h.

Referenced by adoptBuffer(), getData(), getSourceId(), and releaseBuffer().

◆ fChunkLength

Int_t CDFChunk::fChunkLength
private

Definition at line 30 of file CDFChunk.h.

Referenced by adoptBuffer(), getDataLength(), and releaseBuffer().

◆ fChunkName

TString CDFChunk::fChunkName
private

Definition at line 27 of file CDFChunk.h.

Referenced by setChunkName().

◆ fHeaderSize

Int_t CDFChunk::fHeaderSize
private

Definition at line 28 of file CDFChunk.h.

Referenced by adoptBuffer().

◆ fTrailerSize

Int_t CDFChunk::fTrailerSize
private

Definition at line 29 of file CDFChunk.h.

Referenced by adoptBuffer().

edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
CDFChunk::fHeaderSize
Int_t fHeaderSize
Definition: CDFChunk.h:28
CDFChunk::fChunkLength
Int_t fChunkLength
Definition: CDFChunk.h:30
CDFChunk::fTrailerSize
Int_t fTrailerSize
Definition: CDFChunk.h:29
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
CDFChunk::fChunkName
TString fChunkName
Definition: CDFChunk.h:27
CDFChunk::fChunk
ULong64_t * fChunk
Definition: CDFChunk.h:31