ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllEventOutStream Class Reference

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

+ Inheritance diagram for Fun4AllEventOutStream:
+ Collaboration diagram for Fun4AllEventOutStream:

Public Member Functions

virtual ~Fun4AllEventOutStream ()
 
virtual int StreamStatus ()
 
virtual int WriteEvent (Event *evt)
 
virtual int WriteEventOut (Event *)
 
virtual int CloseOutStream ()
 
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.
 

Protected Member Functions

 Fun4AllEventOutStream (const std::string &name="OUTSTREAM")
 
int resize_evtbuf (const unsigned int newsize)
 
Fun4AllEventOutputManagerMyManager ()
 
- Protected Member Functions inherited from Fun4AllBase
 Fun4AllBase (const std::string &name="NONAME")
 

Private Attributes

PHDWORDevtbuf
 
Fun4AllEventOutputManagerm_MyManager
 
unsigned int evtbuf_size
 
int add_or_remove
 
Packet ** plist
 
int max_npackets
 
int npackets
 
int default_addall
 
std::map< int,
boost::numeric::interval< int > > 
addpktrange
 
std::map< int,
boost::numeric::interval< int > > 
droppktrange
 

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 = INT_MAX - 10
}
 

Detailed Description

Definition at line 22 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 22 of file Fun4AllEventOutStream.h

Constructor & Destructor Documentation

Fun4AllEventOutStream::~Fun4AllEventOutStream ( )
virtual

Definition at line 36 of file Fun4AllEventOutStream.cc.

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

References evtbuf, and plist.

Fun4AllEventOutStream::Fun4AllEventOutStream ( const std::string &  name = "OUTSTREAM")
protected

Definition at line 22 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 22 of file Fun4AllEventOutStream.cc

Member Function Documentation

int Fun4AllEventOutStream::AddPacket ( const int  ipkt)

Definition at line 158 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 158 of file Fun4AllEventOutStream.cc

References AddPacketRange().

Referenced by Fun4AllEventOutputManager::AddPacket().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Fun4AllEventOutStream::AddPacketRange ( const int  minpacket,
const int  maxpacket 
)

Definition at line 170 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 170 of file Fun4AllEventOutStream.cc

References add_or_remove, addpktrange, e, g4zmq::exit(), in, and PHWHERE.

Referenced by AddPacket(), and Fun4AllEventOutputManager::AddPacketRange().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual int Fun4AllEventOutStream::CloseOutStream ( )
inlinevirtual

Reimplemented in Fun4AllFileOutStream.

Definition at line 29 of file Fun4AllEventOutStream.h.

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

int Fun4AllEventOutStream::DropPacket ( const int  ipkt)

Definition at line 164 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 164 of file Fun4AllEventOutStream.cc

References DropPacketRange().

Referenced by Fun4AllEventOutputManager::DropPacket().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Fun4AllEventOutStream::DropPacketRange ( const int  minpacket,
const int  maxpacket 
)

Definition at line 201 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 201 of file Fun4AllEventOutStream.cc

References add_or_remove, default_addall, droppktrange, e, g4zmq::exit(), in, and PHWHERE.

Referenced by DropPacket(), and Fun4AllEventOutputManager::DropPacketRange().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Fun4AllEventOutputManager* Fun4AllEventOutStream::MyManager ( )
inlineprotected

Definition at line 40 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 40 of file Fun4AllEventOutStream.h

References m_MyManager.

Referenced by Fun4AllRolloverFileOutStream::WriteEventOut().

+ Here is the caller graph for this function:

int Fun4AllEventOutStream::resize_evtbuf ( const unsigned int  newsize)
protected

Definition at line 43 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 43 of file Fun4AllEventOutStream.cc

References evtbuf, and evtbuf_size.

Referenced by WriteEvent().

+ Here is the caller graph for this function:

void Fun4AllEventOutStream::SetManager ( Fun4AllEventOutputManager myman)
inline

Definition at line 35 of file Fun4AllEventOutStream.h.

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

References m_MyManager.

Referenced by Fun4AllEventOutputManager::Fun4AllEventOutputManager().

+ Here is the caller graph for this function:

virtual int Fun4AllEventOutStream::StreamStatus ( )
inlinevirtual

Definition at line 26 of file Fun4AllEventOutStream.h.

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

int Fun4AllEventOutStream::WriteEvent ( Event evt)
virtual

Definition at line 55 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 55 of file Fun4AllEventOutStream.cc

References add_or_remove, addpktrange, default_addall, droppktrange, evtbuf, evtbuf_size, Event::getEvtSequence(), Event::getEvtType(), Packet::getIdentifier(), Packet::getLength(), Event::getPacketList(), Event::getRunNumber(), in, max_npackets, npackets, plist, resize_evtbuf(), Fun4AllBase::Verbosity(), and WriteEventOut().

Referenced by Fun4AllEventOutputManager::Write().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual int Fun4AllEventOutStream::WriteEventOut ( Event )
inlinevirtual

Reimplemented in Fun4AllFileOutStream, and Fun4AllRolloverFileOutStream.

Definition at line 28 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 28 of file Fun4AllEventOutStream.h

Referenced by WriteEvent().

+ Here is the caller graph for this function:

Member Data Documentation

int Fun4AllEventOutStream::add_or_remove
private

Definition at line 48 of file Fun4AllEventOutStream.h.

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

Referenced by AddPacketRange(), DropPacketRange(), and WriteEvent().

std::map<int, boost::numeric::interval<int> > Fun4AllEventOutStream::addpktrange
private

Definition at line 53 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 53 of file Fun4AllEventOutStream.h

Referenced by AddPacketRange(), and WriteEvent().

int Fun4AllEventOutStream::default_addall
private

Definition at line 52 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 52 of file Fun4AllEventOutStream.h

Referenced by DropPacketRange(), and WriteEvent().

std::map<int, boost::numeric::interval<int> > Fun4AllEventOutStream::droppktrange
private

Definition at line 54 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 54 of file Fun4AllEventOutStream.h

Referenced by DropPacketRange(), and WriteEvent().

PHDWORD* Fun4AllEventOutStream::evtbuf
private

Definition at line 43 of file Fun4AllEventOutStream.h.

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

Referenced by resize_evtbuf(), WriteEvent(), and ~Fun4AllEventOutStream().

unsigned int Fun4AllEventOutStream::evtbuf_size
private

Definition at line 45 of file Fun4AllEventOutStream.h.

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

Referenced by resize_evtbuf(), and WriteEvent().

Fun4AllEventOutputManager* Fun4AllEventOutStream::m_MyManager
private

Definition at line 44 of file Fun4AllEventOutStream.h.

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

Referenced by MyManager(), and SetManager().

int Fun4AllEventOutStream::max_npackets
private

Definition at line 50 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 50 of file Fun4AllEventOutStream.h

Referenced by WriteEvent().

int Fun4AllEventOutStream::npackets
private

Definition at line 51 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 51 of file Fun4AllEventOutStream.h

Referenced by WriteEvent().

Packet** Fun4AllEventOutStream::plist
private

Definition at line 49 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 49 of file Fun4AllEventOutStream.h

Referenced by WriteEvent(), and ~Fun4AllEventOutStream().


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