Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/PhotonConversion/truthconversion/VtxTest.h>
Public Member Functions | |
VtxTest (const std::string &name, unsigned int runnumber, int particleEmbed, int pythiaEmbed, bool makeTTree) | |
~VtxTest () | |
int | InitRun (PHCompositeNode *) |
int | process_event (PHCompositeNode *) |
int | End (PHCompositeNode *) |
Called at the end of all processing. | |
const RawClusterContainer * | getClusters () const |
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. | |
Private Member Functions | |
void | doNodePointers (PHCompositeNode *topNode) |
std::queue< std::pair< int, int > > | numUnique (std::map< int, Conversion > *map, SvtxTrackEval *trackEval, RawClusterContainer *mainClusterContainer) |
void | findChildren (std::queue< std::pair< int, int >> missing, PHG4TruthInfoContainer *truthinfo) |
void | processBackground (std::map< int, Conversion > *map, SvtxTrackEval *trackEval, TTree *tree) |
int | get_embed (PHG4Particle *particle, PHG4TruthInfoContainer *truthinfo) const |
float | vtoR (PHG4VtxPoint *vtx) const |
Static Private Attributes | |
static const int | s_kMAXParticles =200 |
increase this number if arrays go out of bounds | |
static const int | s_kMAXRecoMatch =20 |
increase this number if arrays go out of bounds | |
static const int | s_kTPCRADIUS =21 |
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 33 of file VtxTest.h.
View newest version in sPHENIX GitHub at line 33 of file VtxTest.h
VtxTest::VtxTest | ( | const std::string & | name, |
unsigned int | runnumber, | ||
int | particleEmbed, | ||
int | pythiaEmbed, | ||
bool | makeTTree = true |
||
) |
name | name of the output file |
runnumber | printed in TTree for condor jobs |
particleEmbed | the embedID of particles embeded by Fun4All |
pythiaEmbed | the embedID for an embeded pythia event |
makeTTree | true-writes the TTree false-won't make TTree will still find clusters |
Definition at line 47 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 47 of file VtxTest.C
References _foutname, and perf_headwind::name.
VtxTest::~VtxTest | ( | ) |
|
private |
Definition at line 154 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 154 of file VtxTest.C
References _clusterMap, _mainClusterContainer, _truthinfo, and Fun4AllBase::Name().
Referenced by process_event().
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 481 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 481 of file VtxTest.C
References _f, and _kMakeTTree.
|
private |
attempts to find other truth associated tracks for conversions with only 1 truth associated track
Definition at line 452 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 452 of file VtxTest.C
References PHG4TruthInfoContainer::GetParticleRange(), and Fun4AllBase::Verbosity().
|
private |
Definition at line 472 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 472 of file VtxTest.C
References PHG4Particle::get_track_id(), and PHG4TruthInfoContainer::isEmbeded().
const RawClusterContainer * VtxTest::getClusters | ( | ) | const |
get the clusters associated with converions
Definition at line 470 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 470 of file VtxTest.C
References _conversionClusters.
|
virtual |
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 59 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 59 of file VtxTest.C
References _b_approach, _b_cluster_deta, _b_cluster_dphi, _b_cluster_prob, _b_e_deta, _b_e_dphi, _b_electron_pt, _b_electron_reco_pt, _b_event, _b_fLayer, _b_grandparent_id, _b_Mcluster_prob, _b_nCluster, _b_nVtx, _b_parent_eta, _b_parent_phi, _b_parent_pt, _b_photon_m, _b_photon_pT, _b_positron_pt, _b_positron_reco_pt, _b_pythia, _b_Rpair, _b_rVtx, _b_Scluster_prob, _b_Tpair, _b_track_deta, _b_track_dlayer, _b_track_dphi, _b_track_layer, _b_track_pT, _b_ttrack_pT, _b_tvtx_eta, _b_tvtx_phi, _b_tvtx_radius, _b_tvtx_x, _b_tvtx_y, _b_tvtx_z, _b_vtx_chi2, _b_vtx_eta, _b_vtx_phi, _b_vtx_radius, _b_vtx_x, _b_vtx_y, _b_vtx_z, _b_vtxTrack_dist, _bb_approach, _bb_cluster_prob, _bb_photon_m, _bb_photon_pT, _bb_pid, _bb_track_deta, _bb_track_dlayer, _bb_track_dphi, _bb_track_layer, _bb_track_pT, _bb_vtx_chi2, _bb_vtx_radius, _bb_vtxTrack_dist, _e_backgroundCutTree, _f, _foutname, _h_backgroundCutTree, _kMakeTTree, _kRunNumber, _runNumber, _signalCutTree, _tree, _vertexer, and SVReco::InitRun().
|
private |
helper function for process_event fills the member fields with information from the conversions finds the clusters associated with the conversions
Definition at line 252 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 252 of file VtxTest.C
References _b_approach, _b_cluster_deta, _b_cluster_dphi, _b_cluster_prob, _b_e_deta, _b_e_dphi, _b_electron_pt, _b_fLayer, _b_grandparent_id, _b_Mcluster_prob, _b_nCluster, _b_nVtx, _b_parent_eta, _b_parent_phi, _b_parent_pt, _b_photon_m, _b_photon_pT, _b_positron_pt, _b_pythia, _b_Rpair, _b_rVtx, _b_Scluster_prob, _b_Tpair, _b_track_deta, _b_track_dlayer, _b_track_dphi, _b_track_layer, _b_track_pT, _b_ttrack_pT, _b_tvtx_eta, _b_tvtx_phi, _b_tvtx_radius, _b_tvtx_x, _b_tvtx_y, _b_tvtx_z, _b_vtx_chi2, _b_vtx_eta, _b_vtx_phi, _b_vtx_radius, _b_vtx_x, _b_vtx_y, _b_vtx_z, _b_vtxTrack_dist, _clusterMap, _conversionClusters, _kMakeTTree, _kPythiaEmbed, _kRAPIDITYACCEPT, _signalCutTree, _vertexer, RawClusterContainer::AddCluster(), SVReco::findSecondaryVertex(), PHG4Particle::get_e(), RawCluster::get_phi(), RawCluster::get_prob(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), PHG4VtxPoint::get_x(), RawCluster::get_x(), PHG4VtxPoint::get_y(), RawCluster::get_y(), PHG4VtxPoint::get_z(), RawCluster::get_z(), genfit::GFRaveVertex::getChi2(), genfit::GFRaveVertex::getPos(), i, Fun4AllBase::Name(), and Fun4AllBase::Verbosity().
|
virtual |
Find the conversions pass them to numUnique. Fill the TTree
Reimplemented from SubsysReco.
Definition at line 178 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 178 of file VtxTest.C
References _b_tvtx_eta, _b_tvtx_phi, _b_tvtx_radius, _b_tvtx_x, _b_tvtx_y, _b_tvtx_z, _b_vtx_chi2, _b_vtx_eta, _b_vtx_phi, _b_vtx_radius, _b_vtx_x, _b_vtx_y, _b_vtx_z, _signalCutTree, _truthinfo, _vertexer, Fun4AllReturnCodes::ABORTEVENT, SvtxTrackEval::best_track_from(), doNodePointers(), SVReco::findSecondaryVertex(), PHG4Particle::get_e(), PHG4Particle::get_parent_id(), PHG4Particle::get_pid(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), SvtxEvalStack::get_track_eval(), PHG4Particle::get_vtx_id(), PHG4VtxPoint::get_x(), PHG4VtxPoint::get_y(), PHG4VtxPoint::get_z(), genfit::GFRaveVertex::getChi2(), PHG4TruthInfoContainer::GetParticle(), PHG4TruthInfoContainer::GetParticleRange(), genfit::GFRaveVertex::getPos(), PHG4TruthInfoContainer::GetVtx(), and SVReco::InitEvent().
|
private |
map | should contain Conversion objects which hold background events i.e. not conversions fills the fields for _backgroundCutTree |
Definition at line 413 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 413 of file VtxTest.C
References _bb_approach, _bb_cluster_prob, _bb_photon_m, _bb_photon_pT, _bb_pid, _bb_track_deta, _bb_track_dlayer, _bb_track_dphi, _bb_track_layer, _bb_track_pT, _bb_vtx_chi2, _bb_vtx_radius, _bb_vtxTrack_dist, _clusterMap, _mainClusterContainer, _vertexer, SVReco::findSecondaryVertex(), genfit::GFRaveVertex::getChi2(), RawClusterContainer::getCluster(), genfit::GFRaveVertex::getPos(), and i.
|
private |
Definition at line 476 of file VtxTest.C.
View newest version in sPHENIX GitHub at line 476 of file VtxTest.C
References PHG4VtxPoint::get_x(), and PHG4VtxPoint::get_y().
|
private |
Definition at line 89 of file VtxTest.h.
View newest version in sPHENIX GitHub at line 89 of file VtxTest.h
Referenced by doNodePointers(), numUnique(), and processBackground().
|
private |
RawClusters associated with truth conversions processed by other modules
Definition at line 166 of file VtxTest.h.
View newest version in sPHENIX GitHub at line 166 of file VtxTest.h
Referenced by getClusters(), and numUnique().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
background event embedID i.e. pythia or AA
Definition at line 79 of file VtxTest.h.
View newest version in sPHENIX GitHub at line 79 of file VtxTest.h
Referenced by numUnique().
|
private |
<TPC radius currently hardcoded
Definition at line 170 of file VtxTest.h.
View newest version in sPHENIX GitHub at line 170 of file VtxTest.h
Referenced by numUnique().
|
private |
|
private |
contain 1 cluster associated with each conversion
Definition at line 87 of file VtxTest.h.
View newest version in sPHENIX GitHub at line 87 of file VtxTest.h
Referenced by doNodePointers(), and processBackground().
|
private |
|
private |
signal data for making track pair cuts
Definition at line 84 of file VtxTest.h.
View newest version in sPHENIX GitHub at line 84 of file VtxTest.h
Referenced by InitRun(), numUnique(), and process_event().
|
private |
|
private |
Definition at line 88 of file VtxTest.h.
View newest version in sPHENIX GitHub at line 88 of file VtxTest.h
Referenced by doNodePointers(), and process_event().
|
private |
for reco vertex finding
Definition at line 92 of file VtxTest.h.
View newest version in sPHENIX GitHub at line 92 of file VtxTest.h
Referenced by InitRun(), numUnique(), process_event(), processBackground(), and ~VtxTest().
|
staticprivate |
|
staticprivate |
|
staticprivate |