CbmRoot
LxHitFile Class Reference

#include <Lx.h>

Public Member Functions

 LxHitFile ()
 
 ~LxHitFile ()
 
bool Open (TString fileName, bool forWrite)
 
bool StartEvent (Int_t nEnt)
 
bool EndEvent ()
 
bool WriteHit (Int_t stationNumber, Int_t layerNumber, Double_t x, Double_t y, Double_t z, Double_t xErr, Double_t yErr, Double_t zErr)
 
bool ReadEvent (Int_t eventNumber)
 
bool ReadHit (Int_t &stationNumber, Int_t &layerNumber, Double_t &x, Double_t &y, Double_t &z, Double_t &xErr, Double_t &yErr, Double_t &zErr)
 
bool Close ()
 

Private Attributes

bool useForWrite
 
int fd
 
std::list< off_t > eventOffs
 
char * evBuf
 
int bufSize
 
char * evPtr
 
char * evEnd
 

Detailed Description

Definition at line 29 of file Simple/Lx.h.

Constructor & Destructor Documentation

◆ LxHitFile()

LxHitFile::LxHitFile ( )

Definition at line 74 of file Simple/Lx.cxx.

◆ ~LxHitFile()

LxHitFile::~LxHitFile ( )

Definition at line 77 of file Simple/Lx.cxx.

References evBuf.

Member Function Documentation

◆ Close()

bool LxHitFile::Close ( )

Definition at line 228 of file Simple/Lx.cxx.

References eventOffs, fd, i, and useForWrite.

Referenced by LxFinder::FinishTask().

◆ EndEvent()

bool LxHitFile::EndEvent ( )

Definition at line 105 of file Simple/Lx.cxx.

References bufSize, evBuf, evEnd, evPtr, and fd.

Referenced by LxFinder::Exec().

◆ Open()

bool LxHitFile::Open ( TString  fileName,
bool  forWrite 
)

Definition at line 79 of file Simple/Lx.cxx.

References fd, and useForWrite.

Referenced by LxFinder::Init().

◆ ReadEvent()

bool LxHitFile::ReadEvent ( Int_t  eventNumber)

Definition at line 144 of file Simple/Lx.cxx.

References bufSize, evBuf, evEnd, eventNumber, evPtr, and fd.

Referenced by LxFinder::ReadEvent().

◆ ReadHit()

bool LxHitFile::ReadHit ( Int_t &  stationNumber,
Int_t &  layerNumber,
Double_t &  x,
Double_t &  y,
Double_t &  z,
Double_t &  xErr,
Double_t &  yErr,
Double_t &  zErr 
)

Definition at line 199 of file Simple/Lx.cxx.

References evEnd, evPtr, x, and y.

Referenced by LxFinder::Exec().

◆ StartEvent()

bool LxHitFile::StartEvent ( Int_t  nEnt)

Definition at line 92 of file Simple/Lx.cxx.

References bufSize, evBuf, evEnd, eventOffs, evPtr, and fd.

Referenced by LxFinder::Exec().

◆ WriteHit()

bool LxHitFile::WriteHit ( Int_t  stationNumber,
Int_t  layerNumber,
Double_t  x,
Double_t  y,
Double_t  z,
Double_t  xErr,
Double_t  yErr,
Double_t  zErr 
)

Definition at line 115 of file Simple/Lx.cxx.

References evEnd, evPtr, x, and y.

Referenced by LxFinder::Exec().

Member Data Documentation

◆ bufSize

int LxHitFile::bufSize
private

Definition at line 60 of file Simple/Lx.h.

Referenced by EndEvent(), ReadEvent(), and StartEvent().

◆ evBuf

char* LxHitFile::evBuf
private

Definition at line 59 of file Simple/Lx.h.

Referenced by EndEvent(), ReadEvent(), StartEvent(), and ~LxHitFile().

◆ evEnd

char* LxHitFile::evEnd
private

Definition at line 62 of file Simple/Lx.h.

Referenced by EndEvent(), ReadEvent(), ReadHit(), StartEvent(), and WriteHit().

◆ eventOffs

std::list<off_t> LxHitFile::eventOffs
private

Definition at line 58 of file Simple/Lx.h.

Referenced by Close(), and StartEvent().

◆ evPtr

char* LxHitFile::evPtr
private

Definition at line 61 of file Simple/Lx.h.

Referenced by EndEvent(), ReadEvent(), ReadHit(), StartEvent(), and WriteHit().

◆ fd

int LxHitFile::fd
private

Definition at line 57 of file Simple/Lx.h.

Referenced by Close(), EndEvent(), Open(), ReadEvent(), and StartEvent().

◆ useForWrite

bool LxHitFile::useForWrite
private

Definition at line 56 of file Simple/Lx.h.

Referenced by Close(), and Open().


The documentation for this class was generated from the following files: