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

#include <coresoftware/blob/master/offline/packages/intt/InttRawDataConverter.h>

+ Inheritance diagram for InttRawDataConverter:
+ Collaboration diagram for InttRawDataConverter:

Public Member Functions

 InttRawDataConverter (std::string const &name="InttRawDataConverter")
 
int SetOutputFile (std::string const &)
 
int WriteOutputFile ()
 
int Init (PHCompositeNode *) override
 
int InitRun (PHCompositeNode *) override
 
int process_event (PHCompositeNode *) override
 
int End (PHCompositeNode *) override
 Called at the end of all processing.
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
virtual int ResetEvent (PHCompositeNode *)
 Clean up after each event.
 
void Print (const std::string &="ALL") const override
 
- 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 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.
 

Private Types

typedef std::map< std::string,
Int_t * > 
Branches_t
 

Private Attributes

TFile * file = nullptr
 
TTree * tree = nullptr
 
Int_t n_evt = -1
 
Int_t num_hits = 0
 
Long64_t gtm_bco = 0
 
Int_t flx_svr = 0
 
InttNameSpace::RawData_s raw
 
InttNameSpace::Online_s onl
 
Branches_t branches
 

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 SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 17 of file InttRawDataConverter.h.

View newest version in sPHENIX GitHub at line 17 of file InttRawDataConverter.h

Member Typedef Documentation

typedef std::map<std::string, Int_t*> InttRawDataConverter::Branches_t
private

Definition at line 42 of file InttRawDataConverter.h.

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

Constructor & Destructor Documentation

InttRawDataConverter::InttRawDataConverter ( std::string const &  name = "InttRawDataConverter")

Definition at line 19 of file InttRawDataConverter.cc.

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

Member Function Documentation

int InttRawDataConverter::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 191 of file InttRawDataConverter.cc.

View newest version in sPHENIX GitHub at line 191 of file InttRawDataConverter.cc

References Fun4AllReturnCodes::EVENT_OK.

int InttRawDataConverter::Init ( PHCompositeNode )
overridevirtual

Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).

Reimplemented from SubsysReco.

Definition at line 77 of file InttRawDataConverter.cc.

View newest version in sPHENIX GitHub at line 77 of file InttRawDataConverter.cc

References branches, file, flx_svr, gtm_bco, n_evt, num_hits, and tree.

int InttRawDataConverter::InitRun ( PHCompositeNode )
overridevirtual

Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.

Reimplemented from SubsysReco.

Definition at line 117 of file InttRawDataConverter.cc.

View newest version in sPHENIX GitHub at line 117 of file InttRawDataConverter.cc

References Fun4AllReturnCodes::EVENT_OK, and n_evt.

int InttRawDataConverter::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 124 of file InttRawDataConverter.cc.

View newest version in sPHENIX GitHub at line 124 of file InttRawDataConverter.cc

References InttNameSpace::Online_s::arm, branches, InttNameSpace::Online_s::chn, InttNameSpace::Online_s::chp, Fun4AllReturnCodes::DISCARDEVENT, Fun4AllReturnCodes::EVENT_OK, InttNameSpace::RawData_s::felix_channel, flx_svr, Event::getPacket(), gtm_bco, Packet::iValue(), InttNameSpace::Online_s::ldr, Packet::lValue(), InttNameSpace::Online_s::lyr, n, n_evt, num_hits, onl, InttNameSpace::Packet_Id, raw, InttNameSpace::RawFromPacket(), InttNameSpace::ToOnline(), tree, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int InttRawDataConverter::SetOutputFile ( std::string const &  filename)

Definition at line 25 of file InttRawDataConverter.cc.

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

References file, and tree.

int InttRawDataConverter::WriteOutputFile ( )

Definition at line 48 of file InttRawDataConverter.cc.

View newest version in sPHENIX GitHub at line 48 of file InttRawDataConverter.cc

References file, and tree.

Member Data Documentation

Branches_t InttRawDataConverter::branches
private

Definition at line 43 of file InttRawDataConverter.h.

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

Referenced by Init(), and process_event().

TFile* InttRawDataConverter::file = nullptr
private

Definition at line 31 of file InttRawDataConverter.h.

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

Referenced by conftest.RootHashAssertionError::__init__(), Init(), SetOutputFile(), and WriteOutputFile().

Int_t InttRawDataConverter::flx_svr = 0
private

Definition at line 37 of file InttRawDataConverter.h.

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

Referenced by Init(), and process_event().

Long64_t InttRawDataConverter::gtm_bco = 0
private

Definition at line 36 of file InttRawDataConverter.h.

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

Referenced by Init(), and process_event().

Int_t InttRawDataConverter::n_evt = -1
private

Definition at line 34 of file InttRawDataConverter.h.

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

Referenced by Init(), InitRun(), and process_event().

Int_t InttRawDataConverter::num_hits = 0
private

Definition at line 35 of file InttRawDataConverter.h.

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

Referenced by Init(), and process_event().

InttNameSpace::Online_s InttRawDataConverter::onl
private

Definition at line 40 of file InttRawDataConverter.h.

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

Referenced by process_event().

InttNameSpace::RawData_s InttRawDataConverter::raw
private

Definition at line 39 of file InttRawDataConverter.h.

View newest version in sPHENIX GitHub at line 39 of file InttRawDataConverter.h

Referenced by process_event().

TTree* InttRawDataConverter::tree = nullptr
private

Definition at line 32 of file InttRawDataConverter.h.

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

Referenced by Init(), process_event(), SetOutputFile(), and WriteOutputFile().


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