Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllFileOutStream Class Reference

#include <coresoftware/blob/master/offline/framework/fun4allraw/Fun4AllFileOutStream.h>

+ Inheritance diagram for Fun4AllFileOutStream:
+ Collaboration diagram for Fun4AllFileOutStream:

Public Member Functions

 Fun4AllFileOutStream (const std::string &frule="OUTDATA-%010d-%04d.PRDFF", const std::string &name="FILEOUTSTREAM")
 
virtual ~Fun4AllFileOutStream ()
 
int WriteEventOut (Event *evt) override
 
int CloseOutStream () override
 
void identify (std::ostream &os=std::cout) const
 
oBufferGetoBuffer ()
 
void SetoBuffer (oBuffer *bf)
 
uint64_t MaxSize () const
 
void DeleteoBuffer ()
 
std::string FileRule () const
 
int iSeq () const
 
void iSeq (const int i)
 
uint64_t BytesWritten () const
 
void BytesWritten (const uint64_t i)
 
int OutFileDescriptor () const
 
void OutFileDescriptor (const int i)
 
PHDWORDxb ()
 
void SetNEvents (unsigned int i)
 
unsigned int GetNEvents () const
 
- Public Member Functions inherited from Fun4AllEventOutStream
virtual ~Fun4AllEventOutStream ()
 
virtual int StreamStatus ()
 
virtual int WriteEvent (Event *evt)
 
int AddPacket (const int ipkt)
 
int DropPacket (const int ipkt)
 
int AddPacketRange (const int minpacket, const int maxpacket)
 
int DropPacketRange (const int minpacket, const int maxpacket)
 
void SetManager (Fun4AllEventOutputManager *myman)
 
- Public Member Functions inherited from Fun4AllBase
virtual ~Fun4AllBase ()
 
virtual const std::string Name () const
 Returns the name of this module.
 
virtual void Name (const std::string &name)
 Sets the name of this module.
 
virtual void Print (const std::string &what="ALL") const
 
virtual void Verbosity (const int ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual void Verbosity (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual int Verbosity () const
 Gets the verbosity of this module.
 

Static Public Attributes

static const unsigned int LENGTH = (4 * 1024 * 1024)
 

Private Attributes

std::string m_FileRule
 
oBufferm_ob {nullptr}
 
int m_iSeq {0}
 
PHDWORD m_xb [LENGTH] {}
 
int m_OutFileDesc {-1}
 
unsigned int m_nEvents {0}
 
uint64_t m_BytesWritten {0}
 
uint64_t m_MaxSize {100000000000LL}
 

Additional Inherited Members

- Public Types inherited from Fun4AllBase
enum  enu_Verbosity {
  VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3,
  VERBOSITY_A_LOT = 4, VERBOSITY_MAX = std::numeric_limits<int>::max() - 10
}
 
- Protected Member Functions inherited from Fun4AllEventOutStream
 Fun4AllEventOutStream (const std::string &name="OUTSTREAM")
 
int resize_evtbuf (const unsigned int newsize)
 
Fun4AllEventOutputManagerMyManager ()
 

Detailed Description

Definition at line 16 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 16 of file Fun4AllFileOutStream.h

Constructor & Destructor Documentation

Fun4AllFileOutStream::Fun4AllFileOutStream ( const std::string &  frule = "OUTDATA-%010d-%04d.PRDFF",
const std::string &  name = "FILEOUTSTREAM" 
)

Definition at line 19 of file Fun4AllFileOutStream.cc.

View newest version in sPHENIX GitHub at line 19 of file Fun4AllFileOutStream.cc

References m_xb.

Fun4AllFileOutStream::~Fun4AllFileOutStream ( )
virtual

Definition at line 26 of file Fun4AllFileOutStream.cc.

View newest version in sPHENIX GitHub at line 26 of file Fun4AllFileOutStream.cc

References m_ob, and m_OutFileDesc.

Member Function Documentation

uint64_t Fun4AllFileOutStream::BytesWritten ( ) const
inline

Definition at line 32 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 32 of file Fun4AllFileOutStream.h

References m_BytesWritten.

Referenced by Fun4AllRolloverFileOutStream::open_new_file(), and Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

void Fun4AllFileOutStream::BytesWritten ( const uint64_t  i)
inline

Definition at line 33 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 33 of file Fun4AllFileOutStream.h

References i, and m_BytesWritten.

int Fun4AllFileOutStream::CloseOutStream ( )
overridevirtual

Reimplemented from Fun4AllEventOutStream.

Definition at line 87 of file Fun4AllFileOutStream.cc.

View newest version in sPHENIX GitHub at line 87 of file Fun4AllFileOutStream.cc

References DeleteoBuffer().

+ Here is the call graph for this function:

void Fun4AllFileOutStream::DeleteoBuffer ( )

Definition at line 99 of file Fun4AllFileOutStream.cc.

View newest version in sPHENIX GitHub at line 99 of file Fun4AllFileOutStream.cc

References m_ob.

Referenced by CloseOutStream(), Fun4AllRolloverFileOutStream::open_new_file(), and WriteEventOut().

+ Here is the caller graph for this function:

std::string Fun4AllFileOutStream::FileRule ( ) const
inline

Definition at line 29 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 29 of file Fun4AllFileOutStream.h

References m_FileRule.

Referenced by Fun4AllRolloverFileOutStream::identify(), and Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

unsigned int Fun4AllFileOutStream::GetNEvents ( ) const
inline

Definition at line 38 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 38 of file Fun4AllFileOutStream.h

References m_nEvents.

Referenced by Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

oBuffer* Fun4AllFileOutStream::GetoBuffer ( )
inline

Definition at line 25 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 25 of file Fun4AllFileOutStream.h

References m_ob.

Referenced by Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

void Fun4AllFileOutStream::identify ( std::ostream &  os = std::cout) const

Definition at line 93 of file Fun4AllFileOutStream.cc.

View newest version in sPHENIX GitHub at line 93 of file Fun4AllFileOutStream.cc

References m_OutFileDesc.

int Fun4AllFileOutStream::iSeq ( ) const
inline

Definition at line 30 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 30 of file Fun4AllFileOutStream.h

References m_iSeq.

Referenced by Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

void Fun4AllFileOutStream::iSeq ( const int  i)
inline

Definition at line 31 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 31 of file Fun4AllFileOutStream.h

References i, and m_iSeq.

uint64_t Fun4AllFileOutStream::MaxSize ( ) const
inline

Definition at line 27 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 27 of file Fun4AllFileOutStream.h

References m_MaxSize.

Referenced by Fun4AllRolloverFileOutStream::Fun4AllRolloverFileOutStream().

+ Here is the caller graph for this function:

int Fun4AllFileOutStream::OutFileDescriptor ( ) const
inline

Definition at line 34 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 34 of file Fun4AllFileOutStream.h

References m_OutFileDesc.

Referenced by Fun4AllRolloverFileOutStream::open_new_file(), and Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

void Fun4AllFileOutStream::OutFileDescriptor ( const int  i)
inline

Definition at line 35 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 35 of file Fun4AllFileOutStream.h

References i, and m_OutFileDesc.

void Fun4AllFileOutStream::SetNEvents ( unsigned int  i)
inline

Definition at line 37 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 37 of file Fun4AllFileOutStream.h

References i, and m_nEvents.

Referenced by Fun4AllRolloverFileOutStream::open_new_file(), and Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

void Fun4AllFileOutStream::SetoBuffer ( oBuffer bf)
inline

Definition at line 26 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 26 of file Fun4AllFileOutStream.h

References m_ob.

Referenced by Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

int Fun4AllFileOutStream::WriteEventOut ( Event evt)
overridevirtual

Reimplemented from Fun4AllEventOutStream.

Reimplemented in Fun4AllRolloverFileOutStream.

Definition at line 36 of file Fun4AllFileOutStream.cc.

View newest version in sPHENIX GitHub at line 36 of file Fun4AllFileOutStream.cc

References oBuffer::addEvent(), DeleteoBuffer(), oBuffer::getBytesWritten(), Event::getEvtSequence(), Event::getRunNumber(), Fun4AllServer::instance(), LENGTH, m_BytesWritten, m_FileRule, m_iSeq, m_MaxSize, m_ob, m_OutFileDesc, m_xb, Fun4AllBase::Name(), Acts::open, PHWHERE, Fun4AllServer::SegmentNumber(), and utils::status.

+ Here is the call graph for this function:

PHDWORD* Fun4AllFileOutStream::xb ( )
inline

Definition at line 36 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 36 of file Fun4AllFileOutStream.h

References m_xb.

Referenced by __example_3.f__(), profile(), pyhisspa(), pyptis(), pyreco(), pysspa(), pytbhb(), and Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

Member Data Documentation

const unsigned int Fun4AllFileOutStream::LENGTH = (4 * 1024 * 1024)
static

Definition at line 19 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 19 of file Fun4AllFileOutStream.h

Referenced by WriteEventOut(), and Fun4AllRolloverFileOutStream::WriteEventOut().

uint64_t Fun4AllFileOutStream::m_BytesWritten {0}
private

Definition at line 47 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 47 of file Fun4AllFileOutStream.h

Referenced by BytesWritten(), and WriteEventOut().

std::string Fun4AllFileOutStream::m_FileRule
private

Definition at line 41 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 41 of file Fun4AllFileOutStream.h

Referenced by FileRule(), and WriteEventOut().

int Fun4AllFileOutStream::m_iSeq {0}
private

Definition at line 43 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 43 of file Fun4AllFileOutStream.h

Referenced by iSeq(), and WriteEventOut().

uint64_t Fun4AllFileOutStream::m_MaxSize {100000000000LL}
private

Definition at line 48 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 48 of file Fun4AllFileOutStream.h

Referenced by MaxSize(), and WriteEventOut().

unsigned int Fun4AllFileOutStream::m_nEvents {0}
private

Definition at line 46 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 46 of file Fun4AllFileOutStream.h

Referenced by GetNEvents(), and SetNEvents().

oBuffer* Fun4AllFileOutStream::m_ob {nullptr}
private

Definition at line 42 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 42 of file Fun4AllFileOutStream.h

Referenced by DeleteoBuffer(), GetoBuffer(), SetoBuffer(), WriteEventOut(), and ~Fun4AllFileOutStream().

int Fun4AllFileOutStream::m_OutFileDesc {-1}
private

Definition at line 45 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 45 of file Fun4AllFileOutStream.h

Referenced by identify(), OutFileDescriptor(), WriteEventOut(), and ~Fun4AllFileOutStream().

PHDWORD Fun4AllFileOutStream::m_xb[LENGTH] {}
private

Definition at line 44 of file Fun4AllFileOutStream.h.

View newest version in sPHENIX GitHub at line 44 of file Fun4AllFileOutStream.h

Referenced by Fun4AllFileOutStream(), WriteEventOut(), and xb().


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