Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/QA/EventDisplay/TrackerEventDisplay.h>
Public Member Functions | |
TrackerEventDisplay (const std::string &name="TRACKEREVENTDISPLAY", const std::string &filename="./TrackerCosmicsDisplay_25926", const std::string &runnumber="25926", const std::string &date="2023-08-23") | |
~TrackerEventDisplay () override | |
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 | set_first_event (int value) |
void | makeHitsJson (bool value) |
void | makeClustersJson (bool value) |
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 | |
void | makeJsonFile (PHCompositeNode *topNode) |
Private Attributes | |
std::ofstream | outdata |
bool | _hit |
bool | _cluster |
unsigned int | _ievent |
std::string | _filename |
std::string | _runnumber |
std::string | _date |
double | AdcClockPeriod = 53.0 |
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 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 14 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 14 of file TrackerEventDisplay.h
TrackerEventDisplay::TrackerEventDisplay | ( | const std::string & | name = "TRACKEREVENTDISPLAY" , |
const std::string & | filename = "./TrackerCosmicsDisplay_25926" , |
||
const std::string & | runnumber = "25926" , |
||
const std::string & | date = "2023-08-23" |
||
) |
Definition at line 45 of file TrackerEventDisplay.cc.
View newest version in sPHENIX GitHub at line 45 of file TrackerEventDisplay.cc
|
override |
Definition at line 56 of file TrackerEventDisplay.cc.
View newest version in sPHENIX GitHub at line 56 of file TrackerEventDisplay.cc
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 79 of file TrackerEventDisplay.cc.
View newest version in sPHENIX GitHub at line 79 of file TrackerEventDisplay.cc
References _filename, _ievent, Fun4AllReturnCodes::EVENT_OK, and Fun4AllBase::Verbosity().
|
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 60 of file TrackerEventDisplay.cc.
View newest version in sPHENIX GitHub at line 60 of file TrackerEventDisplay.cc
References _ievent, and Fun4AllReturnCodes::EVENT_OK.
|
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 67 of file TrackerEventDisplay.cc.
View newest version in sPHENIX GitHub at line 67 of file TrackerEventDisplay.cc
References Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 30 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 30 of file TrackerEventDisplay.h
|
inline |
Definition at line 29 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 29 of file TrackerEventDisplay.h
|
private |
Definition at line 91 of file TrackerEventDisplay.cc.
View newest version in sPHENIX GitHub at line 91 of file TrackerEventDisplay.cc
References _cluster, _date, _filename, _hit, _ievent, _runnumber, AdcClockPeriod, TrkrClusterContainer::findCluster(), material_mapping_optimisation::format, PHG4TpcCylinderGeom::get_phicenter(), PHG4TpcCylinderGeom::get_radius(), PHG4TpcCylinderGeom::get_zbins(), TrkrHit::getAdc(), TrkrCluster::getAdc(), TrkrClusterContainer::getClusters(), ActsGeometry::getGlobalPosition(), TrkrHitSet::getHits(), TrkrClusterContainer::getHitSetKeys(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4TpcCylinderGeomContainer::GetLayerCellGeom(), TpcDefs::getPad(), TpcDefs::getSide(), TpcDefs::getTBin(), TrkrDefs::getTrkrId(), out, outdata, PHWHERE, to_string(), TrkrDefs::tpcId, Fun4AllBase::Verbosity(), ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.
Referenced by process_event().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 72 of file TrackerEventDisplay.cc.
View newest version in sPHENIX GitHub at line 72 of file TrackerEventDisplay.cc
References _ievent, Fun4AllReturnCodes::EVENT_OK, and makeJsonFile().
|
inline |
Definition at line 28 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 28 of file TrackerEventDisplay.h
|
private |
Definition at line 36 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 36 of file TrackerEventDisplay.h
Referenced by makeClustersJson(), and makeJsonFile().
|
private |
Definition at line 40 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 40 of file TrackerEventDisplay.h
Referenced by makeJsonFile().
|
private |
Definition at line 38 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 38 of file TrackerEventDisplay.h
Referenced by End(), and makeJsonFile().
|
private |
Definition at line 35 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 35 of file TrackerEventDisplay.h
Referenced by makeHitsJson(), and makeJsonFile().
|
private |
Definition at line 37 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 37 of file TrackerEventDisplay.h
Referenced by End(), Init(), makeJsonFile(), process_event(), and set_first_event().
|
private |
Definition at line 39 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 39 of file TrackerEventDisplay.h
Referenced by makeJsonFile().
|
private |
Definition at line 42 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 42 of file TrackerEventDisplay.h
Referenced by makeJsonFile().
|
private |
Definition at line 33 of file TrackerEventDisplay.h.
View newest version in sPHENIX GitHub at line 33 of file TrackerEventDisplay.h
Referenced by makeJsonFile().