Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackerEventDisplay Class Reference

#include <coresoftware/blob/master/offline/QA/EventDisplay/TrackerEventDisplay.h>

+ Inheritance diagram for TrackerEventDisplay:
+ Collaboration diagram for TrackerEventDisplay:

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")
 

Detailed Description

Definition at line 14 of file TrackerEventDisplay.h.

View newest version in sPHENIX GitHub at line 14 of file TrackerEventDisplay.h

Constructor & Destructor Documentation

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

TrackerEventDisplay::~TrackerEventDisplay ( )
override

Definition at line 56 of file TrackerEventDisplay.cc.

View newest version in sPHENIX GitHub at line 56 of file TrackerEventDisplay.cc

Member Function Documentation

int TrackerEventDisplay::End ( PHCompositeNode )
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().

+ Here is the call graph for this function:

int TrackerEventDisplay::Init ( PHCompositeNode )
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.

int TrackerEventDisplay::InitRun ( PHCompositeNode )
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.

void TrackerEventDisplay::makeClustersJson ( bool  value)
inline

Definition at line 30 of file TrackerEventDisplay.h.

View newest version in sPHENIX GitHub at line 30 of file TrackerEventDisplay.h

References _cluster, and value.

void TrackerEventDisplay::makeHitsJson ( bool  value)
inline

Definition at line 29 of file TrackerEventDisplay.h.

View newest version in sPHENIX GitHub at line 29 of file TrackerEventDisplay.h

References _hit, and value.

void TrackerEventDisplay::makeJsonFile ( PHCompositeNode topNode)
private
int TrackerEventDisplay::process_event ( PHCompositeNode )
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().

+ Here is the call graph for this function:

void TrackerEventDisplay::set_first_event ( int  value)
inline

Definition at line 28 of file TrackerEventDisplay.h.

View newest version in sPHENIX GitHub at line 28 of file TrackerEventDisplay.h

References _ievent, and value.

Member Data Documentation

bool TrackerEventDisplay::_cluster
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().

std::string TrackerEventDisplay::_date
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().

std::string TrackerEventDisplay::_filename
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().

bool TrackerEventDisplay::_hit
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().

unsigned int TrackerEventDisplay::_ievent
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().

std::string TrackerEventDisplay::_runnumber
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().

double TrackerEventDisplay::AdcClockPeriod = 53.0
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().

std::ofstream TrackerEventDisplay::outdata
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().


The documentation for this class was generated from the following files: