ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4tpc/PHG4TpcPadBaselineShift.h>
Public Member Functions | |
PHG4TpcPadBaselineShift (const std::string &name="PHG4TpcPadBaselineShift") | |
virtual | ~PHG4TpcPadBaselineShift () |
int | Init (PHCompositeNode *topNode) 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 | setScale (float CScale) |
void | setFileName (const std::string &filename) |
void | writeTree (int f_writeTree) |
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 | is_in_sector_boundary (int phibin, int sector, PHG4CylinderCellGeom *layergeom) |
Private Attributes | |
float | _hit_z = NAN |
float | _hit_r = NAN |
float | _hit_phi = NAN |
float | _hit_e = NAN |
int | _hit_adc = INT_MIN |
int | _hit_adc_bls = INT_MIN |
int | _hit_layer = INT_MIN |
int | _hit_sector = INT_MIN |
TrkrHitSetContainer * | m_hits = nullptr |
TrkrClusterContainer * | m_clusterlist = nullptr |
TrkrClusterHitAssoc * | m_clusterhitassoc = nullptr |
ActsSurfaceMaps * | m_surfMaps = nullptr |
ActsTrackingGeometry * | m_tGeometry = nullptr |
int | _writeTree = 0 |
double | SectorFiducialCut = 0.5 |
int | NZBinsMax = 0 |
float | _CScale = 1. |
TFile * | outfile = nullptr |
std::string | _filename = "./hitsBLS.root" |
TTree * | _rawHits = nullptr |
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 PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 26 of file PHG4TpcPadBaselineShift.h
PHG4TpcPadBaselineShift::PHG4TpcPadBaselineShift | ( | const std::string & | name = "PHG4TpcPadBaselineShift" | ) |
Definition at line 80 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 80 of file PHG4TpcPadBaselineShift.cc
|
virtual |
Definition at line 111 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 111 of file PHG4TpcPadBaselineShift.cc
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 396 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 396 of file PHG4TpcPadBaselineShift.cc
References _writeTree, Fun4AllReturnCodes::EVENT_OK, and outfile.
|
overridevirtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
Definition at line 117 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 117 of file PHG4TpcPadBaselineShift.cc
References _filename, _hit_adc, _hit_adc_bls, _hit_e, _hit_layer, _hit_phi, _hit_r, _hit_sector, _hit_z, _rawHits, _writeTree, and outfile.
|
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 147 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 147 of file PHG4TpcPadBaselineShift.cc
References Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), and PHWHERE.
|
private |
Definition at line 86 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 86 of file PHG4TpcPadBaselineShift.cc
References PHG4CylinderCellGeom::get_phibins(), PHG4CylinderCellGeom::get_radius(), int(), M_PI, radius, and SectorFiducialCut.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 164 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 164 of file PHG4TpcPadBaselineShift.cc
References _CScale, _hit_adc, _hit_adc_bls, _hit_e, _hit_layer, _hit_phi, _hit_r, _hit_sector, _hit_z, _rawHits, _writeTree, Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, f1, PHNodeIterator::findFirst(), TpcDefs::genHitKey(), PHG4CylinderCellGeom::get_phibins(), PHG4CylinderCellGeom::get_phicenter(), PHG4CylinderCellGeom::get_radius(), PHG4CylinderCellGeom::get_zbins(), PHG4CylinderCellGeom::get_zcenter(), TrkrHit::getEnergy(), TrkrHitSet::getHits(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4CylinderCellGeomContainer::GetLayerCellGeom(), TpcDefs::getPad(), TpcDefs::getSectorId(), TpcDefs::getSide(), TpcDefs::getTBin(), int(), G4TTL::layer, m_clusterhitassoc, m_clusterlist, m_hits, M_PI, m_surfMaps, m_tGeometry, NZBinsMax, MATSCAN::phibins, PHWHERE, pi, radius, TrkrHit::setAdc(), TrkrClusterContainer::size(), TrkrDefs::tpcId, and Fun4AllBase::Verbosity().
void PHG4TpcPadBaselineShift::setFileName | ( | const std::string & | filename | ) |
Definition at line 426 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 426 of file PHG4TpcPadBaselineShift.cc
References _filename, and INPUTHEPMC::filename.
void PHG4TpcPadBaselineShift::setScale | ( | float | CScale | ) |
Definition at line 421 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 421 of file PHG4TpcPadBaselineShift.cc
References _CScale.
Definition at line 431 of file PHG4TpcPadBaselineShift.cc.
View newest version in sPHENIX GitHub at line 431 of file PHG4TpcPadBaselineShift.cc
References _writeTree.
|
private |
Definition at line 73 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 73 of file PHG4TpcPadBaselineShift.h
Referenced by process_event(), and setScale().
|
private |
Definition at line 76 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 76 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and setFileName().
Definition at line 55 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 55 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and process_event().
Definition at line 56 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 56 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and process_event().
|
private |
Definition at line 54 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 54 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and process_event().
Definition at line 57 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 57 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and process_event().
|
private |
Definition at line 53 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 53 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and process_event().
|
private |
Definition at line 52 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 52 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and process_event().
Definition at line 58 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 58 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and process_event().
|
private |
Definition at line 51 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 51 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and process_event().
|
private |
Definition at line 78 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 78 of file PHG4TpcPadBaselineShift.h
Referenced by Init(), and process_event().
|
private |
Definition at line 68 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 68 of file PHG4TpcPadBaselineShift.h
Referenced by End(), Init(), process_event(), and writeTree().
|
private |
Definition at line 62 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 62 of file PHG4TpcPadBaselineShift.h
Referenced by process_event().
|
private |
Definition at line 61 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 61 of file PHG4TpcPadBaselineShift.h
Referenced by process_event().
|
private |
Definition at line 60 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 60 of file PHG4TpcPadBaselineShift.h
Referenced by process_event().
|
private |
Definition at line 63 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 63 of file PHG4TpcPadBaselineShift.h
Referenced by process_event().
|
private |
Definition at line 64 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 64 of file PHG4TpcPadBaselineShift.h
Referenced by process_event().
|
private |
Definition at line 72 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 72 of file PHG4TpcPadBaselineShift.h
Referenced by process_event().
|
private |
Definition at line 75 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 75 of file PHG4TpcPadBaselineShift.h
|
private |
Definition at line 69 of file PHG4TpcPadBaselineShift.h.
View newest version in sPHENIX GitHub at line 69 of file PHG4TpcPadBaselineShift.h
Referenced by is_in_sector_boundary().