#include <Shell.h>
Public Types | |
enum | SeedSelect_e { SS_UseAll = 0, SS_Label, SS_IndexPreCleaning, SS_IndexPostCleaning } |
Public Member Functions | |
MkBuilder * | builder () |
bool | CheckMkFitLayerPlanVsReferenceHits (const Track &mkft, const Track &reft, const std::string &name) |
void | Compare () |
EventOfHits * | eoh () |
Event * | event () |
void | FillByLabelMaps_CkfBase () |
void | GoToEvent (int eid) |
int | LabelFromHits (Track &t, bool replace, float good_frac) |
void | NextEvent (int skip=1) |
void | PrintIterations () |
void | ProcessEvent (SeedSelect_e seed_select=SS_UseAll, int selected_seed=-1, int count=1) |
void | Run () |
void | SelectIterationAlgo (int algo) |
void | SelectIterationIndex (int itidx) |
void | SetBackwardFit (bool b) |
void | SetCleanSeeds (bool b) |
void | SetDebug (bool b) |
void | SetRemoveDuplicates (bool b) |
void | SetUseDeadModules (bool b) |
Shell (std::vector< DeadVec > &dv, const std::string &in_file, int start_ev) | |
void | Status () |
Private Types | |
using | map_i = map_t::iterator |
using | map_t = std::map< int, Track * > |
Private Attributes | |
bool | m_backward_fit = true |
MkBuilder * | m_builder = nullptr |
std::map< int, Track * > | m_ckf_map |
bool | m_clean_seeds = true |
DataFile * | m_data_file = nullptr |
std::vector< DeadVec > & | m_deadvectors |
EventOfHits * | m_eoh = nullptr |
Event * | m_event = nullptr |
int | m_evs_in_file = -1 |
int | m_it_index = 0 |
std::map< int, Track * > | m_mkf_map |
bool | m_remove_duplicates = true |
std::map< int, Track * > | m_seed_map |
TrackVec | m_seeds |
std::map< int, Track * > | m_sim_map |
TrackVec | m_tracks |
|
private |
|
private |
Enumerator | |
---|---|
SS_UseAll | |
SS_Label | |
SS_IndexPreCleaning | |
SS_IndexPostCleaning |
mkfit::Shell::Shell | ( | std::vector< DeadVec > & | dv, |
const std::string & | in_file, | ||
int | start_ev | ||
) |
Definition at line 40 of file Shell.cc.
References mkfit::Config::backwardFit, GoToEvent(), runGCPTkAlMap::in_file, m_backward_fit, m_builder, m_data_file, m_eoh, m_event, m_evs_in_file, mkfit::DataFile::openRead(), mkfit::Config::silent, and mkfit::Config::TrkInfo.
|
inline |
bool mkfit::Shell::CheckMkFitLayerPlanVsReferenceHits | ( | const Track & | mkft, |
const Track & | reft, | ||
const std::string & | name | ||
) |
Definition at line 419 of file Shell.cc.
References mkfit::TrackBase::getEtaRegion(), mkfit::Track::getHitOnTrack(), mkfit::Config::ItrInfo, mkfit::TrackBase::label(), m_it_index, mkfit::IterationConfig::m_steering_params, Skims_PA_cff::name, mkfit::Track::nTotalHits(), runTheMatrix::ret, and x.
Referenced by Compare().
void mkfit::Shell::Compare | ( | ) |
Definition at line 442 of file Shell.cc.
References mkfit::TrackBase::algoint_to_cstr(), CheckMkFitLayerPlanVsReferenceHits(), makeMEIFBenchmarkPlots::ev, FillByLabelMaps_CkfBase(), mkfit::IterationConfig::get_seed_partitioner(), mkfit::HitOnTrack::index, mkfit::Config::ItrInfo, MainPageGenerator::l, mkfit::HitOnTrack::layer, m_ckf_map, m_eoh, m_event, m_it_index, m_mkf_map, m_seed_map, m_seeds, m_sim_map, mkfit::IterationConfig::m_track_algorithm, mkfit::print(), singleTopDQM_cfi::select, mkfit::Config::TrkInfo, and funct::void.
|
inline |
void mkfit::Shell::FillByLabelMaps_CkfBase | ( | ) |
Definition at line 354 of file Shell.cc.
References mkfit::TrackBase::algoint_to_cstr(), makeMEIFBenchmarkPlots::ev, createfilelist::int, mkfit::Config::ItrInfo, label, LabelFromHits(), m_ckf_map, m_event, m_it_index, m_mkf_map, m_seed_map, m_seeds, m_sim_map, m_tracks, and submitPVValidationJobs::t.
Referenced by Compare().
void mkfit::Shell::GoToEvent | ( | int | eid | ) |
Definition at line 87 of file Shell.cc.
References runTauDisplay::eid, mkfit::Event::evtID(), mkfit::StdSeq::loadDeads(), mkfit::StdSeq::loadHitsAndBeamSpot(), m_data_file, m_deadvectors, m_eoh, m_event, m_evs_in_file, mkfit::Event::read_in(), mkfit::Event::reset(), mkfit::DataFile::rewind(), mkfit::DataFile::skipNEvents(), submitPVResolutionJobs::stderr, and mkfit::Config::useDeadModules.
Referenced by NextEvent(), and Shell().
int mkfit::Shell::LabelFromHits | ( | Track & | t, |
bool | replace, | ||
float | good_frac | ||
) |
Definition at line 327 of file Shell.cc.
References h, mkfit::Event::layerHits_, m_event, python.rootplot.root2matplotlib::replace(), mkfit::Event::simHitsInfo_, summarizeEdmComparisonLogfiles::success, submitPVValidationJobs::t, and x.
Referenced by FillByLabelMaps_CkfBase().
void mkfit::Shell::NextEvent | ( | int | skip = 1 | ) |
Definition at line 116 of file Shell.cc.
References mkfit::Event::evtID(), GoToEvent(), m_event, and optionsL1T::skip.
void mkfit::Shell::PrintIterations | ( | ) |
Definition at line 298 of file Shell.cc.
References mkfit::TrackBase::algoint_to_cstr(), hltPFPuppi_cfi::algos, mps_fire::i, and m_it_index.
void mkfit::Shell::ProcessEvent | ( | SeedSelect_e | seed_select = SS_UseAll , |
int | selected_seed = -1 , |
||
int | count = 1 |
||
) |
Definition at line 120 of file Shell.cc.
References mkfit::MkBuilder::backwardFit(), mkfit::MkBuilder::begin_event(), mkfit::MkBuilder::beginBkwSearch(), builder(), mkfit::MkBuilder::compactifyHitStorageForBestCand(), submitPVResolutionJobs::count, mkfit::MkBuilder::end_event(), mkfit::MkBuilder::endBkwSearch(), eoh(), mkfit::MkBuilder::export_best_comb_cands(), mkfit::Event::fill_hitmask_bool_vectors(), mkfit::MkBuilder::filter_comb_cands(), mkfit::MkBuilder::find_tracks_load_seeds(), mkfit::MkBuilder::findTracksCloneEngine(), mps_fire::i, createfilelist::int, mkfit::SteeringParams::IT_BkwSearch, mkfit::Config::ItrInfo, mkfit::IterationConfig::m_backward_drop_seed_hits, m_backward_fit, mkfit::IterationConfig::m_backward_fit_min_hits, mkfit::IterationConfig::m_backward_search, m_builder, m_clean_seeds, mkfit::IterationConfig::m_duplicate_cleaner, m_eoh, m_event, m_it_index, mkfit::IterationMaskIfc::m_mask_vector, mkfit::IterationConfig::m_post_bkfit_filter, mkfit::IterationConfig::m_pre_bkfit_filter, m_remove_duplicates, mkfit::IterationConfig::m_requires_seed_hit_sorting, mkfit::IterationConfig::m_seed_cleaner, m_seeds, mkfit::IterationConfig::m_track_algorithm, m_tracks, mkfit::MkBuilder::ref_eocc(), mkfit::EventOfHits::refBeamSpot(), alignCSCRings::s, mkfit::MkBuilder::seed_post_cleaning(), DetachedQuadStep_cff::seeds, mkfit::Event::seedTracks_, mkfit::EventOfCombCandidates::size(), SS_IndexPostCleaning, SS_IndexPreCleaning, SS_Label, SS_UseAll, and mkfit::Config::TrkInfo.
void mkfit::Shell::Run | ( | ) |
Definition at line 55 of file Shell.cc.
References dir2webdir::argc, GCPpyPlots::argv, visDQMUpload::buf, and beamvalidation::exit().
void mkfit::Shell::SelectIterationAlgo | ( | int | algo | ) |
Definition at line 287 of file Shell.cc.
References hltPFPuppi_cfi::algos, mps_fire::i, m_it_index, and submitPVResolutionJobs::stderr.
void mkfit::Shell::SelectIterationIndex | ( | int | itidx | ) |
void mkfit::Shell::SetBackwardFit | ( | bool | b | ) |
void mkfit::Shell::SetCleanSeeds | ( | bool | b | ) |
void mkfit::Shell::SetDebug | ( | bool | b | ) |
void mkfit::Shell::SetRemoveDuplicates | ( | bool | b | ) |
void mkfit::Shell::SetUseDeadModules | ( | bool | b | ) |
void mkfit::Shell::Status | ( | ) |
Definition at line 74 of file Shell.cc.
References mkfit::TrackBase::algoint_to_cstr(), hltPFPuppi_cfi::algos, mkfit::Event::evtID(), mkfit::g_debug, m_backward_fit, m_clean_seeds, m_event, m_it_index, m_remove_duplicates, and mkfit::Config::useDeadModules.
|
private |
Definition at line 65 of file Shell.h.
Referenced by ProcessEvent(), SetBackwardFit(), Shell(), and Status().
|
private |
Definition at line 61 of file Shell.h.
Referenced by builder(), ProcessEvent(), and Shell().
|
private |
Definition at line 74 of file Shell.h.
Referenced by Compare(), and FillByLabelMaps_CkfBase().
|
private |
Definition at line 64 of file Shell.h.
Referenced by ProcessEvent(), SetCleanSeeds(), and Status().
|
private |
Definition at line 58 of file Shell.h.
Referenced by GoToEvent(), and Shell().
|
private |
Definition at line 57 of file Shell.h.
Referenced by GoToEvent().
|
private |
Definition at line 60 of file Shell.h.
Referenced by Compare(), eoh(), GoToEvent(), ProcessEvent(), and Shell().
|
private |
Definition at line 59 of file Shell.h.
Referenced by Compare(), event(), FillByLabelMaps_CkfBase(), GoToEvent(), LabelFromHits(), NextEvent(), ProcessEvent(), Shell(), and Status().
|
private |
Definition at line 62 of file Shell.h.
Referenced by GoToEvent(), and Shell().
|
private |
Definition at line 63 of file Shell.h.
Referenced by CheckMkFitLayerPlanVsReferenceHits(), Compare(), FillByLabelMaps_CkfBase(), PrintIterations(), ProcessEvent(), SelectIterationAlgo(), SelectIterationIndex(), and Status().
|
private |
Definition at line 74 of file Shell.h.
Referenced by Compare(), and FillByLabelMaps_CkfBase().
|
private |
Definition at line 66 of file Shell.h.
Referenced by ProcessEvent(), SetRemoveDuplicates(), and Status().
|
private |
Definition at line 74 of file Shell.h.
Referenced by Compare(), and FillByLabelMaps_CkfBase().
|
private |
Definition at line 68 of file Shell.h.
Referenced by Compare(), FillByLabelMaps_CkfBase(), and ProcessEvent().
|
private |
Definition at line 74 of file Shell.h.
Referenced by Compare(), and FillByLabelMaps_CkfBase().
|
private |
Definition at line 69 of file Shell.h.
Referenced by FillByLabelMaps_CkfBase(), and ProcessEvent().