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

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

+ Inheritance diagram for PHMicromegasTpcTrackMatching:
+ Collaboration diagram for PHMicromegasTpcTrackMatching:

Public Member Functions

 PHMicromegasTpcTrackMatching (const std::string &name="PHMicromegasTpcTrackMatching")
 
 ~PHMicromegasTpcTrackMatching () override=default
 
void set_rphi_search_window_lyr1 (const double win)
 
void set_z_search_window_lyr1 (const double win)
 
void set_rphi_search_window_lyr2 (const double win)
 
void set_z_search_window_lyr2 (const double win)
 
void set_min_tpc_layer (const unsigned int layer)
 
void set_test_windows_printout (const bool test)
 
void set_sc_calib_mode (const bool mode)
 
void set_collision_rate (const double rate)
 
void SetIteration (int iter)
 
void set_track_map_name (const std::string &map_name)
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *) override
 
int End (PHCompositeNode *) override
 Called at the end of all processing.
 
- 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

int GetNodes (PHCompositeNode *topNode)
 load nodes relevant for the analysis
 
void copyMicromegasClustersToCorrectedMap ()
 

Private Attributes

bool _use_truth_clusters = false
 
TrkrClusterContainer_cluster_map {nullptr}
 
TrkrClusterContainer_corrected_cluster_map {nullptr}
 
SvtxTrackMap_track_map {nullptr}
 
AssocInfoContainer_assoc_container {nullptr}
 
std::array< double, _n_mm_layers_rphi_search_win = {0.25, 13.0}
 default rphi search window for each layer
 
std::array< double, _n_mm_layers_z_search_win = {26.0, 0.25}
 default z search window for each layer
 
unsigned int _min_tpc_layer = 38
 
unsigned int _min_mm_layer = 55
 first micromegas layer
 
bool _sc_calib_mode = false
 true for initial pass with distorted tracks
 
double _collision_rate = 50e3
 input rate for phi correction
 
double _reference_collision_rate = 50e3
 reference rate for phi correction
 
int _event = -1
 internal event number
 
PHG4CylinderGeomContainer_geomContainerMicromegas = nullptr
 micomegas geometry
 
TrkrClusterIterationMapv1_iteration_map = nullptr
 
int _n_iteration = 0
 
std::string _track_map_name = "SvtxTrackMap"
 
ActsTrackingGeometry_tGeometry = nullptr
 
ActsSurfaceMaps_surfmaps = nullptr
 
TF1 * fdrphi {nullptr}
 coarse SC correction function
 
double _par0 = -0.36619
 
double _par1 = 0.00375714
 
bool _test_windows = false
 true to printout actual residuals for testing
 

Static Private Attributes

static constexpr unsigned int _n_mm_layers = 2
 number of layers in the micromegas
 

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 = INT_MAX - 10
}
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 26 of file PHMicromegasTpcTrackMatching.h.

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

Constructor & Destructor Documentation

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

Definition at line 269 of file PHMicromegasTpcTrackMatching.cc.

View newest version in sPHENIX GitHub at line 269 of file PHMicromegasTpcTrackMatching.cc

PHMicromegasTpcTrackMatching::~PHMicromegasTpcTrackMatching ( )
overridedefault

Member Function Documentation

void PHMicromegasTpcTrackMatching::copyMicromegasClustersToCorrectedMap ( )
private

Definition at line 651 of file PHMicromegasTpcTrackMatching.cc.

View newest version in sPHENIX GitHub at line 651 of file PHMicromegasTpcTrackMatching.cc

References _cluster_map, _corrected_cluster_map, _track_map, SvtxTrackMap::begin(), SvtxTrack::begin_cluster_keys(), TrkrCluster::CopyFrom(), SvtxTrackMap::end(), SvtxTrack::end_cluster_keys(), TrkrClusterContainer::findCluster(), TrkrClusterContainer::findOrAddCluster(), TrkrDefs::getTrkrId(), TrkrDefs::micromegasId, and track.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHMicromegasTpcTrackMatching::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 582 of file PHMicromegasTpcTrackMatching.cc.

View newest version in sPHENIX GitHub at line 582 of file PHMicromegasTpcTrackMatching.cc

References Fun4AllReturnCodes::EVENT_OK.

int PHMicromegasTpcTrackMatching::GetNodes ( PHCompositeNode topNode)
private

load nodes relevant for the analysis

Definition at line 586 of file PHMicromegasTpcTrackMatching.cc.

View newest version in sPHENIX GitHub at line 586 of file PHMicromegasTpcTrackMatching.cc

References _assoc_container, _cluster_map, _corrected_cluster_map, _geomContainerMicromegas, _surfmaps, _tGeometry, _track_map, _use_truth_clusters, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, and PHWHERE.

Referenced by InitRun().

+ Here is the caller graph for this function:

int PHMicromegasTpcTrackMatching::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 274 of file PHMicromegasTpcTrackMatching.cc.

View newest version in sPHENIX GitHub at line 274 of file PHMicromegasTpcTrackMatching.cc

References _collision_rate, _geomContainerMicromegas, _min_mm_layer, _n_mm_layers, _par0, _par1, _reference_collision_rate, _rphi_search_win, _z_search_win, Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, fdrphi, PHG4CylinderGeomContainer::get_NLayers(), PHG4CylinderGeomContainer::GetFirstLayerGeom(), GetNodes(), and PHWHERE.

+ Here is the call graph for this function:

void PHMicromegasTpcTrackMatching::set_collision_rate ( const double  rate)
inline

Definition at line 40 of file PHMicromegasTpcTrackMatching.h.

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

References _collision_rate.

void PHMicromegasTpcTrackMatching::set_min_tpc_layer ( const unsigned int  layer)
inline

Definition at line 37 of file PHMicromegasTpcTrackMatching.h.

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

References _min_tpc_layer, and G4TTL::layer.

void PHMicromegasTpcTrackMatching::set_rphi_search_window_lyr1 ( const double  win)
inline

Definition at line 33 of file PHMicromegasTpcTrackMatching.h.

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

References _rphi_search_win.

void PHMicromegasTpcTrackMatching::set_rphi_search_window_lyr2 ( const double  win)
inline

Definition at line 35 of file PHMicromegasTpcTrackMatching.h.

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

References _rphi_search_win.

void PHMicromegasTpcTrackMatching::set_sc_calib_mode ( const bool  mode)
inline

Definition at line 39 of file PHMicromegasTpcTrackMatching.h.

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

References _sc_calib_mode.

void PHMicromegasTpcTrackMatching::set_test_windows_printout ( const bool  test)
inline

Definition at line 38 of file PHMicromegasTpcTrackMatching.h.

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

References _test_windows, and test().

+ Here is the call graph for this function:

void PHMicromegasTpcTrackMatching::set_track_map_name ( const std::string &  map_name)
inline

Definition at line 42 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 42 of file PHMicromegasTpcTrackMatching.h

References _track_map_name.

void PHMicromegasTpcTrackMatching::set_z_search_window_lyr1 ( const double  win)
inline

Definition at line 34 of file PHMicromegasTpcTrackMatching.h.

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

References _z_search_win.

void PHMicromegasTpcTrackMatching::set_z_search_window_lyr2 ( const double  win)
inline

Definition at line 36 of file PHMicromegasTpcTrackMatching.h.

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

References _z_search_win.

void PHMicromegasTpcTrackMatching::SetIteration ( int  iter)
inline

Definition at line 41 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 41 of file PHMicromegasTpcTrackMatching.h

References _n_iteration.

Member Data Documentation

AssocInfoContainer* PHMicromegasTpcTrackMatching::_assoc_container {nullptr}
private

Definition at line 63 of file PHMicromegasTpcTrackMatching.h.

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

Referenced by GetNodes(), and process_event().

TrkrClusterContainer* PHMicromegasTpcTrackMatching::_cluster_map {nullptr}
private

Definition at line 59 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 59 of file PHMicromegasTpcTrackMatching.h

Referenced by copyMicromegasClustersToCorrectedMap(), GetNodes(), and process_event().

double PHMicromegasTpcTrackMatching::_collision_rate = 50e3
private

input rate for phi correction

Definition at line 82 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 82 of file PHMicromegasTpcTrackMatching.h

Referenced by InitRun(), and set_collision_rate().

TrkrClusterContainer* PHMicromegasTpcTrackMatching::_corrected_cluster_map {nullptr}
private

Definition at line 60 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 60 of file PHMicromegasTpcTrackMatching.h

Referenced by copyMicromegasClustersToCorrectedMap(), GetNodes(), and process_event().

int PHMicromegasTpcTrackMatching::_event = -1
private

internal event number

Definition at line 88 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 88 of file PHMicromegasTpcTrackMatching.h

Referenced by process_event().

PHG4CylinderGeomContainer* PHMicromegasTpcTrackMatching::_geomContainerMicromegas = nullptr
private

micomegas geometry

Definition at line 91 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 91 of file PHMicromegasTpcTrackMatching.h

Referenced by GetNodes(), InitRun(), and process_event().

TrkrClusterIterationMapv1* PHMicromegasTpcTrackMatching::_iteration_map = nullptr
private

Definition at line 92 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 92 of file PHMicromegasTpcTrackMatching.h

Referenced by process_event().

unsigned int PHMicromegasTpcTrackMatching::_min_mm_layer = 55
private

first micromegas layer

it is reset in ::Setup using actual micromegas geometry

Definition at line 76 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 76 of file PHMicromegasTpcTrackMatching.h

Referenced by InitRun(), and process_event().

unsigned int PHMicromegasTpcTrackMatching::_min_tpc_layer = 38
private

Definition at line 72 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 72 of file PHMicromegasTpcTrackMatching.h

Referenced by process_event(), and set_min_tpc_layer().

int PHMicromegasTpcTrackMatching::_n_iteration = 0
private

Definition at line 93 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 93 of file PHMicromegasTpcTrackMatching.h

Referenced by process_event(), and SetIteration().

constexpr unsigned int PHMicromegasTpcTrackMatching::_n_mm_layers = 2
staticprivate

number of layers in the micromegas

Definition at line 56 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 56 of file PHMicromegasTpcTrackMatching.h

Referenced by InitRun(), and process_event().

double PHMicromegasTpcTrackMatching::_par0 = -0.36619
private

Definition at line 101 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 101 of file PHMicromegasTpcTrackMatching.h

Referenced by InitRun().

double PHMicromegasTpcTrackMatching::_par1 = 0.00375714
private

Definition at line 102 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 102 of file PHMicromegasTpcTrackMatching.h

Referenced by InitRun().

double PHMicromegasTpcTrackMatching::_reference_collision_rate = 50e3
private

reference rate for phi correction

Definition at line 85 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 85 of file PHMicromegasTpcTrackMatching.h

Referenced by InitRun().

std::array<double,_n_mm_layers> PHMicromegasTpcTrackMatching::_rphi_search_win = {0.25, 13.0}
private

default rphi search window for each layer

Definition at line 66 of file PHMicromegasTpcTrackMatching.h.

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

Referenced by InitRun(), process_event(), set_rphi_search_window_lyr1(), and set_rphi_search_window_lyr2().

bool PHMicromegasTpcTrackMatching::_sc_calib_mode = false
private

true for initial pass with distorted tracks

Definition at line 79 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 79 of file PHMicromegasTpcTrackMatching.h

Referenced by process_event(), and set_sc_calib_mode().

ActsSurfaceMaps* PHMicromegasTpcTrackMatching::_surfmaps = nullptr
private

Definition at line 97 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 97 of file PHMicromegasTpcTrackMatching.h

Referenced by GetNodes(), and process_event().

bool PHMicromegasTpcTrackMatching::_test_windows = false
private

true to printout actual residuals for testing

Definition at line 105 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 105 of file PHMicromegasTpcTrackMatching.h

Referenced by process_event(), and set_test_windows_printout().

ActsTrackingGeometry* PHMicromegasTpcTrackMatching::_tGeometry = nullptr
private

Definition at line 96 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 96 of file PHMicromegasTpcTrackMatching.h

Referenced by GetNodes(), and process_event().

SvtxTrackMap* PHMicromegasTpcTrackMatching::_track_map {nullptr}
private

Definition at line 62 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 62 of file PHMicromegasTpcTrackMatching.h

Referenced by copyMicromegasClustersToCorrectedMap(), GetNodes(), and process_event().

std::string PHMicromegasTpcTrackMatching::_track_map_name = "SvtxTrackMap"
private

Definition at line 94 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 94 of file PHMicromegasTpcTrackMatching.h

Referenced by set_track_map_name().

bool PHMicromegasTpcTrackMatching::_use_truth_clusters = false
private

Definition at line 58 of file PHMicromegasTpcTrackMatching.h.

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

Referenced by GetNodes().

std::array<double,_n_mm_layers> PHMicromegasTpcTrackMatching::_z_search_win = {26.0, 0.25}
private

default z search window for each layer

Definition at line 69 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 69 of file PHMicromegasTpcTrackMatching.h

Referenced by InitRun(), process_event(), set_z_search_window_lyr1(), and set_z_search_window_lyr2().

TF1* PHMicromegasTpcTrackMatching::fdrphi {nullptr}
private

coarse SC correction function

Definition at line 100 of file PHMicromegasTpcTrackMatching.h.

View newest version in sPHENIX GitHub at line 100 of file PHMicromegasTpcTrackMatching.h

Referenced by InitRun(), and process_event().


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