#include <Event.h>
Classes | |
struct | SimLabelFromHits |
Public Member Functions | |
int | clean_cms_seedtracks (TrackVec *seed_ptr=nullptr) |
int | clean_cms_seedtracks_badlabel () |
int | clean_cms_simtracks () |
const Track & | currentSeed (int i) const |
Event (int evtID, int nLayers) | |
Event (Validation &v, int evtID, int nLayers) | |
int | evtID () const |
void | fill_hitmask_bool_vectors (int track_algo, std::vector< std::vector< bool >> &layer_masks) |
void | fill_hitmask_bool_vectors (std::vector< int > &track_algo_vec, std::vector< std::vector< bool >> &layer_masks) |
void | kludge_cms_hit_errors () |
void | print_tracks (const TrackVec &tracks, bool print_hits) const |
void | printStats (const TrackVec &, TrackExtraVec &) |
void | read_in (DataFile &data_file, FILE *in_fp=0) |
int | read_tracks (FILE *fp, TrackVec &tracks, bool skip_reading=false) |
void | relabel_bad_seedtracks () |
void | relabel_cmsswtracks_from_seeds () |
void | reset (int evtID) |
void | resetCurrentSeedTracks () |
void | resetLayerHitMap (bool resetSimHits) |
int | select_tracks_iter (unsigned int n=0) |
void | setCurrentSeedTracks (const TrackVec &seeds) |
void | setInputFromCMSSW (std::vector< HitVec > hits, TrackVec seeds) |
SimLabelFromHits | simLabelForCurrentSeed (int i) const |
int | use_seeds_from_cmsswtracks () |
void | validate () |
void | write_out (DataFile &data_file) |
int | write_tracks (FILE *fp, const TrackVec &tracks) |
Public Attributes | |
BeamSpot | beamSpot_ |
TrackVec | candidateTracks_ |
TrackExtraVec | candidateTracksExtra_ |
TrackVec | cmsswTracks_ |
TrackExtraVec | cmsswTracksExtra_ |
TrackVec | fitTracks_ |
TrackExtraVec | fitTracksExtra_ |
std::vector< std::vector< uint64_t > > | layerHitMasks_ |
std::vector< HitVec > | layerHits_ |
TrackVec | seedTracks_ |
TrackExtraVec | seedTracksExtra_ |
MCHitInfoVec | simHitsInfo_ |
TrackVec | simTracks_ |
TrackExtraVec | simTracksExtra_ |
TSVec | simTrackStates_ |
Validation & | validation_ |
Static Public Attributes | |
static std::mutex | printmutex |
Private Attributes | |
std::vector< SimLabelFromHits > | currentSeedSimFromHits_ |
const TrackVec * | currentSeedTracks_ = nullptr |
int | evtID_ |
|
explicit |
Definition at line 22 of file Event.cc.
References layerHitMasks_, layerHits_, and MuonTCMETValueMapProducer_cff::nLayers.
Event::Event | ( | Validation & | v, |
int | evtID, | ||
int | nLayers | ||
) |
Definition at line 27 of file Event.cc.
References layerHitMasks_, layerHits_, MuonTCMETValueMapProducer_cff::nLayers, mkfit::Validation::resetValidationMaps(), and validation_.
int Event::clean_cms_seedtracks | ( | TrackVec * | seed_ptr = nullptr | ) |
Definition at line 592 of file Event.cc.
References funct::abs(), mkfit::Config::c_dpt_common, mkfit::Config::c_drmax_brl, mkfit::Config::c_drmax_els, mkfit::Config::c_drmax_hpt, mkfit::Config::c_dzmax_brl, mkfit::Config::c_dzmax_els, mkfit::Config::c_dzmax_hpt, mkfit::Config::c_etamax_brl, mkfit::Config::c_ptmin_hpt, mkfit::cdist(), ALCARECOTkAlJpsiMuMu_cff::charge, mkfit::TrackBase::charge(), PVValHelper::eta, calostep_cfi::Eta1, f, mkfit::TrackBase::invpT(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, mkfit::TrackBase::momEta(), mkfit::TrackBase::momPhi(), mkfit::Track::nFoundHits(), nHits, funct::pow(), DiDispStaMuonMonitor_cfi::pt, mkfit::TrackBase::pT(), HLT_2024v10_cff::seeds, seedTracks_, mathSSE::sqrt(), contentValuesCheck::ss, funct::tan(), mkfit::TrackBase::theta(), mkfit::Config::track1GeVradius, x, mkfit::TrackBase::x(), mkfit::TrackBase::y(), and mkfit::TrackBase::z().
int Event::clean_cms_seedtracks_badlabel | ( | ) |
Definition at line 768 of file Event.cc.
References visDQMUpload::buf, seedTracks_, and submitPVValidationJobs::t.
int Event::clean_cms_simtracks | ( | ) |
Definition at line 511 of file Event.cc.
References mkfit::Config::cmsSelMinLayers, dprintf, mps_fire::i, simTracks_, and submitPVValidationJobs::t.
const Track & Event::currentSeed | ( | int | i | ) | const |
Definition at line 866 of file Event.cc.
References currentSeedTracks_, and mps_fire::i.
Referenced by mkfit::MkFinder::selectHitIndices(), and simLabelForCurrentSeed().
|
inline |
Definition at line 23 of file Event.h.
References evtID_.
Referenced by mkfit::MkFinder::begin_layer(), mkfit::MkFinder::bkFitFitTracks(), mkfit::MkBuilder::fit_cands_BH(), mkfit::Shell::GoToEvent(), mkfit::Shell::NextEvent(), reset(), mkfit::MkFinder::selectHitIndices(), and mkfit::Shell::Status().
void Event::fill_hitmask_bool_vectors | ( | int | track_algo, |
std::vector< std::vector< bool >> & | layer_masks | ||
) |
Definition at line 819 of file Event.cc.
References mps_fire::i, createfilelist::int, MainPageGenerator::l, layerHitMasks_, and layerHits_.
Referenced by mkfit::Shell::ProcessEvent().
void Event::fill_hitmask_bool_vectors | ( | std::vector< int > & | track_algo_vec, |
std::vector< std::vector< bool >> & | layer_masks | ||
) |
Definition at line 838 of file Event.cc.
References mps_fire::i, createfilelist::int, MainPageGenerator::l, layerHitMasks_, and layerHits_.
void Event::kludge_cms_hit_errors | ( | ) |
Definition at line 476 of file Event.cc.
References HltBtagPostValidation_cff::c, MillePedeFileConverter_cfg::e, relativeConstraints::empty, h, and layerHits_.
Referenced by read_in().
void Event::print_tracks | ( | const TrackVec & | tracks, |
bool | print_hits | ||
) | const |
Definition at line 553 of file Event.cc.
References mkfit::IterationConfig::get_track_scorer(), mkfit::getScoreCand(), heavyIonCSV_trainingSettings::idx, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, layerHits_, nt, simHitsInfo_, submitPVValidationJobs::t, and DiMuonV_cfg::tracks.
void Event::printStats | ( | const TrackVec & | trks, |
TrackExtraVec & | trkextras | ||
) |
Definition at line 91 of file Event.cc.
References gather_cfg::cout, newFWLiteAna::found, layerHits_, simHitsInfo_, simTracks_, and hltEgammaHLTExtra_cfi::trks.
void Event::read_in | ( | DataFile & | data_file, |
FILE * | in_fp = 0 |
||
) |
Definition at line 207 of file Event.cc.
References mkfit::DataFile::advancePosToNextEvent(), beamSpot_, mkfit::cmsswSeeds, cmsswTracks_, dumpMFGeometry_cfg::delta, relativeConstraints::empty, mkfit::DataFile::f_fp, personalPlayback::fp, mkfit::ModuleInfo::half_length, mkfit::DataFile::hasBeamSpot(), mkfit::DataFile::hasCmsswTracks(), mkfit::DataFile::hasHitIterMasks(), mkfit::DataFile::hasSeeds(), mkfit::DataFile::hasSimTrackStates(), heavyIonCSV_trainingSettings::idx, createfilelist::int, mkfit::LayerInfo::is_barrel(), mkfit::LayerInfo::is_pixel(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, kludge_cms_hit_errors(), mkfit::Config::kludgeCmsHitErrors, layerHitMasks_, layerHits_, SiStripPI::max, SiStripPI::min, mkfit::LayerInfo::module_info(), cms::cuda::nh, nt, mkfit::Config::nTracks, read_tracks(), mkfit::Config::readCmsswTracks, mkfit::Config::seedInput, seedTracks_, mkfit::Config::silent, simHitsInfo_, simTracks_, simTrackStates_, mathSSE::sqrt(), contentValuesCheck::ss, submitPVValidationJobs::t, mkfit::Config::TrkInfo, funct::void, x, hit::x, hit::y, and hit::z.
Referenced by mkfit::Shell::GoToEvent().
int Event::read_tracks | ( | FILE * | fp, |
TrackVec & | tracks, | ||
bool | skip_reading = false |
||
) |
Definition at line 443 of file Event.cc.
References personalPlayback::fp, mps_fire::i, and DiMuonV_cfg::tracks.
Referenced by read_in().
void Event::relabel_bad_seedtracks | ( | ) |
void Event::relabel_cmsswtracks_from_seeds | ( | ) |
void Event::reset | ( | int | evtID | ) |
Definition at line 33 of file Event.cc.
References beamSpot_, candidateTracks_, candidateTracksExtra_, cmsswTracks_, cmsswTracksExtra_, evtID(), evtID_, fitTracks_, fitTracksExtra_, MainPageGenerator::l, layerHitMasks_, layerHits_, mkfit::Validation::resetValidationMaps(), seedTracks_, seedTracksExtra_, simHitsInfo_, simTracks_, simTracksExtra_, simTrackStates_, and validation_.
Referenced by mkfit::Shell::GoToEvent().
void Event::resetCurrentSeedTracks | ( | ) |
Definition at line 910 of file Event.cc.
References currentSeedSimFromHits_, and currentSeedTracks_.
Referenced by mkfit::Shell::ProcessEvent().
void mkfit::Event::resetLayerHitMap | ( | bool | resetSimHits | ) |
int Event::select_tracks_iter | ( | unsigned int | n = 0 | ) |
Definition at line 732 of file Event.cc.
References mkfit::TrackBase::algorithm(), analysisFilters_cff::algorithms, cmsswTracks_, spr::find(), createfilelist::int, dqmiodumpmetadata::n, nt, and seedTracks_.
void Event::setCurrentSeedTracks | ( | const TrackVec & | seeds | ) |
Definition at line 865 of file Event.cc.
References currentSeedTracks_, and HLT_2024v10_cff::seeds.
Referenced by mkfit::Shell::ProcessEvent().
Definition at line 469 of file Event.cc.
References hfClusterShapes_cfi::hits, layerHits_, eostools::move(), HLT_2024v10_cff::seeds, and seedTracks_.
Event::SimLabelFromHits Event::simLabelForCurrentSeed | ( | int | i | ) | const |
Definition at line 868 of file Event.cc.
References cms::cuda::assert(), currentSeed(), currentSeedSimFromHits_, currentSeedTracks_, h, mps_fire::i, createfilelist::int, layerHits_, alignCSCRings::s, simHitsInfo_, and x.
Referenced by mkfit::MkFinder::selectHitIndices(), and mkfit::MkFinder::selectHitIndicesV2().
int Event::use_seeds_from_cmsswtracks | ( | ) |
void Event::validate | ( | ) |
Definition at line 60 of file Event.cc.
References mkfit::Config::cmssw_val, mkfit::Validation::fillCMSSWEfficiencyTree(), mkfit::Validation::fillCMSSWFakeRateTree(), mkfit::Validation::fillEfficiencyTree(), mkfit::Validation::fillFakeRateTree(), mkfit::Validation::fillFitTree(), mkfit::Config::fit_val, mkfit::Validation::makeCMSSWTkToRecoTksMaps(), mkfit::Validation::makeCMSSWTkToSeedTkMap(), mkfit::Validation::makeRecoTkToRecoTkMaps(), mkfit::Validation::makeRecoTkToSeedTkMapsDumbCMSSW(), mkfit::Validation::makeSeedTkToRecoTkMaps(), mkfit::Validation::makeSimTkToRecoTksMaps(), mkfit::Validation::setTrackExtras(), mkfit::Validation::setTrackScoresDumbCMSSW(), mkfit::Config::sim_val, mkfit::Config::sim_val_for_cmssw, and validation_.
void Event::write_out | ( | DataFile & | data_file | ) |
Definition at line 118 of file Event.cc.
References cms::cuda::assert(), align::BeamSpot, beamSpot_, cmsswTracks_, mkfit::DataFile::f_fp, personalPlayback::fp, mkfit::DataFile::hasBeamSpot(), mkfit::DataFile::hasCmsswTracks(), mkfit::DataFile::hasHitIterMasks(), mkfit::DataFile::hasSeeds(), mkfit::DataFile::hasSimTrackStates(), createfilelist::int, layerHitMasks_, layerHits_, mutex, cms::cuda::nh, seedTracks_, simHitsInfo_, simTracks_, simTrackStates_, and write_tracks().
int Event::write_tracks | ( | FILE * | fp, |
const TrackVec & | tracks | ||
) |
Definition at line 419 of file Event.cc.
References personalPlayback::fp, mps_fire::i, createfilelist::int, and DiMuonV_cfg::tracks.
Referenced by write_out().
BeamSpot mkfit::Event::beamSpot_ |
Definition at line 69 of file Event.h.
Referenced by read_in(), reset(), and write_out().
TrackVec mkfit::Event::candidateTracks_ |
|
mutable |
TrackVec mkfit::Event::cmsswTracks_ |
Definition at line 75 of file Event.h.
Referenced by read_in(), relabel_cmsswtracks_from_seeds(), reset(), select_tracks_iter(), use_seeds_from_cmsswtracks(), and write_out().
|
mutable |
|
mutableprivate |
Definition at line 66 of file Event.h.
Referenced by resetCurrentSeedTracks(), and simLabelForCurrentSeed().
|
private |
Definition at line 65 of file Event.h.
Referenced by currentSeed(), resetCurrentSeedTracks(), setCurrentSeedTracks(), and simLabelForCurrentSeed().
|
private |
|
mutable |
std::vector<std::vector<uint64_t> > mkfit::Event::layerHitMasks_ |
Definition at line 71 of file Event.h.
Referenced by Event(), fill_hitmask_bool_vectors(), read_in(), reset(), and write_out().
std::vector<HitVec> mkfit::Event::layerHits_ |
Definition at line 70 of file Event.h.
Referenced by Event(), fill_hitmask_bool_vectors(), kludge_cms_hit_errors(), mkfit::Shell::LabelFromHits(), print_tracks(), printStats(), read_in(), reset(), setInputFromCMSSW(), simLabelForCurrentSeed(), and write_out().
|
static |
Definition at line 81 of file Event.h.
Referenced by mkfit::StdSeq::Quality::quality_print(), mkfit::StdSeq::Quality::quality_process(), and test_standard().
TrackVec mkfit::Event::seedTracks_ |
Definition at line 74 of file Event.h.
Referenced by clean_cms_seedtracks(), clean_cms_seedtracks_badlabel(), mkfit::Shell::ProcessEvent(), read_in(), relabel_bad_seedtracks(), relabel_cmsswtracks_from_seeds(), reset(), select_tracks_iter(), setInputFromCMSSW(), use_seeds_from_cmsswtracks(), and write_out().
|
mutable |
MCHitInfoVec mkfit::Event::simHitsInfo_ |
Definition at line 72 of file Event.h.
Referenced by mkfit::MkFinder::bkFitFitTracks(), mkfit::Shell::LabelFromHits(), print_tracks(), printStats(), read_in(), reset(), mkfit::MkFinder::selectHitIndices(), simLabelForCurrentSeed(), and write_out().
TrackVec mkfit::Event::simTracks_ |
Definition at line 74 of file Event.h.
Referenced by clean_cms_simtracks(), printStats(), read_in(), reset(), mkfit::MkFinder::selectHitIndices(), and write_out().
|
mutable |
TSVec mkfit::Event::simTrackStates_ |
Definition at line 80 of file Event.h.
Referenced by read_in(), reset(), and write_out().
Validation& mkfit::Event::validation_ |
Definition at line 50 of file Event.h.
Referenced by Event(), reset(), and validate().