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

#include <online_distribution/blob/master/newbasic/oncsSub_idfnalmwpc.h>

+ Inheritance diagram for oncsSub_idfnalmwpc:
+ Collaboration diagram for oncsSub_idfnalmwpc:

Classes

struct  SpillInfo
 
struct  TDC_hit
 
struct  TDCData
 
struct  TDCEvent
 
struct  TDCspillheader
 

Public Member Functions

 oncsSub_idfnalmwpc (subevtdata_ptr)
 
 ~oncsSub_idfnalmwpc ()
 
int iValue (const int n, const char *)
 
int iValue (const int trigger, const int tdc, const char *what)
 
int iValue (const int trigger, const int tdc, const int index)
 
int iValue (const int trigger, const int tdc, const int index, const char *what)
 
void dump (OSTREAM &os=COUT)
 
- Public Member Functions inherited from oncsSubevent_w4
 oncsSubevent_w4 (subevtdata_ptr)
 
virtual void gdump (const int how=EVT_HEXADECIMAL, OSTREAM &os=COUT) const
 
- Public Member Functions inherited from oncsSubevent
 oncsSubevent (subevtdata_ptr data)
 
virtual ~oncsSubevent ()
 
virtual int getLength () const
 
virtual int getIdentifier () const
 get the packet identifier
 
virtual int getHitFormat () const
 get the hit format; in case of unformatted get the encoding scheme.
 
virtual int getPadding () const
 get the number of padding units in the packet data.
 
virtual int getDataLength () const
 get what the name says...
 
virtual int getStructure () const
 get the structure of the packet data; unformatted, hitlist, etc.
 
virtual int getDebugLength () const
 get the length of the debug block
 
virtual int getErrorLength () const
 
virtual void identify (OSTREAM &=COUT) const
 
virtual int setIdentifier (const int newid)
 set a new packet identifier
 
int iValue (const int)
 iValue returns the value of a given channel as an int.
 
int iValue (const int, const char *)
 
int iValue (const int, const int)
 
int iValue (const int, const int, const char *)
 
int iValue (const int channel, const int iy, const int iz)
 
int iValue (const int channel, const int iy, const int iz, const char *what)
 
virtual float rValue (const int)
 
virtual float rValue (const int, const char *)
 
virtual float rValue (const int, const int)
 
virtual int getArraylength (const char *)
 
virtual int fillIntArray (int[], const int, int *, const char *what="")
 
virtual int fillFloatArray (float[], const int, int *, const char *what="")
 fillFloatArray fills an array of floats
 
virtual int * getIntArray (int *, const char *what="")
 
virtual float * getFloatArray (int *, const char *what="")
 getFloatArray creates and returns an array of floats
 
virtual int is_pointer_type () const
 find out what type (pointer- or data based) packet object we have
 
virtual int convert ()
 convert from pointer- to data based object, if it is already data-based, do nothing.
 
virtual int copyMe (int[], const int maxlength) const
 
int setInternalParameter (const int p1=0, const int p2=0, const char *what="")
 
- Public Member Functions inherited from Packet
virtual ~Packet ()
 the virtual destructor
 
virtual double dValue (const int channel)
 
virtual double dValue (const int channel, const char *what)
 
virtual double dValue (const int channel, const int iy)
 
virtual long long lValue (const int channel)
 
virtual long long lValue (const int channel, const char *what)
 
virtual long long lValue (const int channel, const int iy)
 
virtual long long lValue (const int channel, const int iy, const char *what)
 
virtual void * pValue (const int)
 
virtual void * pValue (const int, const char *)
 
virtual void * pValue (const int, const int)
 
virtual void identify (std::ostream &os=std::cout) const =0
 see below for comments
 
virtual void fullIdentify (std::ostream &os=std::cout) const
 write an indepth identification message to the supplied OSTREAM.
 
virtual void dump (std::ostream &os=std::cout)=0
 
virtual void gdump (const int how=EVT_HEXADECIMAL, std::ostream &os=std::cout) const =0
 
virtual int getCheckSumStatus () const
 

Protected Member Functions

int * decode (int *)
 

Protected Attributes

int _decoded
 
int tdcmask
 
int n_tdcs
 
int length
 
SpillInfo spillinfo
 
TDCspillheader tsh [MAXNROFTDCS]
 
std::vector< TDCEvent * > TDCEventVector
 

Detailed Description

Definition at line 9 of file oncsSub_idfnalmwpc.h.

View newest version in sPHENIX GitHub at line 9 of file oncsSub_idfnalmwpc.h

Constructor & Destructor Documentation

oncsSub_idfnalmwpc::oncsSub_idfnalmwpc ( subevtdata_ptr  data)

Definition at line 10 of file oncsSub_idfnalmwpc.cc.

View newest version in sPHENIX GitHub at line 10 of file oncsSub_idfnalmwpc.cc

References _decoded, length, MAXNROFTDCS, n_tdcs, spillinfo, and tsh.

oncsSub_idfnalmwpc::~oncsSub_idfnalmwpc ( )

Definition at line 426 of file oncsSub_idfnalmwpc.cc.

View newest version in sPHENIX GitHub at line 426 of file oncsSub_idfnalmwpc.cc

References i, k, n_tdcs, oncsSub_idfnalmwpc::TDCEvent::td, TDCEventVector, and oncsSub_idfnalmwpc::TDCData::TDCHitlist.

Member Function Documentation

int * oncsSub_idfnalmwpc::decode ( int *  nwout)
protectedvirtual

Reimplemented from oncsSubevent_w4.

Definition at line 25 of file oncsSub_idfnalmwpc.cc.

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

References _decoded, oncsSub_idfnalmwpc::TDCData::absolute_time, oncsSub_idfnalmwpc::TDCEvent::absolute_time, subevt_data::data, oncsSub_idfnalmwpc::SpillInfo::day, dlength, oncsSub_idfnalmwpc::TDCData::EventStatus, oncsSub_idfnalmwpc::TDCData::evt_timestamp, oncsSub_idfnalmwpc::TDCEvent::evt_timestamp, for(), oncsSubevent::getLength(), oncsSubevent::getPadding(), h, oncsSub_idfnalmwpc::TDCData::hits, oncsSub_idfnalmwpc::SpillInfo::hour, i, length, oncsSub_idfnalmwpc::TDCData::local_ts_lower, oncsSub_idfnalmwpc::TDCEvent::local_ts_lower, oncsSub_idfnalmwpc::TDCData::local_ts_upper, oncsSub_idfnalmwpc::TDCEvent::local_ts_upper, MAXNROFTDCS, oncsSub_idfnalmwpc::SpillInfo::minute, oncsSub_idfnalmwpc::SpillInfo::month, n_tdcs, Acts::Test::pos, physmon_simulation::s, oncsSub_idfnalmwpc::SpillInfo::second, oncsSub_idfnalmwpc::SpillInfo::Spill_Link_Status_Bits, oncsSub_idfnalmwpc::SpillInfo::spillcounter, spillinfo, oncsSub_idfnalmwpc::TDCspillheader::spillstatus, oncsSub_idfnalmwpc::TDCspillheader::spilltriggercount, oncsSub_idfnalmwpc::SpillInfo::spillwords, oncsSub_idfnalmwpc::TDCspillheader::spillwords, oncsSubevent::SubeventHdr, oncsSub_idfnalmwpc::TDCEvent::td, oncsSub_idfnalmwpc::TDCData::TDC, oncsSub_idfnalmwpc::TDCspillheader::TDC, oncsSub_idfnalmwpc::SpillInfo::TDC_Status_Bits, TDCEventVector, oncsSub_idfnalmwpc::TDCData::TDCHitlist, tdcmask, oncsSub_idfnalmwpc::TDC_hit::timestamp, oncsSub_idfnalmwpc::TDCEvent::trigger_nr, oncsSub_idfnalmwpc::SpillInfo::triggercount, oncsSub_idfnalmwpc::TDCData::triggertype, tsh, testSigmaEff::v, oncsSub_idfnalmwpc::TDC_hit::wire, oncsSub_idfnalmwpc::TDCData::words, xpos, and oncsSub_idfnalmwpc::SpillInfo::year.

Referenced by dump(), and iValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void oncsSub_idfnalmwpc::dump ( OSTREAM os = COUT)
virtual

Reimplemented from oncsSubevent_w4.

Definition at line 373 of file oncsSub_idfnalmwpc.cc.

View newest version in sPHENIX GitHub at line 373 of file oncsSub_idfnalmwpc.cc

References decode(), oncsSubevent::identify(), iValue(), j, k, and tc.

+ Here is the call graph for this function:

int oncsSub_idfnalmwpc::iValue ( const int  ,
const char *   
)
virtual

with the "what" parameter you can decide which aspect of the data you want to see (for devices which have more than one)

Implements Packet.

Definition at line 250 of file oncsSub_idfnalmwpc.cc.

View newest version in sPHENIX GitHub at line 250 of file oncsSub_idfnalmwpc.cc

References oncsSub_idfnalmwpc::SpillInfo::day, decode(), oncsSub_idfnalmwpc::SpillInfo::hour, oncsSub_idfnalmwpc::SpillInfo::minute, oncsSub_idfnalmwpc::SpillInfo::month, n_tdcs, oncsSub_idfnalmwpc::SpillInfo::second, oncsSub_idfnalmwpc::SpillInfo::Spill_Link_Status_Bits, oncsSub_idfnalmwpc::SpillInfo::spillcounter, spillinfo, oncsSub_idfnalmwpc::SpillInfo::TDC_Status_Bits, oncsSub_idfnalmwpc::SpillInfo::triggercount, and oncsSub_idfnalmwpc::SpillInfo::year.

Referenced by dump(), and iValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int oncsSub_idfnalmwpc::iValue ( const int  ,
const int  ,
const char *   
)
virtual

we have a few recent devices which have one more dimension (such as card, time sample, channel)

Implements Packet.

Definition at line 324 of file oncsSub_idfnalmwpc.cc.

View newest version in sPHENIX GitHub at line 324 of file oncsSub_idfnalmwpc.cc

References decode(), n_tdcs, and TDCEventVector.

+ Here is the call graph for this function:

int oncsSub_idfnalmwpc::iValue ( const int  ,
const int  ,
const int   
)
virtual

this supports devices organized as three-dimensional data (card vs channel vs time slice )

Implements Packet.

Definition at line 314 of file oncsSub_idfnalmwpc.cc.

View newest version in sPHENIX GitHub at line 314 of file oncsSub_idfnalmwpc.cc

References decode(), index, n_tdcs, and TDCEventVector.

+ Here is the call graph for this function:

int oncsSub_idfnalmwpc::iValue ( const int  ,
const int  ,
const int  ,
const char *   
)
virtual

this supports devices organized as three-dimensional data (card vs channel vs time slice, with a "what" selection )

Implements Packet.

Definition at line 349 of file oncsSub_idfnalmwpc.cc.

View newest version in sPHENIX GitHub at line 349 of file oncsSub_idfnalmwpc.cc

References decode(), index, iValue(), n_tdcs, and TDCEventVector.

+ Here is the call graph for this function:

Member Data Documentation

int oncsSub_idfnalmwpc::_decoded
protected

Definition at line 37 of file oncsSub_idfnalmwpc.h.

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

Referenced by decode(), and oncsSub_idfnalmwpc().

int oncsSub_idfnalmwpc::length
protected

Definition at line 97 of file oncsSub_idfnalmwpc.h.

View newest version in sPHENIX GitHub at line 97 of file oncsSub_idfnalmwpc.h

Referenced by decode(), and oncsSub_idfnalmwpc().

int oncsSub_idfnalmwpc::n_tdcs
protected

Definition at line 96 of file oncsSub_idfnalmwpc.h.

View newest version in sPHENIX GitHub at line 96 of file oncsSub_idfnalmwpc.h

Referenced by decode(), iValue(), oncsSub_idfnalmwpc(), and ~oncsSub_idfnalmwpc().

SpillInfo oncsSub_idfnalmwpc::spillinfo
protected

Definition at line 99 of file oncsSub_idfnalmwpc.h.

View newest version in sPHENIX GitHub at line 99 of file oncsSub_idfnalmwpc.h

Referenced by decode(), iValue(), and oncsSub_idfnalmwpc().

std::vector<TDCEvent *> oncsSub_idfnalmwpc::TDCEventVector
protected

Definition at line 104 of file oncsSub_idfnalmwpc.h.

View newest version in sPHENIX GitHub at line 104 of file oncsSub_idfnalmwpc.h

Referenced by decode(), iValue(), and ~oncsSub_idfnalmwpc().

int oncsSub_idfnalmwpc::tdcmask
protected

Definition at line 95 of file oncsSub_idfnalmwpc.h.

View newest version in sPHENIX GitHub at line 95 of file oncsSub_idfnalmwpc.h

Referenced by decode().

TDCspillheader oncsSub_idfnalmwpc::tsh[MAXNROFTDCS]
protected

Definition at line 101 of file oncsSub_idfnalmwpc.h.

View newest version in sPHENIX GitHub at line 101 of file oncsSub_idfnalmwpc.h

Referenced by decode(), and oncsSub_idfnalmwpc().


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