Analysis Software
Documentation for sPHENIX simulation software
|
RawTowerCombiner module that joints multiple RawTower together to form a single readout in a separate node Use this class to simulate ganged readout or trigger channels that combined multiple towers Should be called after RawTowerBuilder but before RawTowerDigitizer. More...
#include <coresoftware/blob/master/offline/packages/CaloReco/RawTowerCombiner.h>
Public Member Functions | |
RawTowerCombiner (const std::string &name="RawTowerCombiner") | |
~RawTowerCombiner () 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 | Detector (const std::string &d) |
std::string | get_tower_node_prefix () const |
prefix to the tower node | |
void | set_tower_node_prefix (const std::string &simTowerNodePrefix) |
prefix to the tower node | |
unsigned int | get_combine_eta () const |
number of eta towers to be merged into a new tower | |
void | set_combine_eta (unsigned int combineEta) |
number of eta towers to be merged into a new tower | |
unsigned int | get_combine_phi () const |
number of eta towers to be merged into a new tower | |
void | set_combine_phi (unsigned int combinePhi) |
number of eta towers to be merged into a new tower | |
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. | |
Protected Member Functions | |
int | get_output_bin_eta (int input_bin) const |
get the new ieta from the old | |
int | get_output_bin_phi (int input_bin) const |
get the new iphi from the old | |
void | CreateNodes (PHCompositeNode *topNode) |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Protected Member Functions inherited from Fun4AllBase | |
Fun4AllBase (const std::string &name="NONAME") | |
Protected Attributes | |
std::string | _tower_node_prefix |
prefix to the tower node | |
unsigned int | _n_combine_eta |
number of eta towers to be merged into a new tower | |
unsigned int | _n_combine_phi |
number of phi towers to be merged into a new tower | |
RawTowerContainer * | _towers |
std::string | detector |
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 } |
RawTowerCombiner module that joints multiple RawTower together to form a single readout in a separate node Use this class to simulate ganged readout or trigger channels that combined multiple towers Should be called after RawTowerBuilder but before RawTowerDigitizer.
Definition at line 65 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 65 of file RawTowerCombiner.h
RawTowerCombiner::RawTowerCombiner | ( | const std::string & | name = "RawTowerCombiner" | ) |
Definition at line 31 of file RawTowerCombiner.cc.
View newest version in sPHENIX GitHub at line 31 of file RawTowerCombiner.cc
|
inlineoverride |
Definition at line 70 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 70 of file RawTowerCombiner.h
|
protected |
Definition at line 195 of file RawTowerCombiner.cc.
View newest version in sPHENIX GitHub at line 195 of file RawTowerCombiner.cc
References _n_combine_eta, _n_combine_phi, _tower_node_prefix, _towers, RawTowerGeomContainer::add_tower_geometry(), assert, RawTowerDefs::convert_name_to_caloid(), detector, RawTowerDefs::encode_towerid(), PHNodeIterator::findFirst(), RawTowerGeomContainer::get_etabins(), RawTowerGeomContainer::get_etabounds(), RawTowerGeomContainer::get_etacenter(), RawTowerGeomContainer::get_phibins(), RawTowerGeomContainer::get_phibounds(), RawTowerGeomContainer::get_phicenter(), RawTowerGeomContainer::get_radius(), findNode::getClass(), configureMap::ibin, RawTowerGeomContainer::identify(), Fun4AllBase::Name(), physmon_track_finding_ttbar::r, PHObject::Reset(), RawTowerGeomv1::set_center_x(), RawTowerGeomv1::set_center_y(), RawTowerGeomv1::set_center_z(), RawTowerGeomContainer::set_etabins(), RawTowerGeomContainer::set_etabounds(), RawTowerGeomContainer::set_phibins(), RawTowerGeomContainer::set_phibounds(), tg, Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_SOME.
Referenced by InitRun().
|
inline |
Definition at line 79 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 79 of file RawTowerCombiner.h
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 190 of file RawTowerCombiner.cc.
View newest version in sPHENIX GitHub at line 190 of file RawTowerCombiner.cc
References Fun4AllReturnCodes::EVENT_OK.
|
inline |
number of eta towers to be merged into a new tower
Definition at line 100 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 100 of file RawTowerCombiner.h
References _n_combine_eta.
|
inline |
number of eta towers to be merged into a new tower
Definition at line 114 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 114 of file RawTowerCombiner.h
References _n_combine_phi.
|
inlineprotected |
get the new ieta from the old
Definition at line 136 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 136 of file RawTowerCombiner.h
References _n_combine_eta.
Referenced by process_event().
|
inlineprotected |
get the new iphi from the old
Definition at line 138 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 138 of file RawTowerCombiner.h
References _n_combine_phi.
Referenced by process_event().
|
inline |
prefix to the tower node
Definition at line 86 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 86 of file RawTowerCombiner.h
References _tower_node_prefix.
|
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 41 of file RawTowerCombiner.cc.
View newest version in sPHENIX GitHub at line 41 of file RawTowerCombiner.cc
References _n_combine_eta, _n_combine_phi, CreateNodes(), Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, and PHNodeIterator::findFirst().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 83 of file RawTowerCombiner.cc.
View newest version in sPHENIX GitHub at line 83 of file RawTowerCombiner.cc
References _towers, RawTower::add_ecell(), RawTower::add_eshower(), RawTowerContainer::AddTower(), assert, Acts::UnitConstants::e, eta, Fun4AllReturnCodes::EVENT_OK, RawTower::get_bineta(), RawTower::get_binphi(), RawTower::get_energy(), RawTower::get_g4cells(), RawTower::get_g4showers(), get_output_bin_eta(), get_output_bin_phi(), RawTower::get_time(), RawTowerContainer::getTotalEdep(), RawTowerContainer::getTowers(), RawTower::identify(), it, Fun4AllBase::Name(), ActsTests::PropagationDatasets::phi, RawTowerContainer::Reset(), RawTower::set_energy(), RawTower::set_time(), RawTowerContainer::size(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_MORE.
|
inline |
number of eta towers to be merged into a new tower
Definition at line 107 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 107 of file RawTowerCombiner.h
References _n_combine_eta.
|
inline |
number of eta towers to be merged into a new tower
Definition at line 121 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 121 of file RawTowerCombiner.h
References _n_combine_phi.
|
inline |
prefix to the tower node
Definition at line 93 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 93 of file RawTowerCombiner.h
References _tower_node_prefix.
|
protected |
number of eta towers to be merged into a new tower
Definition at line 131 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 131 of file RawTowerCombiner.h
Referenced by CreateNodes(), get_combine_eta(), get_output_bin_eta(), InitRun(), and set_combine_eta().
|
protected |
number of phi towers to be merged into a new tower
Definition at line 133 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 133 of file RawTowerCombiner.h
Referenced by CreateNodes(), get_combine_phi(), get_output_bin_phi(), InitRun(), and set_combine_phi().
|
protected |
prefix to the tower node
Definition at line 128 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 128 of file RawTowerCombiner.h
Referenced by CreateNodes(), get_tower_node_prefix(), and set_tower_node_prefix().
|
protected |
Definition at line 143 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 143 of file RawTowerCombiner.h
Referenced by CreateNodes(), and process_event().
|
protected |
Definition at line 145 of file RawTowerCombiner.h.
View newest version in sPHENIX GitHub at line 145 of file RawTowerCombiner.h
Referenced by CreateNodes().