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

#include <coresoftware/blob/master/offline/packages/TrackingDiagnostics/TrackContainerCombiner.h>

+ Inheritance diagram for TrackContainerCombiner:
+ Collaboration diagram for TrackContainerCombiner:

Public Member Functions

 TrackContainerCombiner (const std::string &name="TrackContainerCombiner")
 
 ~TrackContainerCombiner () override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *) override
 
int End (PHCompositeNode *) override
 Called at the end of all processing.
 
void newContainerName (const std::string &name)
 
void oldContainerName (const std::string &name)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int Init (PHCompositeNode *)
 
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 Member Functions

void mergeSeeds ()
 
int getNodes (PHCompositeNode *topNode)
 

Private Attributes

std::string m_newContainerName = "SiliconTrackSeedContainer"
 
std::string m_oldContainerName = "SiliconTrackSeedContainerIt1"
 
bool m_seedContainer = true
 
TrackSeedContainerm_newSeedContainer = nullptr
 
TrackSeedContainerm_oldSeedContainer = nullptr
 

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 14 of file TrackContainerCombiner.h.

View newest version in sPHENIX GitHub at line 14 of file TrackContainerCombiner.h

Constructor & Destructor Documentation

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

Definition at line 20 of file TrackContainerCombiner.cc.

View newest version in sPHENIX GitHub at line 20 of file TrackContainerCombiner.cc

TrackContainerCombiner::~TrackContainerCombiner ( )
override

Definition at line 26 of file TrackContainerCombiner.cc.

View newest version in sPHENIX GitHub at line 26 of file TrackContainerCombiner.cc

Member Function Documentation

int TrackContainerCombiner::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 71 of file TrackContainerCombiner.cc.

View newest version in sPHENIX GitHub at line 71 of file TrackContainerCombiner.cc

References Fun4AllReturnCodes::EVENT_OK.

int TrackContainerCombiner::getNodes ( PHCompositeNode topNode)
private

Definition at line 76 of file TrackContainerCombiner.cc.

View newest version in sPHENIX GitHub at line 76 of file TrackContainerCombiner.cc

References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, m_newContainerName, m_newSeedContainer, m_oldContainerName, m_oldSeedContainer, and PHWHERE.

Referenced by InitRun().

+ Here is the caller graph for this function:

int TrackContainerCombiner::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 32 of file TrackContainerCombiner.cc.

View newest version in sPHENIX GitHub at line 32 of file TrackContainerCombiner.cc

References getNodes().

+ Here is the call graph for this function:

void TrackContainerCombiner::mergeSeeds ( )
private

Definition at line 59 of file TrackContainerCombiner.cc.

View newest version in sPHENIX GitHub at line 59 of file TrackContainerCombiner.cc

References TrackSeedContainer::insert(), m_newSeedContainer, m_oldSeedContainer, and seed.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TrackContainerCombiner::newContainerName ( const std::string &  name)
inline

Definition at line 26 of file TrackContainerCombiner.h.

View newest version in sPHENIX GitHub at line 26 of file TrackContainerCombiner.h

References m_newContainerName, and perf_headwind::name.

Referenced by Tracking_Reco_TrackSeed_pass1().

+ Here is the caller graph for this function:

void TrackContainerCombiner::oldContainerName ( const std::string &  name)
inline

Definition at line 27 of file TrackContainerCombiner.h.

View newest version in sPHENIX GitHub at line 27 of file TrackContainerCombiner.h

References m_oldContainerName, and perf_headwind::name.

Referenced by Tracking_Reco_TrackSeed_pass1().

+ Here is the caller graph for this function:

int TrackContainerCombiner::process_event ( PHCompositeNode )
overridevirtual

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

Reimplemented from SubsysReco.

Definition at line 39 of file TrackContainerCombiner.cc.

View newest version in sPHENIX GitHub at line 39 of file TrackContainerCombiner.cc

References Fun4AllReturnCodes::EVENT_OK, m_newSeedContainer, m_seedContainer, mergeSeeds(), TrackSeedContainer::size(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

Member Data Documentation

std::string TrackContainerCombiner::m_newContainerName = "SiliconTrackSeedContainer"
private

Definition at line 32 of file TrackContainerCombiner.h.

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

Referenced by getNodes(), and newContainerName().

TrackSeedContainer* TrackContainerCombiner::m_newSeedContainer = nullptr
private

Definition at line 35 of file TrackContainerCombiner.h.

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

Referenced by getNodes(), mergeSeeds(), and process_event().

std::string TrackContainerCombiner::m_oldContainerName = "SiliconTrackSeedContainerIt1"
private

Definition at line 33 of file TrackContainerCombiner.h.

View newest version in sPHENIX GitHub at line 33 of file TrackContainerCombiner.h

Referenced by getNodes(), and oldContainerName().

TrackSeedContainer* TrackContainerCombiner::m_oldSeedContainer = nullptr
private

Definition at line 36 of file TrackContainerCombiner.h.

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

Referenced by getNodes(), and mergeSeeds().

bool TrackContainerCombiner::m_seedContainer = true
private

Definition at line 34 of file TrackContainerCombiner.h.

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

Referenced by process_event().


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