Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/PhotonConversion/truthconversion/RecoConversionEval.h>
Public Member Functions | |
RecoConversionEval (const std::string &name, std::string tmvamethod, std::string tmvapath) | |
~RecoConversionEval () | |
int | Init (PHCompositeNode *topNode) |
int | InitRun (PHCompositeNode *topNode) |
void | doNodePointers (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
int | End (PHCompositeNode *topNode) |
Called at the end of all processing. | |
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 | |
bool | hasNodePointers () const |
genfit::GFRaveVertex * | correctSecondaryVertex (genfit::GFRaveVertex *vtx, SvtxTrack *reco1, SvtxTrack *reco2) |
Uses the TMVA method to correct the vtx radius. | |
std::pair< PHGenFit::Track *, PHGenFit::Track * > | refitTracks (genfit::GFRaveVertex *vtx, SvtxTrack *reco1, SvtxTrack *reco2) |
Uses _vertexer to refit. | |
TLorentzVector * | reconstructPhoton (SvtxTrack *reco1, SvtxTrack *reco2) |
Adds. | |
TLorentzVector * | reconstructPhoton (std::pair< PHGenFit::Track *, PHGenFit::Track * > recos) |
Adds the PHGenFit::Tracks into a TLorentVector. | |
bool | detaCut (float eta1, float eta2) const |
bool | pairCuts (SvtxTrack *t1, SvtxTrack *t2) const |
bool | hitCuts (SvtxTrack *t1, SvtxTrack *t2) const |
bool | vtxCuts (genfit::GFRaveVertex *vtxCan) |
bool | vtxTrackRZCut (TVector3 recoVertPos, SvtxTrack *track) |
track must be closer in RZ space to the vtx than the cut | |
bool | vtxTrackRPhiCut (TVector3 recoVertPos, SvtxTrack *track) |
track must be closer in RPhi space to the vtx than the cut | |
bool | vtxRadiusCut (TVector3 recoVertPos) |
vtx radius must be greater than the cut | |
bool | photonCuts (TLorentzVector *photon) const |
cut on the reconstructed photon mass and pT | |
bool | approachDistance (SvtxTrack *t1, SvtxTrack *t2) const |
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 31 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 31 of file RecoConversionEval.h
RecoConversionEval::RecoConversionEval | ( | const std::string & | name, |
std::string | tmvamethod, | ||
std::string | tmvapath | ||
) |
Definition at line 38 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 38 of file RecoConversionEval.cc
References _regressor.
RecoConversionEval::~RecoConversionEval | ( | ) |
Definition at line 44 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 44 of file RecoConversionEval.cc
References _regressor, and _vertexer.
Definition at line 320 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 320 of file RecoConversionEval.cc
References _kApprochCut, KFPMath::a, KFPMath::b, Acts::PhysicalConstants::c, Acts::UnitConstants::e, eps, SvtxTrack::get_px(), SvtxTrack::get_py(), SvtxTrack::get_pz(), SvtxTrack::get_x(), SvtxTrack::get_y(), SvtxTrack::get_z(), tc, physmon_ckf_tracking::u, and testSigmaEff::v.
|
private |
Uses the TMVA method to correct the vtx radius.
Definition at line 198 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 198 of file RecoConversionEval.cc
References _regressor, genfit::GFRaveVertex::getChi2(), genfit::GFRaveVertex::getCov(), genfit::GFRaveVertex::getId(), genfit::GFRaveVertex::getNdf(), genfit::GFRaveVertex::getNTracks(), genfit::GFRaveVertex::getParameters(), genfit::GFRaveVertex::getPos(), i, VtxRegressor::regress(), and tracks().
Referenced by process_event().
|
inlineprivate |
Definition at line 67 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 67 of file RecoConversionEval.h
References _kDetaCut.
Referenced by pairCuts().
void RecoConversionEval::doNodePointers | ( | PHCompositeNode * | topNode | ) |
Definition at line 81 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 81 of file RecoConversionEval.cc
References _allTracks, _clusterMap, _mainClusterContainer, _truthinfo, _vertexer, and SVReco::InitEvent().
Referenced by process_event().
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 305 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 305 of file RecoConversionEval.cc
References _file, _treeBackground, Fun4AllReturnCodes::EVENT_OK, passedCluster, passedPair, passedpTEtaQ, passedVtx, and totalTracks.
|
private |
Definition at line 95 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 95 of file RecoConversionEval.cc
References _allTracks, _mainClusterContainer, and _vertexer.
Check that the radial distance between the first hit of both tracks is less the cut cut should be stricter for pairs with no silicone hits also need to check the approach distance
Definition at line 267 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 267 of file RecoConversionEval.cc
References _clusterMap, _kDLayerCut, SvtxTrack::begin_cluster_keys(), c2, TrkrClusterContainer::findCluster(), TrkrDefs::getLayer(), testSigmaEff::l1, and testSigmaEff::l2.
Referenced by pairCuts().
|
virtual |
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 50 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 50 of file RecoConversionEval.cc
References Fun4AllReturnCodes::EVENT_OK.
|
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 54 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 54 of file RecoConversionEval.cc
References _b_photon_eta, _b_photon_m, _b_photon_phi, _b_photon_pT, _b_refit, _b_track1_pT, _b_track2_pT, _file, _fname, _treeBackground, _treeSignal, _vertexer, Fun4AllReturnCodes::EVENT_OK, SVReco::InitRun(), passedCluster, passedPair, passedPhoton, passedpTEtaQ, passedVtx, and totalTracks.
Definition at line 258 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 258 of file RecoConversionEval.cc
References detaCut(), SvtxTrack::get_eta(), and hitCuts().
Referenced by process_event().
|
private |
cut on the reconstructed photon mass and pT
Definition at line 262 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 262 of file RecoConversionEval.cc
References _kPhotonMmax, _kPhotonMmin, and _kPhotonPTmin.
Referenced by process_event().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 99 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 99 of file RecoConversionEval.cc
References _allTracks, _b_photon_eta, _b_photon_m, _b_photon_phi, _b_photon_pT, _b_refit, _b_track1_pT, _b_track2_pT, _kEMProbCut, _kTrackPtCut, _mainClusterContainer, _treeSignal, _vertexer, SvtxTrackMap::begin(), correctSecondaryVertex(), doNodePointers(), SvtxTrackMap::end(), Fun4AllReturnCodes::EVENT_OK, SVReco::findSecondaryVertex(), SvtxTrack::get_cal_cluster_id(), SvtxTrack::get_charge(), RawCluster::get_prob(), SvtxTrack::get_pt(), RawClusterContainer::getCluster(), pairCuts(), passedCluster, passedPair, passedPhoton, passedpTEtaQ, passedVtx, photonCuts(), reconstructPhoton(), refitTracks(), totalTracks, and vtxCuts().
|
private |
Adds.
reco1 | and |
reco2 | as TLorentzVectors |
Definition at line 229 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 229 of file RecoConversionEval.cc
References _kElectronRestM, SvtxTrack::get_p(), SvtxTrack::get_px(), SvtxTrack::get_py(), and SvtxTrack::get_pz().
Referenced by process_event().
|
private |
Adds the PHGenFit::Tracks into a TLorentVector.
Definition at line 216 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 216 of file RecoConversionEval.cc
References _kElectronRestM.
|
private |
Uses _vertexer to refit.
reco1 | and |
reco2 |
Definition at line 242 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 242 of file RecoConversionEval.cc
References _vertexer, physmon_track_finding_ttbar::r, and SVReco::refitTrack().
Referenced by process_event().
|
private |
Definition at line 283 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 283 of file RecoConversionEval.cc
References genfit::GFRaveVertex::getPos(), and vtxRadiusCut().
Referenced by process_event().
|
private |
vtx radius must be greater than the cut
Definition at line 301 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 301 of file RecoConversionEval.cc
References _kVtxRCut.
Referenced by vtxCuts().
|
private |
track must be closer in RPhi space to the vtx than the cut
Definition at line 295 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 295 of file RecoConversionEval.cc
References _kVtxRPhiCut, SvtxTrack::get_phi(), SvtxTrack::get_x(), and SvtxTrack::get_y().
|
private |
track must be closer in RZ space to the vtx than the cut
Definition at line 287 of file RecoConversionEval.cc.
View newest version in sPHENIX GitHub at line 287 of file RecoConversionEval.cc
References _kVtxRZCut, dR(), SvtxTrack::get_x(), SvtxTrack::get_y(), and SvtxTrack::get_z().
|
private |
Definition at line 44 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 44 of file RecoConversionEval.h
Referenced by doNodePointers(), hasNodePointers(), and process_event().
|
private |
Definition at line 46 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 46 of file RecoConversionEval.h
Referenced by doNodePointers(), and hitCuts().
|
private |
Definition at line 50 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 50 of file RecoConversionEval.h
|
private |
Definition at line 49 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 49 of file RecoConversionEval.h
Referenced by InitRun().
|
private |
Definition at line 47 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 47 of file RecoConversionEval.h
|
private |
Definition at line 126 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 126 of file RecoConversionEval.h
Referenced by approachDistance().
|
private |
Definition at line 131 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 131 of file RecoConversionEval.h
Referenced by reconstructPhoton().
|
private |
Definition at line 124 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 124 of file RecoConversionEval.h
|
private |
Definition at line 125 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 125 of file RecoConversionEval.h
|
private |
Definition at line 111 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 111 of file RecoConversionEval.h
|
private |
Definition at line 129 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 129 of file RecoConversionEval.h
|
private |
Definition at line 127 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 127 of file RecoConversionEval.h
Referenced by vtxTrackRPhiCut().
|
private |
Definition at line 128 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 128 of file RecoConversionEval.h
Referenced by vtxTrackRZCut().
|
private |
Definition at line 45 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 45 of file RecoConversionEval.h
Referenced by doNodePointers(), hasNodePointers(), and process_event().
|
private |
Definition at line 53 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 53 of file RecoConversionEval.h
Referenced by correctSecondaryVertex(), RecoConversionEval(), and ~RecoConversionEval().
|
private |
Definition at line 52 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 52 of file RecoConversionEval.h
|
private |
Definition at line 51 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 51 of file RecoConversionEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 55 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 55 of file RecoConversionEval.h
Referenced by doNodePointers().
|
private |
Definition at line 48 of file RecoConversionEval.h.
View newest version in sPHENIX GitHub at line 48 of file RecoConversionEval.h
Referenced by doNodePointers(), hasNodePointers(), InitRun(), process_event(), refitTracks(), and ~RecoConversionEval().