EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/offline/packages/trackreco/PHMicromegasTpcTrackMatching.h>
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") | |
Definition at line 26 of file PHMicromegasTpcTrackMatching.h.
View newest version in sPHENIX GitHub at line 26 of file PHMicromegasTpcTrackMatching.h
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
|
overridedefault |
|
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(), and TrkrDefs::micromegasId.
Referenced by process_event().
|
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.
|
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().
|
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.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 315 of file PHMicromegasTpcTrackMatching.cc.
View newest version in sPHENIX GitHub at line 315 of file PHMicromegasTpcTrackMatching.cc
References _assoc_container, _cluster_map, _corrected_cluster_map, _event, _geomContainerMicromegas, _iteration_map, _min_mm_layer, _min_tpc_layer, _n_iteration, _n_mm_layers, _rphi_search_win, _sc_calib_mode, _surfmaps, _test_windows, _tGeometry, _track_map, _z_search_win, Fun4AllReturnCodes::ABORTEVENT, kdfinder::abs(), SvtxTrackMap::begin(), copyMicromegasClustersToCorrectedMap(), cos(), dz, SvtxTrackMap::empty(), SvtxTrackMap::end(), Fun4AllReturnCodes::EVENT_OK, fdrphi, TrkrClusterContainer::findCluster(), MicromegasDefs::genHitSetKey(), QAG4Util::get_r(), CylinderGeomMicromegas::get_radius(), TrkrClusterContainer::getClusters(), ActsTransformations::getGlobalPosition(), TrkrClusterIterationMapv1::getIteration(), TrkrDefs::getLayer(), PHG4CylinderGeomContainer::GetLayerGeom(), TrkrCluster::getLocalX(), TrkrCluster::getLocalY(), G4TTL::layer, phi, PHWHERE, AssocInfoContainer::SetClusterTrackAssoc(), SvtxTrackMap::size(), and Fun4AllBase::Verbosity().
|
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.
Referenced by Tracking_Reco().
|
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.
Referenced by Tracking_Reco().
|
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.
Referenced by Tracking_Reco().
|
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.
Referenced by Tracking_Reco().
|
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.
Referenced by Tracking_Reco().
|
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.
Referenced by Tracking_Reco().
|
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.
|
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.
Referenced by Tracking_Reco().
|
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.
Referenced by Tracking_Reco().
|
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.
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().