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

#include <coresoftware/blob/master/offline/packages/trackreco/PHSiliconSeedMerger.h>

+ Inheritance diagram for PHSiliconSeedMerger:
+ Collaboration diagram for PHSiliconSeedMerger:

Public Member Functions

 PHSiliconSeedMerger (const std::string &name="PHSiliconSeedMerger")
 
virtual ~PHSiliconSeedMerger ()
 
int Init (PHCompositeNode *topNode) override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int ResetEvent (PHCompositeNode *topNode) override
 Clean up after each event.
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
void trackMapName (const std::string &name)
 
void clusterOverlap (const int nclusters)
 
void searchIntt ()
 
- 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.
 
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

int getNodes (PHCompositeNode *topNode)
 

Private Attributes

TrackSeedContainerm_siliconTracks = nullptr
 
std::string m_trackMapName = "SiliconTrackSeedContainer"
 
int m_clusterOverlap = 1
 
bool m_mvtxOnly = true
 

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 15 of file PHSiliconSeedMerger.h.

View newest version in sPHENIX GitHub at line 15 of file PHSiliconSeedMerger.h

Constructor & Destructor Documentation

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

Definition at line 20 of file PHSiliconSeedMerger.cc.

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

PHSiliconSeedMerger::~PHSiliconSeedMerger ( )
virtual

Definition at line 25 of file PHSiliconSeedMerger.cc.

View newest version in sPHENIX GitHub at line 25 of file PHSiliconSeedMerger.cc

Member Function Documentation

void PHSiliconSeedMerger::clusterOverlap ( const int  nclusters)
inline

Definition at line 30 of file PHSiliconSeedMerger.h.

View newest version in sPHENIX GitHub at line 30 of file PHSiliconSeedMerger.h

References m_clusterOverlap.

Referenced by Tracking_Reco_TrackSeed_pass1().

+ Here is the caller graph for this function:

int PHSiliconSeedMerger::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 196 of file PHSiliconSeedMerger.cc.

View newest version in sPHENIX GitHub at line 196 of file PHSiliconSeedMerger.cc

References Fun4AllReturnCodes::EVENT_OK.

int PHSiliconSeedMerger::getNodes ( PHCompositeNode topNode)
private

Definition at line 202 of file PHSiliconSeedMerger.cc.

View newest version in sPHENIX GitHub at line 202 of file PHSiliconSeedMerger.cc

References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, m_siliconTracks, m_trackMapName, and PHWHERE.

Referenced by InitRun().

+ Here is the caller graph for this function:

int PHSiliconSeedMerger::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 30 of file PHSiliconSeedMerger.cc.

View newest version in sPHENIX GitHub at line 30 of file PHSiliconSeedMerger.cc

References Fun4AllReturnCodes::EVENT_OK.

int PHSiliconSeedMerger::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 37 of file PHSiliconSeedMerger.cc.

View newest version in sPHENIX GitHub at line 37 of file PHSiliconSeedMerger.cc

References getNodes().

+ Here is the call graph for this function:

int PHSiliconSeedMerger::process_event ( PHCompositeNode )
overridevirtual

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

We can speed up the code by only iterating over the track seeds that are further in the map container from the current track, since the comparison of e.g. track 1 with track 2 doesn't need to be repeated with track 2 to track 1.

If we have two clusters in common in the triplet, it is likely from the same track

Reimplemented from SubsysReco.

Definition at line 44 of file PHSiliconSeedMerger.cc.

View newest version in sPHENIX GitHub at line 44 of file PHSiliconSeedMerger.cc

References TrackSeed::begin_cluster_keys(), TrackSeed::end_cluster_keys(), TrackSeedContainer::erase(), Fun4AllReturnCodes::EVENT_OK, TrackSeedContainer::get(), TrkrDefs::getTrkrId(), TrackSeed::identify(), TrkrDefs::inttId, m_clusterOverlap, m_mvtxOnly, m_siliconTracks, seed, TrackSeedContainer::size(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int PHSiliconSeedMerger::ResetEvent ( PHCompositeNode )
overridevirtual

Clean up after each event.

Reimplemented from SubsysReco.

Definition at line 187 of file PHSiliconSeedMerger.cc.

View newest version in sPHENIX GitHub at line 187 of file PHSiliconSeedMerger.cc

References Fun4AllReturnCodes::EVENT_OK.

void PHSiliconSeedMerger::searchIntt ( )
inline

Definition at line 31 of file PHSiliconSeedMerger.h.

View newest version in sPHENIX GitHub at line 31 of file PHSiliconSeedMerger.h

References m_mvtxOnly.

Referenced by Tracking_Reco_TrackSeed_pass1().

+ Here is the caller graph for this function:

void PHSiliconSeedMerger::trackMapName ( const std::string &  name)
inline

Definition at line 29 of file PHSiliconSeedMerger.h.

View newest version in sPHENIX GitHub at line 29 of file PHSiliconSeedMerger.h

References m_trackMapName, and perf_headwind::name.

Referenced by Tracking_Reco_TrackSeed_pass1().

+ Here is the caller graph for this function:

Member Data Documentation

int PHSiliconSeedMerger::m_clusterOverlap = 1
private

Definition at line 39 of file PHSiliconSeedMerger.h.

View newest version in sPHENIX GitHub at line 39 of file PHSiliconSeedMerger.h

Referenced by clusterOverlap(), and process_event().

bool PHSiliconSeedMerger::m_mvtxOnly = true
private

Definition at line 40 of file PHSiliconSeedMerger.h.

View newest version in sPHENIX GitHub at line 40 of file PHSiliconSeedMerger.h

Referenced by process_event(), and searchIntt().

TrackSeedContainer* PHSiliconSeedMerger::m_siliconTracks = nullptr
private

Definition at line 37 of file PHSiliconSeedMerger.h.

View newest version in sPHENIX GitHub at line 37 of file PHSiliconSeedMerger.h

Referenced by getNodes(), and process_event().

std::string PHSiliconSeedMerger::m_trackMapName = "SiliconTrackSeedContainer"
private

Definition at line 38 of file PHSiliconSeedMerger.h.

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

Referenced by getNodes(), and trackMapName().


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