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

#include <prototype/blob/master/offline/packages/MvtxPrototype1/MvtxUnpackPRDF.h>

+ Inheritance diagram for MvtxUnpackPRDF:
+ Collaboration diagram for MvtxUnpackPRDF:

Public Member Functions

 MvtxUnpackPRDF ()
 
int Init (PHCompositeNode *topNode)
 
int InitRun (PHCompositeNode *topNode)
 
int process_event (PHCompositeNode *topNode)
 
int End (PHCompositeNode *topNode)
 Called at the end of all processing.
 
void Verbosity (int v)
 Sets the verbosity of this module (0 by default=quiet).
 
void CreateNodeTree (PHCompositeNode *topNode)
 
void MakeHits ()
 
- 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 (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual int Verbosity () const
 Gets the verbosity of this module.
 

Private Attributes

PHCompositeNodedstNode
 
Event_event
 
Packet_hbd_fpgashort_packet
 
TrkrHitSetContainer_hitsetcon
 
int _nevents
 
int _verbosity
 
bool _first
 
int _nevent_per_chip [NCHIP]
 
int _npixel_per_chip [NCHIP]
 

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 20 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 20 of file MvtxUnpackPRDF.h

Constructor & Destructor Documentation

MvtxUnpackPRDF::MvtxUnpackPRDF ( )

Definition at line 29 of file MvtxUnpackPRDF.C.

View newest version in sPHENIX GitHub at line 29 of file MvtxUnpackPRDF.C

References _nevent_per_chip, _npixel_per_chip, and NCHIP.

Member Function Documentation

void MvtxUnpackPRDF::CreateNodeTree ( PHCompositeNode topNode)

Definition at line 121 of file MvtxUnpackPRDF.C.

View newest version in sPHENIX GitHub at line 121 of file MvtxUnpackPRDF.C

References PHCompositeNode::addNode(), dstNode, and PHNodeIterator::findFirst().

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MvtxUnpackPRDF::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 303 of file MvtxUnpackPRDF.C.

View newest version in sPHENIX GitHub at line 303 of file MvtxUnpackPRDF.C

References _nevent_per_chip, _npixel_per_chip, _verbosity, Fun4AllReturnCodes::EVENT_OK, and NCHIP.

int MvtxUnpackPRDF::Init ( PHCompositeNode )
virtual

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 46 of file MvtxUnpackPRDF.C.

View newest version in sPHENIX GitHub at line 46 of file MvtxUnpackPRDF.C

References Fun4AllReturnCodes::EVENT_OK.

int MvtxUnpackPRDF::InitRun ( PHCompositeNode )
virtual

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 55 of file MvtxUnpackPRDF.C.

View newest version in sPHENIX GitHub at line 55 of file MvtxUnpackPRDF.C

References CreateNodeTree(), and Fun4AllReturnCodes::EVENT_OK.

+ Here is the call graph for this function:

void MvtxUnpackPRDF::MakeHits ( )

Definition at line 166 of file MvtxUnpackPRDF.C.

View newest version in sPHENIX GitHub at line 166 of file MvtxUnpackPRDF.C

References _event, _hitsetcon, _nevent_per_chip, _nevents, _npixel_per_chip, _verbosity, col, Event::getPacket(), PHObject::identify(), Packet::iValue(), NCHIP, NCOL_PER_REGION, NREGION, NROW, and merge_hashes::p.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MvtxUnpackPRDF::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

Definition at line 66 of file MvtxUnpackPRDF.C.

View newest version in sPHENIX GitHub at line 66 of file MvtxUnpackPRDF.C

References _event, _hitsetcon, _nevents, _verbosity, Fun4AllReturnCodes::EVENT_OK, Event::getEvtType(), PHObject::identify(), MakeHits(), and NCHIP.

+ Here is the call graph for this function:

void MvtxUnpackPRDF::Verbosity ( int  ival)
inlinevirtual

Sets the verbosity of this module (0 by default=quiet).

Reimplemented from Fun4AllBase.

Definition at line 38 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 38 of file MvtxUnpackPRDF.h

References _verbosity, and testSigmaEff::v.

Referenced by Fun4All_TestBeam().

+ Here is the caller graph for this function:

Member Data Documentation

Event* MvtxUnpackPRDF::_event
private

Definition at line 49 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 49 of file MvtxUnpackPRDF.h

Referenced by MakeHits(), and process_event().

bool MvtxUnpackPRDF::_first
private

Definition at line 55 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 55 of file MvtxUnpackPRDF.h

TrkrHitSetContainer* MvtxUnpackPRDF::_hitsetcon
private

Definition at line 51 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 51 of file MvtxUnpackPRDF.h

Referenced by MakeHits(), and process_event().

int MvtxUnpackPRDF::_nevent_per_chip[NCHIP]
private

Definition at line 57 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 57 of file MvtxUnpackPRDF.h

Referenced by End(), MakeHits(), and MvtxUnpackPRDF().

int MvtxUnpackPRDF::_nevents
private

Definition at line 53 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 53 of file MvtxUnpackPRDF.h

Referenced by MakeHits(), and process_event().

int MvtxUnpackPRDF::_npixel_per_chip[NCHIP]
private

Definition at line 58 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 58 of file MvtxUnpackPRDF.h

Referenced by End(), MakeHits(), and MvtxUnpackPRDF().

Packet_hbd_fpgashort* MvtxUnpackPRDF::_packet
private

Definition at line 50 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 50 of file MvtxUnpackPRDF.h

int MvtxUnpackPRDF::_verbosity
private

Definition at line 54 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 54 of file MvtxUnpackPRDF.h

Referenced by End(), MakeHits(), process_event(), and Verbosity().

PHCompositeNode* MvtxUnpackPRDF::dstNode
private

Definition at line 47 of file MvtxUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 47 of file MvtxUnpackPRDF.h

Referenced by CreateNodeTree().


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