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

#include <coresoftware/blob/master/offline/packages/tpc/TpcCombinedRawDataUnpacker.h>

+ Inheritance diagram for TpcCombinedRawDataUnpacker:
+ Collaboration diagram for TpcCombinedRawDataUnpacker:

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
 
CDBTTreem_cdbttree = nullptr
 
CDBInterfacem_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")
 

Detailed Description

Definition at line 25 of file TpcCombinedRawDataUnpacker.h.

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

Constructor & Destructor Documentation

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

Member Function Documentation

int TpcCombinedRawDataUnpacker::End ( PHCompositeNode )
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().

+ Here is the call graph for this function:

int TpcCombinedRawDataUnpacker::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 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.

+ Here is the call graph for this function:

int TpcCombinedRawDataUnpacker::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 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().

+ Here is the call graph for this function:

void TpcCombinedRawDataUnpacker::writeTree ( )
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.

Member Data Documentation

int TpcCombinedRawDataUnpacker::_ievent = 0
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().

int TpcCombinedRawDataUnpacker::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}
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().

int TpcCombinedRawDataUnpacker::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}
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().

CDBInterface* TpcCombinedRawDataUnpacker::m_cdb = nullptr
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().

CDBTTree* TpcCombinedRawDataUnpacker::m_cdbttree = nullptr
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().

TFile* TpcCombinedRawDataUnpacker::m_file = nullptr
private

Definition at line 48 of file TpcCombinedRawDataUnpacker.h.

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

Referenced by End(), and InitRun().

TNtuple* TpcCombinedRawDataUnpacker::m_ntup = nullptr
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().

std::string TpcCombinedRawDataUnpacker::m_TpcRawNodeName = "TPCRAWHIT"
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().

bool TpcCombinedRawDataUnpacker::m_writeTree = false
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().

int TpcCombinedRawDataUnpacker::mc_sectors[12] = {5, 4, 3, 2, 1, 0, 11, 10, 9, 8, 7, 6}
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().

std::string TpcCombinedRawDataUnpacker::outfile_name
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().


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