#include "write_lst_ntuple.h"
Go to the source code of this file.
Functions | |
void | createGnnNtupleBranches () |
void | createOptionalOutputBranches () |
void | createOutputBranches () |
void | createRequiredOutputBranches () |
void | fillOutputBranches (LSTEvent *event) |
std::tuple< float, float, float, std::vector< unsigned int >, std::vector< unsigned int > > | parsepLS (LSTEvent *event, unsigned int idx) |
std::tuple< float, float, float, std::vector< unsigned int >, std::vector< unsigned int > > | parsepT3 (LSTEvent *event, unsigned int idx) |
std::tuple< float, float, float, std::vector< unsigned int >, std::vector< unsigned int > > | parsepT5 (LSTEvent *event, unsigned int idx) |
std::tuple< float, float, float, std::vector< unsigned int >, std::vector< unsigned int > > | parseT5 (LSTEvent *event, unsigned int idx) |
std::tuple< int, float, float, float, int, std::vector< int > > | parseTrackCandidate (LSTEvent *event, unsigned int idx) |
void | printAllObjects (LSTEvent *event) |
void | printHitMultiplicities (LSTEvent *event) |
void | printLSs (LSTEvent *event) |
void | printMDs (LSTEvent *event) |
void | printMiniDoubletMultiplicities (LSTEvent *event) |
void | printpLSs (LSTEvent *event) |
void | printT3s (LSTEvent *event) |
void | setGnnNtupleBranches (LSTEvent *event) |
void | setGnnNtupleMiniDoublet (LSTEvent *event, unsigned int MD) |
void | setOptionalOutputBranches (LSTEvent *event) |
void | setOutputBranches (LSTEvent *event) |
void | setPixelQuintupletOutputBranches (LSTEvent *event) |
void | setPixelTripletOutputBranches (LSTEvent *event) |
void | setQuintupletOutputBranches (LSTEvent *event) |
void createGnnNtupleBranches | ( | ) |
Definition at line 141 of file write_lst_ntuple.cc.
References ana, RooUtil::TTreeX::createBranch(), and AnalysisConfig::tx.
Referenced by run_lst().
void createOptionalOutputBranches | ( | ) |
Definition at line 54 of file write_lst_ntuple.cc.
References ana, RooUtil::TTreeX::createBranch(), and AnalysisConfig::tx.
Referenced by createOutputBranches().
void createOutputBranches | ( | ) |
Definition at line 6 of file write_lst_ntuple.cc.
References createOptionalOutputBranches(), and createRequiredOutputBranches().
Referenced by run_lst().
void createRequiredOutputBranches | ( | ) |
Definition at line 26 of file write_lst_ntuple.cc.
References ana, RooUtil::TTreeX::createBranch(), and AnalysisConfig::tx.
Referenced by createOutputBranches().
void fillOutputBranches | ( | LSTEvent * | event | ) |
Definition at line 12 of file write_lst_ntuple.cc.
References ana, RooUtil::TTreeX::clear(), RooUtil::TTreeX::fill(), AnalysisConfig::gnn_ntuple, setGnnNtupleBranches(), setOptionalOutputBranches(), setOutputBranches(), and AnalysisConfig::tx.
Referenced by run_lst().
std::tuple<float, float, float, std::vector<unsigned int>, std::vector<unsigned int> > parsepLS | ( | LSTEvent * | event, |
unsigned int | idx | ||
) |
Definition at line 923 of file write_lst_ntuple.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::lst::eta(), getPixelHitIdxsFrompLS(), getPixelHitTypesFrompLS(), heavyIonCSV_trainingSettings::idx, ALPAKA_ACCELERATOR_NAMESPACE::lst::phi(), pLS, and DiDispStaMuonMonitor_cfi::pt.
Referenced by parseTrackCandidate().
std::tuple<float, float, float, std::vector<unsigned int>, std::vector<unsigned int> > parsepT3 | ( | LSTEvent * | event, |
unsigned int | idx | ||
) |
Definition at line 854 of file write_lst_ntuple.cc.
References getHitIdxsFrompT3(), getHitTypesFrompT3(), getPixelLSFrompT3(), getT3FrompT3(), heavyIonCSV_trainingSettings::idx, ALPAKA_ACCELERATOR_NAMESPACE::lst::k2Rinv1GeVf, pLS, DiDispStaMuonMonitor_cfi::pt, and pT3.
Referenced by parseTrackCandidate().
std::tuple<float, float, float, std::vector<unsigned int>, std::vector<unsigned int> > parsepT5 | ( | LSTEvent * | event, |
unsigned int | idx | ||
) |
Definition at line 742 of file write_lst_ntuple.cc.
References __H2F, getHitIdxsFrompT5(), getHitTypesFrompT5(), getPixelLSFrompT5(), getT5FrompT5(), heavyIonCSV_trainingSettings::idx, ALPAKA_ACCELERATOR_NAMESPACE::lst::k2Rinv1GeVf, pLS, DiDispStaMuonMonitor_cfi::pt, and pT5.
Referenced by parseTrackCandidate().
std::tuple<float, float, float, std::vector<unsigned int>, std::vector<unsigned int> > parseT5 | ( | LSTEvent * | event, |
unsigned int | idx | ||
) |
Definition at line 889 of file write_lst_ntuple.cc.
References __H2F, ALPAKA_ACCELERATOR_NAMESPACE::lst::eta(), getHitIdxsFromT5(), getHitsFromT5(), getHitTypesFromT5(), hfClusterShapes_cfi::hits, heavyIonCSV_trainingSettings::idx, ALPAKA_ACCELERATOR_NAMESPACE::lst::k2Rinv1GeVf, Trktree::ph2_x(), Trktree::ph2_y(), Trktree::ph2_z(), ALPAKA_ACCELERATOR_NAMESPACE::lst::phi(), DiDispStaMuonMonitor_cfi::pt, T5, and trk.
Referenced by parseTrackCandidate().
std::tuple<int, float, float, float, int, std::vector<int> > parseTrackCandidate | ( | LSTEvent * | event, |
unsigned int | idx | ||
) |
Definition at line 711 of file write_lst_ntuple.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::lst::eta(), heavyIonCSV_trainingSettings::idx, matchedSimTrkIdxs(), parsepLS(), parsepT3(), parsepT5(), parseT5(), ALPAKA_ACCELERATOR_NAMESPACE::lst::phi(), pLS, DiDispStaMuonMonitor_cfi::pt, pT3, pT5, and T5.
Referenced by setOutputBranches().
void printAllObjects | ( | LSTEvent * | event | ) |
Definition at line 978 of file write_lst_ntuple.cc.
References printLSs(), printMDs(), printpLSs(), and printT3s().
void printHitMultiplicities | ( | LSTEvent * | event | ) |
Definition at line 944 of file write_lst_ntuple.cc.
References gather_cfg::cout, heavyIonCSV_trainingSettings::idx, and nHits.
void printLSs | ( | LSTEvent * | event | ) |
Definition at line 1009 of file write_lst_ntuple.cc.
References gather_cfg::cout, mps_fire::i, heavyIonCSV_trainingSettings::idx, and diffTwoXMLs::ranges.
Referenced by printAllObjects().
void printMDs | ( | LSTEvent * | event | ) |
Definition at line 986 of file write_lst_ntuple.cc.
References gather_cfg::cout, heavyIonCSV_trainingSettings::idx, and diffTwoXMLs::ranges.
Referenced by printAllObjects().
void printMiniDoubletMultiplicities | ( | LSTEvent * | event | ) |
Definition at line 959 of file write_lst_ntuple.cc.
References gather_cfg::cout, and heavyIonCSV_trainingSettings::idx.
void printpLSs | ( | LSTEvent * | event | ) |
Definition at line 1042 of file write_lst_ntuple.cc.
References gather_cfg::cout, mps_fire::i, heavyIonCSV_trainingSettings::idx, and diffTwoXMLs::ranges.
Referenced by printAllObjects().
void printT3s | ( | LSTEvent * | event | ) |
Definition at line 1073 of file write_lst_ntuple.cc.
References gather_cfg::cout, mps_fire::i, and heavyIonCSV_trainingSettings::idx.
Referenced by printAllObjects().
void setGnnNtupleBranches | ( | LSTEvent * | event | ) |
Definition at line 502 of file write_lst_ntuple.cc.
References ana, gather_cfg::cout, ALPAKA_ACCELERATOR_NAMESPACE::lst::eta(), RooUtil::TTreeX::getBranch(), lst_math::getCenterFromThreePoints(), getHitIdxsAndHitTypesFromLS(), getHitIdxsAndHitTypesFromTC(), getHitsFromLS(), getLSsFromTC(), getMDsFromLS(), hfClusterShapes_cfi::hits, heavyIonCSV_trainingSettings::idx, matchedSimTrkIdxs(), ALPAKA_ACCELERATOR_NAMESPACE::lst::phi(), DiDispStaMuonMonitor_cfi::pt, lst_math::ptEstimateFromRadius(), RooUtil::TTreeX::pushbackToBranch(), diffTwoXMLs::ranges, setGnnNtupleMiniDoublet(), Trktree::sim_bunchCrossing(), Trktree::sim_eta(), Trktree::sim_event(), Trktree::sim_parentVtxIdx(), Trktree::sim_pca_dxy(), Trktree::sim_pca_dz(), Trktree::sim_pdgId(), Trktree::sim_phi(), Trktree::sim_pt(), Trktree::sim_q(), Trktree::simvtx_x(), Trktree::simvtx_y(), Trktree::simvtx_z(), trk, and AnalysisConfig::tx.
Referenced by fillOutputBranches().
void setGnnNtupleMiniDoublet | ( | LSTEvent * | event, |
unsigned int | MD | ||
) |
Definition at line 643 of file write_lst_ntuple.cc.
References ana, hcalRecHitTable_cff::detId, ALPAKA_ACCELERATOR_NAMESPACE::lst::eta(), getDenomSimTrkType(), ALPAKA_ACCELERATOR_NAMESPACE::lst::k2Rinv1GeVf, matchedSimTrkIdxs(), Trktree::ph2_detId(), Trktree::ph2_layer(), Trktree::ph2_subdet(), Trktree::ph2_x(), Trktree::ph2_y(), Trktree::ph2_z(), ALPAKA_ACCELERATOR_NAMESPACE::lst::phi(), DiDispStaMuonMonitor_cfi::pt, RooUtil::TTreeX::pushbackToBranch(), funct::sin(), mathSSE::sqrt(), trk, and AnalysisConfig::tx.
Referenced by setGnnNtupleBranches().
void setOptionalOutputBranches | ( | LSTEvent * | event | ) |
Definition at line 281 of file write_lst_ntuple.cc.
References setPixelQuintupletOutputBranches(), setPixelTripletOutputBranches(), and setQuintupletOutputBranches().
Referenced by fillOutputBranches().
void setOutputBranches | ( | LSTEvent * | event | ) |
Definition at line 186 of file write_lst_ntuple.cc.
References ana, ALPAKA_ACCELERATOR_NAMESPACE::lst::eta(), mps_fire::i, heavyIonCSV_trainingSettings::idx, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::isDuplicate(), parseTrackCandidate(), ALPAKA_ACCELERATOR_NAMESPACE::lst::phi(), DiDispStaMuonMonitor_cfi::pt, RooUtil::TTreeX::pushbackToBranch(), RooUtil::TTreeX::setBranch(), Trktree::sim_bunchCrossing(), Trktree::sim_eta(), Trktree::sim_event(), Trktree::sim_parentVtxIdx(), Trktree::sim_pca_dxy(), Trktree::sim_pca_dz(), Trktree::sim_pdgId(), Trktree::sim_phi(), Trktree::sim_pt(), Trktree::sim_q(), tas::sim_TC_matched(), tas::sim_TC_matched_mask(), Trktree::simvtx_x(), Trktree::simvtx_y(), Trktree::simvtx_z(), tas::tc_isDuplicate(), tas::tc_matched_simIdx(), trk, and AnalysisConfig::tx.
Referenced by fillOutputBranches().
void setPixelQuintupletOutputBranches | ( | LSTEvent * | event | ) |
Definition at line 292 of file write_lst_ntuple.cc.
References __H2F, ana, ALPAKA_ACCELERATOR_NAMESPACE::lst::eta(), RooUtil::TTreeX::getBranch(), getHitIdxsFrompT5(), getHitTypesFrompT5(), getModuleIdxsFrompT5(), getPixelLSFrompT5(), getT5FrompT5(), mps_fire::i, heavyIonCSV_trainingSettings::idx, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::isDuplicate(), ALPAKA_ACCELERATOR_NAMESPACE::lst::k2Rinv1GeVf, matchedSimTrkIdxs(), ALPAKA_ACCELERATOR_NAMESPACE::lst::phi(), DiDispStaMuonMonitor_cfi::pt, pT5, tas::pT5_isDuplicate(), tas::pT5_matched_simIdx(), RooUtil::TTreeX::pushbackToBranch(), RooUtil::TTreeX::setBranch(), tas::sim_pT5_matched(), and AnalysisConfig::tx.
Referenced by setOptionalOutputBranches().
void setPixelTripletOutputBranches | ( | LSTEvent * | event | ) |
Definition at line 439 of file write_lst_ntuple.cc.
References ana, ALPAKA_ACCELERATOR_NAMESPACE::lst::eta(), RooUtil::TTreeX::getBranch(), getHitIdxsFrompT3(), getHitTypesFrompT3(), getModuleIdxsFrompT3(), getPixelLSFrompT3(), getT3FrompT3(), mps_fire::i, heavyIonCSV_trainingSettings::idx, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::isDuplicate(), matchedSimTrkIdxs(), ALPAKA_ACCELERATOR_NAMESPACE::lst::phi(), DiDispStaMuonMonitor_cfi::pt, pT3, tas::pT3_isDuplicate(), tas::pT3_matched_simIdx(), RooUtil::TTreeX::pushbackToBranch(), RooUtil::TTreeX::setBranch(), tas::sim_pT3_matched(), and AnalysisConfig::tx.
Referenced by setOptionalOutputBranches().
void setQuintupletOutputBranches | ( | LSTEvent * | event | ) |
Definition at line 367 of file write_lst_ntuple.cc.
References __H2F, ana, ALPAKA_ACCELERATOR_NAMESPACE::lst::eta(), RooUtil::TTreeX::getBranch(), getHitIdxsFromT5(), getHitTypesFromT5(), getModuleIdxsFromT5(), mps_fire::i, heavyIonCSV_trainingSettings::idx, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::isDuplicate(), ALPAKA_ACCELERATOR_NAMESPACE::lst::k2Rinv1GeVf, matchedSimTrkIdxs(), ALPAKA_ACCELERATOR_NAMESPACE::lst::phi(), DiDispStaMuonMonitor_cfi::pt, RooUtil::TTreeX::pushbackToBranch(), diffTwoXMLs::ranges, RooUtil::TTreeX::setBranch(), tas::t5_isDuplicate(), tas::t5_matched_simIdx(), and AnalysisConfig::tx.
Referenced by setOptionalOutputBranches().