Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/TrackingDiagnostics/KshortReconstruction.h>
Public Member Functions | |
KshortReconstruction (const std::string &name="KshortReconstruction") | |
virtual | ~KshortReconstruction () |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | End (PHCompositeNode *) override |
Called at the end of all processing. | |
void | setPtCut (double ptcut) |
void | setTrackQualityCut (double cut) |
void | setPairDCACut (double cut) |
void | setTrackDCACut (double cut) |
void | setRequireMVTX (bool set) |
void | setDecayMass (Float_t decayMassSet) |
void | set_output_file (const std::string &outputfile) |
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 | fillNtp (SvtxTrack *track1, SvtxTrack *track2, Acts::Vector3 dcavals1, Acts::Vector3 dcavals2, Acts::Vector3 pca_rel1, Acts::Vector3 pca_rel2, double pair_dca, double invariantMass, double invariantPt, float rapidity, float pseudorapidity, Eigen::Vector3d projected_pos1, Eigen::Vector3d projected_pos2, Eigen::Vector3d projected_mom1, Eigen::Vector3d projected_mom2, Acts::Vector3 pca_rel1_proj, Acts::Vector3 pca_rel2_proj, double pair_dca_proj) |
void | fillHistogram (Eigen::Vector3d mom1, Eigen::Vector3d mom2, TH1D *massreco, double &invariantMass, double &invariantPt, float &rapidity, float &pseudorapidity) |
void | findPcaTwoTracks (Acts::Vector3 pos1, Acts::Vector3 pos2, Acts::Vector3 mom1, Acts::Vector3 mom2, Acts::Vector3 &pca1, Acts::Vector3 &pca2, double &dca) |
int | getNodes (PHCompositeNode *topNode) |
Acts::Vector3 | calculateDca (SvtxTrack *track, const Acts::Vector3 &momentum, Acts::Vector3 position) |
bool | projectTrackToCylinder (SvtxTrack *track, double Radius, Eigen::Vector3d &pos, Eigen::Vector3d &mom) |
bool | projectTrackToPoint (SvtxTrack *track, Eigen::Vector3d PCA, Eigen::Vector3d &pos, Eigen::Vector3d &mom) |
Acts::Vector3 | getVertex (SvtxTrack *track) |
Private Attributes | |
TNtuple * | ntp_reco_info = nullptr |
ActsGeometry * | _tGeometry = nullptr |
SvtxTrackMap * | m_svtxTrackMap = nullptr |
SvtxVertexMap * | m_vertexMap = nullptr |
std::string | filepath = "" |
Float_t | decaymass = 0.13957 |
bool | _require_mvtx = true |
double | _qual_cut = 10.0 |
double | pair_dca_cut = 0.05 |
double | track_dca_cut = 0.01 |
double | invariant_pt_cut = 0.1 |
TFile * | fout = nullptr |
TH1D * | recomass = 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 = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 43 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 43 of file KshortReconstruction.h
KshortReconstruction::KshortReconstruction | ( | const std::string & | name = "KshortReconstruction" | ) |
Definition at line 404 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 404 of file KshortReconstruction.cc
|
inlinevirtual |
Definition at line 47 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 47 of file KshortReconstruction.h
|
private |
Definition at line 409 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 409 of file KshortReconstruction.cc
References SvtxVertexMap::get(), SvtxTrack::get_vertex_id(), m_vertexMap, ActsTests::PropagationDatasets::phi, position, physmon_track_finding_ttbar::r, and Fun4AllBase::Verbosity().
Referenced by process_event().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 474 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 474 of file KshortReconstruction.cc
References fout, ntp_reco_info, and recomass.
|
private |
Definition at line 207 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 207 of file KshortReconstruction.cc
References decaymass, invariant_pt_cut, v1, v2, and Fun4AllBase::Verbosity().
Referenced by process_event().
|
private |
Definition at line 167 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 167 of file KshortReconstruction.cc
References SvtxVertexMap::get(), SvtxTrack::get_charge(), SvtxTrack::get_px(), SvtxTrack::get_py(), SvtxTrack::get_pz(), SvtxTrack::get_quality(), SvtxTrack::get_tpc_seed(), SvtxTrack::get_vertex_id(), SvtxTrack::get_x(), SvtxTrack::get_y(), SvtxTrack::get_z(), m_vertexMap, ntp_reco_info, ActsTests::PropagationDatasets::pathLength, and TrackSeed::size_cluster_keys().
Referenced by process_event().
|
private |
Definition at line 339 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 339 of file KshortReconstruction.cc
References KFPMath::a2, b1, Acts::PhysicalConstants::c, decaymass, F, G, testing::internal::move(), v1, v2, TauVsDIS_MachineLearning_Differentiation::X, and TauVsDIS_MachineLearning_Differentiation::Y.
Referenced by process_event().
|
private |
Definition at line 484 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 484 of file KshortReconstruction.cc
References _tGeometry, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, m_svtxTrackMap, m_vertexMap, and PHWHERE.
Referenced by InitRun().
|
private |
Definition at line 324 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 324 of file KshortReconstruction.cc
References Acts::UnitConstants::cm, SvtxVertexMap::get(), SvtxTrack::get_vertex_id(), SvtxVertex::get_x(), SvtxVertex::get_y(), SvtxVertex::get_z(), and m_vertexMap.
|
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 459 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 459 of file KshortReconstruction.cc
References filepath, fout, getNodes(), perf_headwind::name, ntp_reco_info, and recomass.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 19 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 19 of file KshortReconstruction.cc
References _qual_cut, _require_mvtx, SvtxTrackMap::begin(), calculateDca(), SvtxTrackMap::end(), fillHistogram(), fillNtp(), findPcaTwoTracks(), m_svtxTrackMap, next, pair_dca_cut, projectTrackToPoint(), recomass, track_dca_cut, and Fun4AllBase::Verbosity().
|
private |
Make a cylindrical surface at (0,0,0) aligned along the z axis
Definition at line 280 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 280 of file KshortReconstruction.cc
References _tGeometry, Acts::UnitConstants::cm, eta, ActsGeometry::geometry(), ActsTrackingGeometry::getGeoContext(), m_vertexMap, momentum, Acts::Test::pos, ActsTests::PropagationDatasets::theta, and Acts::Test::transform.
|
private |
create perigee surface
Definition at line 237 of file KshortReconstruction.cc.
View newest version in sPHENIX GitHub at line 237 of file KshortReconstruction.cc
References _tGeometry, Acts::UnitConstants::cm, ActsGeometry::geometry(), SvtxTrack::get_px(), SvtxTrack::get_py(), SvtxTrack::get_pz(), SvtxTrack::get_x(), SvtxTrack::get_y(), SvtxTrack::get_z(), ActsTrackingGeometry::getGeoContext(), m_vertexMap, ActsPropagator::makeTrackParams(), ActsPropagator::makeVertexSurface(), momentum, Acts::Test::pos, ActsPropagator::propagateTrack(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
inline |
Definition at line 59 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 59 of file KshortReconstruction.h
References filepath.
Referenced by G4KshortReconstruction().
|
inline |
Definition at line 58 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 58 of file KshortReconstruction.h
References decaymass.
|
inline |
Definition at line 55 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 55 of file KshortReconstruction.h
References pair_dca_cut.
|
inline |
Definition at line 53 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 53 of file KshortReconstruction.h
References invariant_pt_cut.
|
inline |
Definition at line 57 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 57 of file KshortReconstruction.h
References _require_mvtx.
|
inline |
Definition at line 56 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 56 of file KshortReconstruction.h
References track_dca_cut.
|
inline |
Definition at line 54 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 54 of file KshortReconstruction.h
References _qual_cut.
|
private |
Definition at line 86 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 86 of file KshortReconstruction.h
Referenced by process_event(), and setTrackQualityCut().
|
private |
Definition at line 85 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 85 of file KshortReconstruction.h
Referenced by process_event(), and setRequireMVTX().
|
private |
Definition at line 79 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 79 of file KshortReconstruction.h
Referenced by getNodes(), projectTrackToCylinder(), and projectTrackToPoint().
|
private |
Definition at line 84 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 84 of file KshortReconstruction.h
Referenced by fillHistogram(), findPcaTwoTracks(), and setDecayMass().
|
private |
Definition at line 83 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 83 of file KshortReconstruction.h
Referenced by InitRun(), and set_output_file().
|
private |
Definition at line 90 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 90 of file KshortReconstruction.h
|
private |
Definition at line 89 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 89 of file KshortReconstruction.h
Referenced by fillHistogram(), and setPtCut().
|
private |
Definition at line 80 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 80 of file KshortReconstruction.h
Referenced by getNodes(), and process_event().
|
private |
Definition at line 81 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 81 of file KshortReconstruction.h
Referenced by calculateDca(), fillNtp(), getNodes(), getVertex(), projectTrackToCylinder(), and projectTrackToPoint().
|
private |
Definition at line 78 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 78 of file KshortReconstruction.h
|
private |
Definition at line 87 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 87 of file KshortReconstruction.h
Referenced by process_event(), and setPairDCACut().
|
private |
Definition at line 91 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 91 of file KshortReconstruction.h
Referenced by End(), InitRun(), and process_event().
|
private |
Definition at line 88 of file KshortReconstruction.h.
View newest version in sPHENIX GitHub at line 88 of file KshortReconstruction.h
Referenced by process_event(), and setTrackDCACut().