Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/tpc/TpcCombinedRawDataUnpacker.h>
Public Member Functions | |
TpcCombinedRawDataUnpacker (std::string const &name="TpcCombinedRawDataUnpacker", std::string const &outF="TpcCombinedRawDataUnpackerOutput.root") | |
int | Init (PHCompositeNode *topNode) override |
int | InitRun (PHCompositeNode *) override |
int | process_event (PHCompositeNode *) override |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
void | writeTree () |
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. | |
Protected Attributes | |
std::string | outfile_name |
CDBTTree * | m_cdbttree = nullptr |
CDBInterface * | m_cdb = nullptr |
int | _ievent = 0 |
Private Attributes | |
std::string | m_TpcRawNodeName = "TPCRAWHIT" |
TNtuple * | m_ntup = nullptr |
TFile * | m_file = nullptr |
bool | m_writeTree = false |
int | mc_sectors [12] = {5, 4, 3, 2, 1, 0, 11, 10, 9, 8, 7, 6} |
int | FEE_map [26] = {4, 5, 0, 2, 1, 11, 9, 10, 8, 7, 6, 0, 1, 3, 7, 6, 5, 4, 3, 2, 0, 2, 1, 3, 5, 4} |
int | FEE_R [26] = {2, 2, 1, 1, 1, 3, 3, 3, 3, 3, 3, 2, 2, 1, 2, 2, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3} |
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 25 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 25 of file TpcCombinedRawDataUnpacker.h
TpcCombinedRawDataUnpacker::TpcCombinedRawDataUnpacker | ( | std::string const & | name = "TpcCombinedRawDataUnpacker" , |
std::string const & | outF = "TpcCombinedRawDataUnpackerOutput.root" |
||
) |
Definition at line 47 of file TpcCombinedRawDataUnpacker.cc.
View newest version in sPHENIX GitHub at line 47 of file TpcCombinedRawDataUnpacker.cc
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 315 of file TpcCombinedRawDataUnpacker.cc.
View newest version in sPHENIX GitHub at line 315 of file TpcCombinedRawDataUnpacker.cc
References Fun4AllReturnCodes::EVENT_OK, m_file, m_ntup, m_writeTree, and Fun4AllBase::Verbosity().
|
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 54 of file TpcCombinedRawDataUnpacker.cc.
View newest version in sPHENIX GitHub at line 54 of file TpcCombinedRawDataUnpacker.cc
References Fun4AllReturnCodes::EVENT_OK, CDBInterface::getUrl(), CDBInterface::instance(), CDBTTree::LoadCalibrations(), m_cdb, and m_cdbttree.
|
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 76 of file TpcCombinedRawDataUnpacker.cc.
View newest version in sPHENIX GitHub at line 76 of file TpcCombinedRawDataUnpacker.cc
References PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), m_file, m_ntup, m_writeTree, outfile_name, and Fun4AllBase::Verbosity().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 138 of file TpcCombinedRawDataUnpacker.cc.
View newest version in sPHENIX GitHub at line 138 of file TpcCombinedRawDataUnpacker.cc
References _ievent, Fun4AllReturnCodes::ABORTRUN, channel(), Fun4AllReturnCodes::DISCARDEVENT, Fun4AllReturnCodes::EVENT_OK, FEE_map, FEE_R, PHG4TpcCylinderGeom::find_phibin(), TrkrHitSetContainer::findOrAddHitSet(), TpcDefs::genHitKey(), TpcDefs::genHitSetKey(), TpcRawHit::get_adc(), TpcRawHit::get_channel(), TpcRawHit::get_fee(), TpcRawHit::get_gtm_bco(), TpcRawHitContainerv1::get_hit(), TpcRawHitContainerv1::get_nhits(), TpcRawHit::get_packetid(), TpcRawHit::get_sampaaddress(), TpcRawHit::get_sampachannel(), TpcRawHit::get_samples(), CDBTTree::GetDoubleValue(), CDBTTree::GetIntValue(), PHG4TpcCylinderGeomContainer::GetLayerCellGeom(), i, layer, m_cdbttree, m_ntup, m_TpcRawNodeName, m_writeTree, mc_sectors, n, nbin, ActsTests::PropagationDatasets::phi, PHWHERE, physmon_simulation::s, TrkrHit::setAdc(), t, and Fun4AllBase::Verbosity().
|
inline |
Definition at line 34 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 34 of file TpcCombinedRawDataUnpacker.h
References m_writeTree.
|
protected |
Definition at line 42 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 42 of file TpcCombinedRawDataUnpacker.h
Referenced by process_event().
|
private |
Definition at line 52 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 52 of file TpcCombinedRawDataUnpacker.h
Referenced by process_event().
|
private |
Definition at line 53 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 53 of file TpcCombinedRawDataUnpacker.h
Referenced by process_event().
|
protected |
Definition at line 40 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 40 of file TpcCombinedRawDataUnpacker.h
Referenced by Init().
|
protected |
Definition at line 39 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 39 of file TpcCombinedRawDataUnpacker.h
Referenced by Init(), and process_event().
|
private |
Definition at line 48 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 48 of file TpcCombinedRawDataUnpacker.h
|
private |
Definition at line 47 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 47 of file TpcCombinedRawDataUnpacker.h
Referenced by End(), InitRun(), and process_event().
|
private |
Definition at line 45 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 45 of file TpcCombinedRawDataUnpacker.h
Referenced by process_event().
|
private |
Definition at line 49 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 49 of file TpcCombinedRawDataUnpacker.h
Referenced by End(), InitRun(), process_event(), and writeTree().
|
private |
Definition at line 51 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 51 of file TpcCombinedRawDataUnpacker.h
Referenced by process_event().
|
protected |
Definition at line 37 of file TpcCombinedRawDataUnpacker.h.
View newest version in sPHENIX GitHub at line 37 of file TpcCombinedRawDataUnpacker.h
Referenced by InitRun().