Analysis Software
Documentation for sPHENIX simulation 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 = nullptr
 
Fun4AllEventOutputManagerm_MyManager = nullptr
 
unsigned int evtbuf_size = 0
 
int add_or_remove = 0
 
Packet ** plist = nullptr
 
int max_npackets = 1000
 
int npackets = 0
 
int default_addall = 0
 
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 = std::numeric_limits<int>::max() - 10
}
 

Detailed Description

Definition at line 25 of file Fun4AllEventOutStream.h.

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

Constructor & Destructor Documentation

Fun4AllEventOutStream::~Fun4AllEventOutStream ( )
virtual

Definition at line 25 of file Fun4AllEventOutStream.cc.

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

References evtbuf, and plist.

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

Definition at line 20 of file Fun4AllEventOutStream.cc.

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

Member Function Documentation

int Fun4AllEventOutStream::AddPacket ( const int  ipkt)

Definition at line 147 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 147 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 159 of file Fun4AllEventOutStream.cc.

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

References add_or_remove, addpktrange, Acts::UnitConstants::e, in, and PHWHERE.

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

+ Here is the caller graph for this function:

virtual int Fun4AllEventOutStream::CloseOutStream ( )
inlinevirtual

Reimplemented in Fun4AllFileOutStream.

Definition at line 32 of file Fun4AllEventOutStream.h.

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

int Fun4AllEventOutStream::DropPacket ( const int  ipkt)

Definition at line 153 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 153 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 190 of file Fun4AllEventOutStream.cc.

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

References add_or_remove, default_addall, droppktrange, Acts::UnitConstants::e, in, and PHWHERE.

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

+ Here is the caller graph for this function:

Fun4AllEventOutputManager* Fun4AllEventOutStream::MyManager ( )
inlineprotected

Definition at line 43 of file Fun4AllEventOutStream.h.

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

References m_MyManager.

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

+ Here is the caller graph for this function:

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

Definition at line 32 of file Fun4AllEventOutStream.cc.

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

References evtbuf, evtbuf_size, and i.

Referenced by WriteEvent().

+ Here is the caller graph for this function:

void Fun4AllEventOutStream::SetManager ( Fun4AllEventOutputManager myman)
inline

Definition at line 38 of file Fun4AllEventOutStream.h.

View newest version in sPHENIX GitHub at line 38 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 29 of file Fun4AllEventOutStream.h.

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

int Fun4AllEventOutStream::WriteEvent ( Event evt)
virtual

Definition at line 44 of file Fun4AllEventOutStream.cc.

View newest version in sPHENIX GitHub at line 44 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(), i, in, index, max_npackets, npackets, packetid, plist, resize_evtbuf(), size, 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 Fun4AllRolloverFileOutStream, and Fun4AllFileOutStream.

Definition at line 31 of file Fun4AllEventOutStream.h.

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

Referenced by WriteEvent().

+ Here is the caller graph for this function:

Member Data Documentation

int Fun4AllEventOutStream::add_or_remove = 0
private

Definition at line 51 of file Fun4AllEventOutStream.h.

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

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

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

Definition at line 56 of file Fun4AllEventOutStream.h.

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

Referenced by AddPacketRange(), and WriteEvent().

int Fun4AllEventOutStream::default_addall = 0
private

Definition at line 55 of file Fun4AllEventOutStream.h.

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

Referenced by DropPacketRange(), and WriteEvent().

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

Definition at line 57 of file Fun4AllEventOutStream.h.

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

Referenced by DropPacketRange(), and WriteEvent().

PHDWORD* Fun4AllEventOutStream::evtbuf = nullptr
private

Definition at line 46 of file Fun4AllEventOutStream.h.

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

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

unsigned int Fun4AllEventOutStream::evtbuf_size = 0
private

Definition at line 48 of file Fun4AllEventOutStream.h.

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

Referenced by resize_evtbuf(), and WriteEvent().

Fun4AllEventOutputManager* Fun4AllEventOutStream::m_MyManager = nullptr
private

Definition at line 47 of file Fun4AllEventOutStream.h.

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

Referenced by MyManager(), and SetManager().

int Fun4AllEventOutStream::max_npackets = 1000
private

Definition at line 53 of file Fun4AllEventOutStream.h.

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

Referenced by WriteEvent().

int Fun4AllEventOutStream::npackets = 0
private

Definition at line 54 of file Fun4AllEventOutStream.h.

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

Referenced by WriteEvent().

Packet** Fun4AllEventOutStream::plist = nullptr
private

Definition at line 52 of file Fun4AllEventOutStream.h.

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

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


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