EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MvtxClusterizer Class Reference

Clusterizer for the MVTX. More...

#include <fun4all_coresoftware/blob/master/offline/packages/mvtx/MvtxClusterizer.h>

+ Inheritance diagram for MvtxClusterizer:
+ Collaboration diagram for MvtxClusterizer:

Public Types

typedef std::pair< unsigned
int, unsigned int > 
pixel
 

Public Member Functions

 MvtxClusterizer (const std::string &name="MvtxClusterizer")
 
 ~MvtxClusterizer () override
 
int Init (PHCompositeNode *) override
 module initialization
 
int InitRun (PHCompositeNode *topNode) override
 run initialization
 
int process_event (PHCompositeNode *topNode) override
 event processing
 
int End (PHCompositeNode *) override
 end of process
 
void SetZClustering (const bool make_z_clustering)
 option to turn off z-dimension clustering
 
bool GetZClustering () const
 
- 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.
 

Private Member Functions

bool are_adjacent (const std::pair< TrkrDefs::hitkey, TrkrHit * > &lhs, const std::pair< TrkrDefs::hitkey, TrkrHit * > &rhs)
 
void ClusterMvtx (PHCompositeNode *topNode)
 
void PrintClusters (PHCompositeNode *topNode)
 

Private Attributes

TrkrHitSetContainerm_hits
 
TrkrClusterContainerm_clusterlist
 
TrkrClusterHitAssocm_clusterhitassoc
 
bool m_makeZClustering
 

Additional Inherited Members

- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Clusterizer for the MVTX.

Definition at line 25 of file MvtxClusterizer.h.

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

Member Typedef Documentation

typedef std::pair<unsigned int, unsigned int> MvtxClusterizer::pixel

Definition at line 28 of file MvtxClusterizer.h.

View newest version in sPHENIX GitHub at line 28 of file MvtxClusterizer.h

Constructor & Destructor Documentation

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

Definition at line 88 of file MvtxClusterizer.cc.

View newest version in sPHENIX GitHub at line 88 of file MvtxClusterizer.cc

MvtxClusterizer::~MvtxClusterizer ( )
inlineoverride

Definition at line 31 of file MvtxClusterizer.h.

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

Member Function Documentation

bool MvtxClusterizer::are_adjacent ( const std::pair< TrkrDefs::hitkey, TrkrHit * > &  lhs,
const std::pair< TrkrDefs::hitkey, TrkrHit * > &  rhs 
)
private

Definition at line 61 of file MvtxClusterizer.cc.

View newest version in sPHENIX GitHub at line 61 of file MvtxClusterizer.cc

References MvtxDefs::getCol(), and MvtxDefs::getRow().

Referenced by ClusterMvtx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void MvtxClusterizer::ClusterMvtx ( PHCompositeNode topNode)
private

Take the rphi and z uncertainty of the cluster

All silicon surfaces have a 1-1 map to hitsetkey. So set subsurface key to 0

Definition at line 207 of file MvtxClusterizer.cc.

View newest version in sPHENIX GitHub at line 207 of file MvtxClusterizer.cc

References TrkrClusterHitAssoc::addAssoc(), TrkrClusterContainer::addCluster(), are_adjacent(), Acts::UnitConstants::e, exit(), G, MvtxDefs::genClusKey(), MvtxDefs::getCol(), TrkrHitSet::getHits(), TrkrHitSet::getHitSetKey(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4CylinderGeomContainer::GetLayerGeom(), MvtxDefs::getRow(), PHObject::identify(), TrkrHitSet::identify(), G4TTL::layer, G4BARRELHCAL::length, m_clusterhitassoc, m_clusterlist, m_hits, TrkrDefs::mvtxId, phibins, square(), and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MvtxClusterizer::End ( PHCompositeNode )
inlineoverridevirtual

end of process

Reimplemented from SubsysReco.

Definition at line 43 of file MvtxClusterizer.h.

View newest version in sPHENIX GitHub at line 43 of file MvtxClusterizer.h

bool MvtxClusterizer::GetZClustering ( ) const
inline

Definition at line 50 of file MvtxClusterizer.h.

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

References m_makeZClustering.

int MvtxClusterizer::Init ( PHCompositeNode )
inlineoverridevirtual

module initialization

Reimplemented from SubsysReco.

Definition at line 34 of file MvtxClusterizer.h.

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

int MvtxClusterizer::InitRun ( PHCompositeNode topNode)
overridevirtual

run initialization

Reimplemented from SubsysReco.

Definition at line 97 of file MvtxClusterizer.cc.

View newest version in sPHENIX GitHub at line 97 of file MvtxClusterizer.cc

References Fun4AllReturnCodes::ABORTRUN, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), m_makeZClustering, PHWHERE, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void MvtxClusterizer::PrintClusters ( PHCompositeNode topNode)
private

Definition at line 412 of file MvtxClusterizer.cc.

View newest version in sPHENIX GitHub at line 412 of file MvtxClusterizer.cc

References TrkrClusterContainer::identify(), TrkrClusterContainer::size(), and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MvtxClusterizer::process_event ( PHCompositeNode topNode)
overridevirtual

event processing

Reimplemented from SubsysReco.

Definition at line 173 of file MvtxClusterizer.cc.

View newest version in sPHENIX GitHub at line 173 of file MvtxClusterizer.cc

References Fun4AllReturnCodes::ABORTRUN, ClusterMvtx(), Fun4AllReturnCodes::EVENT_OK, m_clusterhitassoc, m_clusterlist, m_hits, PHWHERE, and PrintClusters().

+ Here is the call graph for this function:

void MvtxClusterizer::SetZClustering ( const bool  make_z_clustering)
inline

option to turn off z-dimension clustering

Definition at line 46 of file MvtxClusterizer.h.

View newest version in sPHENIX GitHub at line 46 of file MvtxClusterizer.h

References m_makeZClustering.

Member Data Documentation

TrkrClusterHitAssoc* MvtxClusterizer::m_clusterhitassoc
private

Definition at line 66 of file MvtxClusterizer.h.

View newest version in sPHENIX GitHub at line 66 of file MvtxClusterizer.h

Referenced by ClusterMvtx(), and process_event().

TrkrClusterContainer* MvtxClusterizer::m_clusterlist
private

Definition at line 64 of file MvtxClusterizer.h.

View newest version in sPHENIX GitHub at line 64 of file MvtxClusterizer.h

Referenced by ClusterMvtx(), and process_event().

TrkrHitSetContainer* MvtxClusterizer::m_hits
private

Definition at line 63 of file MvtxClusterizer.h.

View newest version in sPHENIX GitHub at line 63 of file MvtxClusterizer.h

Referenced by ClusterMvtx(), and process_event().

bool MvtxClusterizer::m_makeZClustering
private

Definition at line 71 of file MvtxClusterizer.h.

View newest version in sPHENIX GitHub at line 71 of file MvtxClusterizer.h

Referenced by GetZClustering(), InitRun(), and SetZClustering().


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