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

#include <acts/blob/sPHENIX/Examples/Scripts/TrackingPerformance/TreeReader.h>

+ Inheritance diagram for ParticleReader:
+ Collaboration diagram for ParticleReader:

Public Member Functions

 ParticleReader ()=delete
 
 ParticleReader (TTree *tree_, bool sortEvents)
 
std::vector< ParticleInfogetParticles (const uint32_t &eventNumber) const
 
- Public Member Functions inherited from TreeReader
 TreeReader (TTree *tree_)
 
void getEntry (unsigned int i) const
 

Public Attributes

ULong64_t eventId = 0
 
ULong64_t particleId = 0
 
Int_t particleType = 0
 
float vx = 0
 
float vy = 0
 
float vz = 0
 
float vt = 0
 
float px = 0
 
float py = 0
 
float pz = 0
 
float m = 0
 
float q = 0
 
UShort_t nHits = 0
 
UShort_t nTracks = 0
 
UShort_t nTracksMajority = 0
 
- Public Attributes inherited from TreeReader
TTree * tree = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from TreeReader
std::vector< long long > entryNumbers = {}
 

Detailed Description

Struct used for reading particles written out by the TrackFinderPerformanceWriter

Definition at line 405 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 405 of file TreeReader.h

Constructor & Destructor Documentation

ParticleReader::ParticleReader ( )
delete
ParticleReader::ParticleReader ( TTree *  tree_,
bool  sortEvents 
)
inline

Definition at line 410 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 410 of file TreeReader.h

References TreeReader::entryNumbers, eventId, m, nHits, nTracks, nTracksMajority, particleId, particleType, px, py, pz, q, TreeReader::tree, vt, vx, vy, and vz.

Member Function Documentation

std::vector<ParticleInfo> ParticleReader::getParticles ( const uint32_t &  eventNumber) const
inline

Definition at line 439 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 439 of file TreeReader.h

References eta, TreeReader::getEntry(), i, nHits, merge_hashes::p, particleId, particles, physmon_track_finding_ttbar::pt, px, py, pz, to_string(), and TreeReader::tree.

+ Here is the call graph for this function:

Member Data Documentation

ULong64_t ParticleReader::eventId = 0

Definition at line 463 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 463 of file TreeReader.h

Referenced by ParticleReader().

float ParticleReader::m = 0

Definition at line 469 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 469 of file TreeReader.h

Referenced by ParticleReader().

UShort_t ParticleReader::nHits = 0

Definition at line 471 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 471 of file TreeReader.h

Referenced by getParticles(), and ParticleReader().

UShort_t ParticleReader::nTracks = 0

Definition at line 472 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 472 of file TreeReader.h

Referenced by ParticleReader().

UShort_t ParticleReader::nTracksMajority = 0

Definition at line 473 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 473 of file TreeReader.h

Referenced by ParticleReader().

ULong64_t ParticleReader::particleId = 0

Definition at line 464 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 464 of file TreeReader.h

Referenced by getParticles(), and ParticleReader().

Int_t ParticleReader::particleType = 0

Definition at line 465 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 465 of file TreeReader.h

Referenced by ParticleReader().

float ParticleReader::px = 0

Definition at line 468 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 468 of file TreeReader.h

Referenced by getParticles(), and ParticleReader().

float ParticleReader::py = 0

Definition at line 468 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 468 of file TreeReader.h

Referenced by getParticles(), and ParticleReader().

float ParticleReader::pz = 0

Definition at line 468 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 468 of file TreeReader.h

Referenced by getParticles(), and ParticleReader().

float ParticleReader::q = 0

Definition at line 470 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 470 of file TreeReader.h

Referenced by ParticleReader().

float ParticleReader::vt = 0

Definition at line 467 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 467 of file TreeReader.h

Referenced by ParticleReader().

float ParticleReader::vx = 0

Definition at line 466 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 466 of file TreeReader.h

Referenced by ParticleReader().

float ParticleReader::vy = 0

Definition at line 466 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 466 of file TreeReader.h

Referenced by ParticleReader().

float ParticleReader::vz = 0

Definition at line 466 of file TreeReader.h.

View newest version in sPHENIX GitHub at line 466 of file TreeReader.h

Referenced by ParticleReader().


The documentation for this struct was generated from the following file: