Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/intt/InttRawDataConverter.h>
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") | |
Definition at line 17 of file InttRawDataConverter.h.
View newest version in sPHENIX GitHub at line 17 of file InttRawDataConverter.h
|
private |
Definition at line 42 of file InttRawDataConverter.h.
View newest version in sPHENIX GitHub at line 42 of file InttRawDataConverter.h
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
|
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.
|
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.
|
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.
|
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().
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
int InttRawDataConverter::WriteOutputFile | ( | ) |
Definition at line 48 of file InttRawDataConverter.cc.
View newest version in sPHENIX GitHub at line 48 of file InttRawDataConverter.cc
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().