ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/packages/CaloReco/RawClusterBuilderTopo.h>
Public Member Functions | |
RawClusterBuilderTopo (const std::string &name="RawClusterBuilderTopo") | |
~RawClusterBuilderTopo () override | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
void | set_nodename (const std::string &nodename) |
void | set_noise (float noise_0=0.0025, float noise_1=0.006, float noise_2=0.03) |
void | set_significance (float seed, float grow, float peri) |
void | allow_corner_neighbor (bool allow) |
void | set_enable_HCal (bool enable_HCal) |
void | set_enable_EMCal (bool enable_EMCal) |
void | set_do_split (bool do_split) |
void | set_minE_local_max (float minE_0=1, float minE_1=1, float minE_2=1) |
void | set_R_shower (float R_shower) |
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 | CreateNodes (PHCompositeNode *topNode) |
int | get_first_matching_EMCal_phi_from_IHCal (int index_hcal_phi) |
int | get_matching_HCal_phi_from_EMCal (int index_emcal_phi) |
std::vector< int > | get_adjacent_towers_by_ID (int ID) |
float | calculate_dR (float, float, float, float) |
void | export_single_cluster (std::vector< int >) |
void | export_clusters (std::vector< int >, std::map< int, std::pair< int, int > >, unsigned int, std::vector< float >, std::vector< float >, std::vector< float >) |
int | get_ID (int ilayer, int ieta, int iphi) |
int | get_ilayer_from_ID (int ID) |
int | get_ieta_from_ID (int ID) |
int | get_iphi_from_ID (int ID) |
int | get_status_from_ID (int ID) |
float | get_E_from_ID (int ID) |
void | set_status_by_ID (int ID, int status) |
Private Attributes | |
std::vector< std::vector < std::vector< float > > > | _TOWERMAP_E_LAYER_ETA_PHI |
std::vector< std::vector < std::vector< int > > > | _TOWERMAP_KEY_LAYER_ETA_PHI |
std::vector< std::vector < std::vector< int > > > | _TOWERMAP_STATUS_LAYER_ETA_PHI |
std::vector< std::vector< float > > | _EMTOWERMAP_E_ETA_PHI |
std::vector< std::vector< int > > | _EMTOWERMAP_KEY_ETA_PHI |
std::vector< std::vector< int > > | _EMTOWERMAP_STATUS_ETA_PHI |
int | _EMCAL_NETA |
int | _EMCAL_NPHI |
int | _HCAL_NETA |
int | _HCAL_NPHI |
RawClusterContainer * | _clusters |
RawTowerGeomContainer * | _geom_containers [3] |
float | _noise_LAYER [3] |
float | _sigma_seed |
float | _sigma_grow |
float | _sigma_peri |
bool | _allow_corner_neighbor |
bool | _enable_HCal |
bool | _enable_EMCal |
bool | _do_split |
float | _local_max_minE_LAYER [3] |
float | _R_shower |
std::string | ClusterNodeName |
Static Private Attributes | |
static int | RawClusterBuilderTopo_constants_EMCal_eta_start_given_IHCal [] |
static int | RawClusterBuilderTopo_constants_EMCal_eta_end_given_IHCal [] |
static int | RawClusterBuilderTopo_constants_IHCal_eta_given_EMCal [] |
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 21 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 21 of file RawClusterBuilderTopo.h
RawClusterBuilderTopo::RawClusterBuilderTopo | ( | const std::string & | name = "RawClusterBuilderTopo" | ) |
Definition at line 283 of file RawClusterBuilderTopo.cc.
View newest version in sPHENIX GitHub at line 283 of file RawClusterBuilderTopo.cc
References _allow_corner_neighbor, _do_split, _EMCAL_NETA, _EMCAL_NPHI, _enable_EMCal, _enable_HCal, _geom_containers, _HCAL_NETA, _HCAL_NPHI, _local_max_minE_LAYER, _noise_LAYER, _R_shower, _sigma_grow, _sigma_peri, _sigma_seed, and ClusterNodeName.
|
inlineoverride |
Definition at line 25 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 25 of file RawClusterBuilderTopo.h
|
inline |
Definition at line 53 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 53 of file RawClusterBuilderTopo.h
References _allow_corner_neighbor.
Referenced by TopoClusterReco().
|
private |
Definition at line 57 of file RawClusterBuilderTopo.cc.
View newest version in sPHENIX GitHub at line 57 of file RawClusterBuilderTopo.cc
Referenced by export_clusters(), and process_event().
|
private |
Definition at line 1157 of file RawClusterBuilderTopo.cc.
View newest version in sPHENIX GitHub at line 1157 of file RawClusterBuilderTopo.cc
References _clusters, PHCompositeNode::addNode(), ClusterNodeName, PHNodeIterator::findFirst(), and PHWHERE.
Referenced by InitRun().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 1152 of file RawClusterBuilderTopo.cc.
View newest version in sPHENIX GitHub at line 1152 of file RawClusterBuilderTopo.cc
References Fun4AllReturnCodes::EVENT_OK.
|
private |
Definition at line 177 of file RawClusterBuilderTopo.cc.
View newest version in sPHENIX GitHub at line 177 of file RawClusterBuilderTopo.cc
References _clusters, _EMTOWERMAP_KEY_ETA_PHI, _geom_containers, _R_shower, _TOWERMAP_KEY_LAYER_ETA_PHI, RawClusterContainer::AddCluster(), calculate_dR(), RawTowerGeom::get_center_x(), RawTowerGeom::get_center_y(), RawTowerGeom::get_center_z(), get_E_from_ID(), RawTowerGeom::get_eta(), get_ieta_from_ID(), get_ilayer_from_ID(), get_iphi_from_ID(), RawTowerGeom::get_phi(), RawTowerGeomContainer::get_tower_geometry(), pc, r, t, and Fun4AllBase::Verbosity().
Referenced by export_single_cluster(), and process_event().
Definition at line 162 of file RawClusterBuilderTopo.cc.
View newest version in sPHENIX GitHub at line 162 of file RawClusterBuilderTopo.cc
References export_clusters(), t, and Fun4AllBase::Verbosity().
Referenced by process_event().
Definition at line 67 of file RawClusterBuilderTopo.cc.
View newest version in sPHENIX GitHub at line 67 of file RawClusterBuilderTopo.cc
References _allow_corner_neighbor, _EMCAL_NETA, _EMCAL_NPHI, _enable_EMCal, _enable_HCal, _HCAL_NETA, _HCAL_NPHI, kdfinder::abs(), QAG4Util::delta_phi(), get_first_matching_EMCal_phi_from_IHCal(), get_ID(), get_ieta_from_ID(), get_ilayer_from_ID(), get_iphi_from_ID(), get_matching_HCal_phi_from_EMCal(), RawClusterBuilderTopo_constants_EMCal_eta_end_given_IHCal, RawClusterBuilderTopo_constants_EMCal_eta_start_given_IHCal, RawClusterBuilderTopo_constants_IHCal_eta_given_EMCal, and Fun4AllBase::Verbosity().
Referenced by process_event().
|
inlineprivate |
Definition at line 159 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 159 of file RawClusterBuilderTopo.h
References _EMCAL_NETA, _EMCAL_NPHI, _EMTOWERMAP_E_ETA_PHI, _TOWERMAP_E_LAYER_ETA_PHI, get_ieta_from_ID(), get_ilayer_from_ID(), and get_iphi_from_ID().
Referenced by export_clusters(), and process_event().
|
inlineprivate |
Definition at line 118 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 118 of file RawClusterBuilderTopo.h
References _EMCAL_NPHI.
Referenced by get_adjacent_towers_by_ID().
Definition at line 134 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 134 of file RawClusterBuilderTopo.h
References _EMCAL_NETA, _EMCAL_NPHI, _HCAL_NETA, and _HCAL_NPHI.
Referenced by get_adjacent_towers_by_ID(), and process_event().
Definition at line 144 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 144 of file RawClusterBuilderTopo.h
References _EMCAL_NETA, _EMCAL_NPHI, _HCAL_NETA, and _HCAL_NPHI.
Referenced by export_clusters(), get_adjacent_towers_by_ID(), get_E_from_ID(), get_status_from_ID(), process_event(), and set_status_by_ID().
Definition at line 139 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 139 of file RawClusterBuilderTopo.h
References _EMCAL_NETA, _EMCAL_NPHI, _HCAL_NETA, and _HCAL_NPHI.
Referenced by export_clusters(), get_adjacent_towers_by_ID(), get_E_from_ID(), get_status_from_ID(), process_event(), and set_status_by_ID().
Definition at line 149 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 149 of file RawClusterBuilderTopo.h
References _EMCAL_NETA, _EMCAL_NPHI, and _HCAL_NPHI.
Referenced by export_clusters(), get_adjacent_towers_by_ID(), get_E_from_ID(), get_status_from_ID(), process_event(), and set_status_by_ID().
Definition at line 122 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 122 of file RawClusterBuilderTopo.h
References _EMCAL_NPHI, and _HCAL_NPHI.
Referenced by get_adjacent_towers_by_ID().
Definition at line 154 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 154 of file RawClusterBuilderTopo.h
References _EMCAL_NETA, _EMCAL_NPHI, _EMTOWERMAP_STATUS_ETA_PHI, _TOWERMAP_STATUS_LAYER_ETA_PHI, get_ieta_from_ID(), get_ilayer_from_ID(), and get_iphi_from_ID().
Referenced by process_event().
|
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 321 of file RawClusterBuilderTopo.cc.
View newest version in sPHENIX GitHub at line 321 of file RawClusterBuilderTopo.cc
References _allow_corner_neighbor, _do_split, _enable_EMCal, _enable_HCal, _local_max_minE_LAYER, _noise_LAYER, _R_shower, _sigma_grow, _sigma_peri, _sigma_seed, CreateNodes(), e, Fun4AllReturnCodes::EVENT_OK, PHWHERE, and Fun4AllBase::Verbosity().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 345 of file RawClusterBuilderTopo.cc.
View newest version in sPHENIX GitHub at line 345 of file RawClusterBuilderTopo.cc
References _clusters, _do_split, _EMCAL_NETA, _EMCAL_NPHI, _EMTOWERMAP_E_ETA_PHI, _EMTOWERMAP_KEY_ETA_PHI, _EMTOWERMAP_STATUS_ETA_PHI, _enable_EMCal, _enable_HCal, _geom_containers, _HCAL_NETA, _HCAL_NPHI, _local_max_minE_LAYER, _noise_LAYER, _sigma_grow, _sigma_peri, _sigma_seed, _TOWERMAP_E_LAYER_ETA_PHI, _TOWERMAP_KEY_LAYER_ETA_PHI, _TOWERMAP_STATUS_LAYER_ETA_PHI, Fun4AllReturnCodes::ABORTEVENT, calculate_dR(), Fun4AllReturnCodes::EVENT_OK, export_clusters(), export_single_cluster(), false, get_adjacent_towers_by_ID(), get_E_from_ID(), RawTower::get_energy(), RawTowerGeom::get_eta(), get_ID(), get_ieta_from_ID(), get_ilayer_from_ID(), get_iphi_from_ID(), RawTower::get_key(), RawTowerGeom::get_phi(), get_status_from_ID(), RawClusterContainer::getClusters(), RawTowerContainer::getTowers(), n, pc, second, set_status_by_ID(), RawTowerContainer::size(), sort_by_pair_second(), t, and Fun4AllBase::Verbosity().
|
inline |
Definition at line 71 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 71 of file RawClusterBuilderTopo.h
References _do_split.
Referenced by TopoClusterReco().
|
inline |
Definition at line 65 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 65 of file RawClusterBuilderTopo.h
References _enable_EMCal.
Referenced by TopoClusterReco().
|
inline |
Definition at line 59 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 59 of file RawClusterBuilderTopo.h
References _enable_HCal.
Referenced by TopoClusterReco().
|
inline |
Definition at line 77 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 77 of file RawClusterBuilderTopo.h
References _local_max_minE_LAYER.
Referenced by TopoClusterReco().
|
inline |
Definition at line 31 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 31 of file RawClusterBuilderTopo.h
References ClusterNodeName.
Referenced by TopoClusterReco().
|
inline |
Definition at line 37 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 37 of file RawClusterBuilderTopo.h
References _noise_LAYER.
Referenced by TopoClusterReco().
|
inline |
Definition at line 85 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 85 of file RawClusterBuilderTopo.h
References _R_shower.
Referenced by TopoClusterReco().
|
inline |
Definition at line 45 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 45 of file RawClusterBuilderTopo.h
References _sigma_grow, _sigma_peri, _sigma_seed, and seed.
Referenced by TopoClusterReco().
Definition at line 164 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 164 of file RawClusterBuilderTopo.h
References _EMCAL_NETA, _EMCAL_NPHI, _EMTOWERMAP_STATUS_ETA_PHI, _TOWERMAP_STATUS_LAYER_ETA_PHI, get_ieta_from_ID(), get_ilayer_from_ID(), and get_iphi_from_ID().
Referenced by process_event().
|
private |
Definition at line 179 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 179 of file RawClusterBuilderTopo.h
Referenced by allow_corner_neighbor(), get_adjacent_towers_by_ID(), InitRun(), and RawClusterBuilderTopo().
|
private |
Definition at line 169 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 169 of file RawClusterBuilderTopo.h
Referenced by CreateNodes(), export_clusters(), and process_event().
|
private |
Definition at line 184 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 184 of file RawClusterBuilderTopo.h
Referenced by InitRun(), process_event(), RawClusterBuilderTopo(), and set_do_split().
|
private |
Definition at line 111 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 111 of file RawClusterBuilderTopo.h
Referenced by get_adjacent_towers_by_ID(), get_E_from_ID(), get_ID(), get_ieta_from_ID(), get_ilayer_from_ID(), get_iphi_from_ID(), get_status_from_ID(), process_event(), RawClusterBuilderTopo(), and set_status_by_ID().
|
private |
Definition at line 112 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 112 of file RawClusterBuilderTopo.h
Referenced by get_adjacent_towers_by_ID(), get_E_from_ID(), get_first_matching_EMCal_phi_from_IHCal(), get_ID(), get_ieta_from_ID(), get_ilayer_from_ID(), get_iphi_from_ID(), get_matching_HCal_phi_from_EMCal(), get_status_from_ID(), process_event(), RawClusterBuilderTopo(), and set_status_by_ID().
|
private |
Definition at line 99 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 99 of file RawClusterBuilderTopo.h
Referenced by get_E_from_ID(), and process_event().
|
private |
Definition at line 100 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 100 of file RawClusterBuilderTopo.h
Referenced by export_clusters(), and process_event().
|
private |
Definition at line 101 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 101 of file RawClusterBuilderTopo.h
Referenced by get_status_from_ID(), process_event(), and set_status_by_ID().
|
private |
Definition at line 182 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 182 of file RawClusterBuilderTopo.h
Referenced by get_adjacent_towers_by_ID(), InitRun(), process_event(), RawClusterBuilderTopo(), and set_enable_EMCal().
|
private |
Definition at line 181 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 181 of file RawClusterBuilderTopo.h
Referenced by get_adjacent_towers_by_ID(), InitRun(), process_event(), RawClusterBuilderTopo(), and set_enable_HCal().
|
private |
Definition at line 171 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 171 of file RawClusterBuilderTopo.h
Referenced by export_clusters(), process_event(), and RawClusterBuilderTopo().
|
private |
Definition at line 114 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 114 of file RawClusterBuilderTopo.h
Referenced by get_adjacent_towers_by_ID(), get_ID(), get_ieta_from_ID(), get_ilayer_from_ID(), process_event(), and RawClusterBuilderTopo().
|
private |
Definition at line 115 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 115 of file RawClusterBuilderTopo.h
Referenced by get_adjacent_towers_by_ID(), get_ID(), get_ieta_from_ID(), get_ilayer_from_ID(), get_iphi_from_ID(), get_matching_HCal_phi_from_EMCal(), process_event(), and RawClusterBuilderTopo().
|
private |
Definition at line 185 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 185 of file RawClusterBuilderTopo.h
Referenced by InitRun(), process_event(), RawClusterBuilderTopo(), and set_minE_local_max().
|
private |
Definition at line 173 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 173 of file RawClusterBuilderTopo.h
Referenced by InitRun(), process_event(), RawClusterBuilderTopo(), and set_noise().
|
private |
Definition at line 186 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 186 of file RawClusterBuilderTopo.h
Referenced by export_clusters(), InitRun(), RawClusterBuilderTopo(), and set_R_shower().
|
private |
Definition at line 176 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 176 of file RawClusterBuilderTopo.h
Referenced by InitRun(), process_event(), RawClusterBuilderTopo(), and set_significance().
|
private |
Definition at line 177 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 177 of file RawClusterBuilderTopo.h
Referenced by InitRun(), process_event(), RawClusterBuilderTopo(), and set_significance().
|
private |
Definition at line 175 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 175 of file RawClusterBuilderTopo.h
Referenced by InitRun(), process_event(), RawClusterBuilderTopo(), and set_significance().
|
private |
Definition at line 95 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 95 of file RawClusterBuilderTopo.h
Referenced by get_E_from_ID(), and process_event().
|
private |
Definition at line 96 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 96 of file RawClusterBuilderTopo.h
Referenced by export_clusters(), and process_event().
|
private |
Definition at line 97 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 97 of file RawClusterBuilderTopo.h
Referenced by get_status_from_ID(), process_event(), and set_status_by_ID().
|
private |
Definition at line 188 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 188 of file RawClusterBuilderTopo.h
Referenced by CreateNodes(), RawClusterBuilderTopo(), and set_nodename().
|
staticprivate |
Definition at line 106 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 106 of file RawClusterBuilderTopo.h
Referenced by get_adjacent_towers_by_ID().
|
staticprivate |
Definition at line 104 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 104 of file RawClusterBuilderTopo.h
Referenced by get_adjacent_towers_by_ID().
|
staticprivate |
Definition at line 108 of file RawClusterBuilderTopo.h.
View newest version in sPHENIX GitHub at line 108 of file RawClusterBuilderTopo.h
Referenced by get_adjacent_towers_by_ID().