#include <Event.h>
Public Member Functions | |
int | clean_cms_seedtracks (TrackVec *seed_ptr=nullptr) |
int | clean_cms_seedtracks_badlabel () |
int | clean_cms_simtracks () |
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 | resetLayerHitMap (bool resetSimHits) |
int | select_tracks_iter (unsigned int n=0) |
void | setInputFromCMSSW (std::vector< HitVec > hits, TrackVec seeds) |
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 | |
int | evtID_ |
|
explicit |
Definition at line 21 of file Event.cc.
References layerHitMasks_, and layerHits_.
Event::Event | ( | Validation & | v, |
int | evtID, | ||
int | nLayers | ||
) |
Definition at line 26 of file Event.cc.
References layerHitMasks_, layerHits_, mkfit::Validation::resetValidationMaps(), and validation_.
int Event::clean_cms_seedtracks | ( | TrackVec * | seed_ptr = nullptr | ) |
Definition at line 578 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(), RecoTauCleanerPlugins::charge, mkfit::TrackBase::charge(), PVValHelper::eta, validate-o2o-wbm::f, mkfit::TrackBase::invpT(), mkfit::TrackBase::label(), mkfit::TrackBase::momEta(), mkfit::TrackBase::momPhi(), mkfit::Track::nFoundHits(), nHits, funct::pow(), gpuVertexFinder::printf(), DiDispStaMuonMonitor_cfi::pt, mkfit::TrackBase::pT(), DetachedQuadStep_cff::seeds, seedTracks_, mathSSE::sqrt(), contentValuesCheck::ss, funct::tan(), mkfit::TrackBase::theta(), mkfit::Config::track1GeVradius, mkfit::TrackBase::x(), mkfit::TrackBase::y(), and mkfit::TrackBase::z().
int Event::clean_cms_seedtracks_badlabel | ( | ) |
Definition at line 754 of file Event.cc.
References visDQMUpload::buf, gpuVertexFinder::printf(), seedTracks_, and submitPVValidationJobs::t.
int Event::clean_cms_simtracks | ( | ) |
Definition at line 497 of file Event.cc.
References mkfit::Config::cmsSelMinLayers, dprintf, mps_fire::i, simTracks_, and submitPVValidationJobs::t.
|
inline |
Definition at line 23 of file Event.h.
References evtID_.
Referenced by mkfit::TTreeValidation::fillCMSSWEfficiencyTree(), mkfit::TTreeValidation::fillCMSSWFakeRateTree(), mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), mkfit::TTreeValidation::fillFitTree(), mkfit::MkBuilder::fit_cands_BH(), and reset().
void Event::fill_hitmask_bool_vectors | ( | int | track_algo, |
std::vector< std::vector< bool >> & | layer_masks | ||
) |
Definition at line 805 of file Event.cc.
References mps_fire::i, cmsLHEtoEOSManager::l, layerHitMasks_, layerHits_, and findQualityFiles::size.
Referenced by mkfit::runBtpCe_MultiIter(), mkfit::runBuildingTestPlexBestHit(), mkfit::runBuildingTestPlexCloneEngine(), and mkfit::runBuildingTestPlexStandard().
void Event::fill_hitmask_bool_vectors | ( | std::vector< int > & | track_algo_vec, |
std::vector< std::vector< bool >> & | layer_masks | ||
) |
Definition at line 824 of file Event.cc.
References mps_fire::i, cmsLHEtoEOSManager::l, layerHitMasks_, layerHits_, and findQualityFiles::size.
void Event::kludge_cms_hit_errors | ( | ) |
Definition at line 462 of file Event.cc.
References c, alignCSCRings::e, relativeConstraints::empty, h, layerHits_, and gpuVertexFinder::printf().
Referenced by read_in().
void Event::print_tracks | ( | const TrackVec & | tracks, |
bool | print_hits | ||
) | const |
Definition at line 539 of file Event.cc.
References mkfit::TrackBase::charge(), mkfit::TrackBase::chi2(), mkfit::Track::getHitIdx(), mkfit::Track::getHitLyr(), mkfit::getScoreCand(), mkfit::TrackBase::isFindable(), mkfit::TrackBase::label(), layerHits_, mkfit::Hit::mcHitID(), mkfit::Hit::mcTrackID(), mkfit::TrackBase::momEta(), mkfit::Track::nFoundHits(), nt, mkfit::Track::nTotalHits(), gpuVertexFinder::printf(), mkfit::TrackBase::pT(), alignCSCRings::r, simHitsInfo_, and submitPVValidationJobs::t.
void Event::printStats | ( | const TrackVec & | trks, |
TrackExtraVec & | trkextras | ||
) |
Definition at line 90 of file Event.cc.
References gather_cfg::cout, newFWLiteAna::found, layerHits_, simHitsInfo_, and simTracks_.
void Event::read_in | ( | DataFile & | data_file, |
FILE * | in_fp = 0 |
||
) |
Definition at line 206 of file Event.cc.
References mkfit::DataFile::advancePosToNextEvent(), mkfit::TrackBase::algorithm(), beamSpot_, mkfit::TrackBase::charge(), mkfit::cmsswSeeds, cmsswTracks_, relativeConstraints::empty, mkfit::Hit::exx(), mkfit::Hit::eyy(), mkfit::Hit::ezz(), mkfit::DataFile::f_fp, personalPlayback::fp, mkfit::Track::getHitIdx(), mkfit::Track::getHitLyr(), mkfit::DataFile::hasBeamSpot(), mkfit::DataFile::hasCmsswTracks(), mkfit::DataFile::hasHitIterMasks(), mkfit::DataFile::hasSeeds(), mkfit::DataFile::hasSimTrackStates(), kludge_cms_hit_errors(), mkfit::Config::kludgeCmsHitErrors, mkfit::TrackBase::label(), layerHitMasks_, layerHits_, mkfit::Hit::mcHitID(), mkfit::Hit::mcTrackID(), mkfit::TrackBase::momEta(), mkfit::Track::nFoundHits(), cms::cuda::nh, nt, mkfit::Track::nTotalHits(), mkfit::Config::nTracks, gpuVertexFinder::printf(), mkfit::TrackBase::pT(), alignCSCRings::r, mkfit::Hit::r(), read_tracks(), mkfit::Config::readCmsswTracks, mkfit::Config::seedInput, seedTracks_, mkfit::Config::silent, simHitsInfo_, simTracks_, simTrackStates_, findQualityFiles::size, mathSSE::sqrt(), contentValuesCheck::ss, submitPVValidationJobs::t, mkfit::Hit::x(), mkfit::Hit::y(), and mkfit::Hit::z().
int Event::read_tracks | ( | FILE * | fp, |
TrackVec & | tracks, | ||
bool | skip_reading = false |
||
) |
Definition at line 429 of file Event.cc.
References mps_fire::i.
Referenced by read_in().
void Event::relabel_bad_seedtracks | ( | ) |
Definition at line 778 of file Event.cc.
References seedTracks_, and HLT_FULL_cff::track.
Referenced by mkfit::runBtpCe_MultiIter(), mkfit::runBuildingTestPlexBestHit(), mkfit::runBuildingTestPlexCloneEngine(), and mkfit::runBuildingTestPlexStandard().
void Event::relabel_cmsswtracks_from_seeds | ( | ) |
void Event::reset | ( | int | evtID | ) |
Definition at line 32 of file Event.cc.
References beamSpot_, candidateTracks_, candidateTracksExtra_, cmsswTracks_, cmsswTracksExtra_, evtID(), evtID_, fitTracks_, fitTracksExtra_, cmsLHEtoEOSManager::l, layerHitMasks_, layerHits_, mkfit::Validation::resetValidationMaps(), seedTracks_, seedTracksExtra_, simHitsInfo_, simTracks_, simTracksExtra_, simTrackStates_, and validation_.
Referenced by main().
void mkfit::Event::resetLayerHitMap | ( | bool | resetSimHits | ) |
int Event::select_tracks_iter | ( | unsigned int | n = 0 | ) |
Definition at line 718 of file Event.cc.
References mkfit::TrackBase::algorithm(), cmsswTracks_, spr::find(), nt, and seedTracks_.
int Event::use_seeds_from_cmsswtracks | ( | ) |
void Event::validate | ( | ) |
Definition at line 59 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_.
Referenced by mkfit::runFittingTestPlex().
void Event::write_out | ( | DataFile & | data_file | ) |
Definition at line 117 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(), layerHitMasks_, layerHits_, mutex, cms::cuda::nh, seedTracks_, simHitsInfo_, simTracks_, simTrackStates_, findQualityFiles::size, command_line::start, and write_tracks().
Referenced by main().
int Event::write_tracks | ( | FILE * | fp, |
const TrackVec & | tracks | ||
) |
Definition at line 405 of file Event.cc.
References mps_fire::i, and command_line::start.
Referenced by write_out().
BeamSpot mkfit::Event::beamSpot_ |
Definition at line 56 of file Event.h.
Referenced by mkfit::StdSeq::loadHitsAndBeamSpot(), main(), read_in(), reset(), and write_out().
TrackVec mkfit::Event::candidateTracks_ |
Definition at line 61 of file Event.h.
Referenced by mkfit::TTreeValidation::fillCMSSWEfficiencyTree(), mkfit::TTreeValidation::fillCMSSWFakeRateTree(), mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), mkfit::StdSeq::handle_duplicates(), mkfit::TTreeValidation::makeCMSSWTkToRecoTksMaps(), mkfit::TTreeValidation::makeRecoTkToRecoTkMaps(), mkfit::TTreeValidation::makeSeedTkToRecoTkMaps(), mkfit::TTreeValidation::makeSimTkToRecoTksMaps(), mkfit::StdSeq::prep_recotracks(), mkfit::StdSeq::Quality::quality_val(), reset(), mkfit::StdSeq::root_val(), mkfit::runBtpCe_MultiIter(), mkfit::runBuildingTestPlexBestHit(), mkfit::runBuildingTestPlexCloneEngine(), mkfit::runBuildingTestPlexStandard(), mkfit::TTreeValidation::setTrackExtras(), mkfit::TTreeValidation::setTrackScoresDumbCMSSW(), and mkfit::TTreeValidation::storeSeedAndMCID().
|
mutable |
Definition at line 64 of file Event.h.
Referenced by mkfit::TTreeValidation::fillCMSSWEfficiencyTree(), mkfit::TTreeValidation::fillCMSSWFakeRateTree(), mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), mkfit::TTreeValidation::makeCMSSWTkToRecoTksMaps(), mkfit::TTreeValidation::makeRecoTkToRecoTkMaps(), mkfit::TTreeValidation::makeRecoTkToSeedTkMapsDumbCMSSW(), mkfit::TTreeValidation::makeSeedTkToRecoTkMaps(), mkfit::TTreeValidation::makeSimTkToRecoTksMaps(), mkfit::StdSeq::prep_recotracks(), reset(), mkfit::TTreeValidation::setTrackExtras(), and mkfit::TTreeValidation::storeSeedAndMCID().
TrackVec mkfit::Event::cmsswTracks_ |
Definition at line 62 of file Event.h.
Referenced by mkfit::TTreeValidation::fillCMSSWEfficiencyTree(), mkfit::TTreeValidation::fillCMSSWFakeRateTree(), main(), mkfit::TTreeValidation::makeSeedTkToCMSSWTkMap(), mkfit::StdSeq::prep_cmsswtracks(), read_in(), relabel_cmsswtracks_from_seeds(), reset(), select_tracks_iter(), mkfit::TTreeValidation::setTrackExtras(), mkfit::TTreeValidation::setupCMSSWMatching(), mkfit::TTreeValidation::storeSeedAndMCID(), use_seeds_from_cmsswtracks(), and write_out().
|
mutable |
Definition at line 65 of file Event.h.
Referenced by mkfit::TTreeValidation::fillCMSSWEfficiencyTree(), mkfit::TTreeValidation::fillCMSSWFakeRateTree(), mkfit::StdSeq::prep_cmsswtracks(), reset(), mkfit::TTreeValidation::setTrackExtras(), mkfit::TTreeValidation::setupCMSSWMatching(), and mkfit::TTreeValidation::storeSeedAndMCID().
|
private |
TrackVec mkfit::Event::fitTracks_ |
Definition at line 61 of file Event.h.
Referenced by mkfit::TTreeValidation::fillCMSSWEfficiencyTree(), mkfit::TTreeValidation::fillCMSSWFakeRateTree(), mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), mkfit::StdSeq::handle_duplicates(), mkfit::TTreeValidation::makeCMSSWTkToRecoTksMaps(), mkfit::TTreeValidation::makeRecoTkToRecoTkMaps(), mkfit::TTreeValidation::makeSeedTkToRecoTkMaps(), mkfit::TTreeValidation::makeSimTkToRecoTksMaps(), mkfit::StdSeq::prep_recotracks(), reset(), mkfit::StdSeq::root_val(), mkfit::runBtpCe_MultiIter(), mkfit::runBuildingTestPlexBestHit(), mkfit::runBuildingTestPlexCloneEngine(), mkfit::runBuildingTestPlexStandard(), mkfit::TTreeValidation::setTrackExtras(), mkfit::TTreeValidation::setTrackScoresDumbCMSSW(), and mkfit::TTreeValidation::storeSeedAndMCID().
|
mutable |
Definition at line 64 of file Event.h.
Referenced by mkfit::TTreeValidation::fillCMSSWEfficiencyTree(), mkfit::TTreeValidation::fillCMSSWFakeRateTree(), mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), mkfit::TTreeValidation::makeCMSSWTkToRecoTksMaps(), mkfit::TTreeValidation::makeRecoTkToRecoTkMaps(), mkfit::TTreeValidation::makeRecoTkToSeedTkMapsDumbCMSSW(), mkfit::TTreeValidation::makeSeedTkToRecoTkMaps(), mkfit::TTreeValidation::makeSimTkToRecoTksMaps(), mkfit::StdSeq::prep_recotracks(), reset(), mkfit::TTreeValidation::setTrackExtras(), and mkfit::TTreeValidation::storeSeedAndMCID().
std::vector<std::vector<uint64_t> > mkfit::Event::layerHitMasks_ |
Definition at line 58 of file Event.h.
Referenced by Event(), fill_hitmask_bool_vectors(), main(), read_in(), reset(), and write_out().
std::vector<HitVec> mkfit::Event::layerHits_ |
Definition at line 57 of file Event.h.
Referenced by mkfit::StdSeq::dump_simtracks(), Event(), fill_hitmask_bool_vectors(), mkfit::TTreeValidation::fillCMSSWEfficiencyTree(), mkfit::TTreeValidation::fillCMSSWFakeRateTree(), mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), mkfit::TTreeValidation::fillFitTree(), mkfit::TTreeValidation::fillFullHitInfo(), mkfit::TTreeValidation::getLastFoundHit(), kludge_cms_hit_errors(), mkfit::StdSeq::loadHitsAndBeamSpot(), main(), print_tracks(), printStats(), mkfit::StdSeq::Quality::quality_process(), read_in(), reset(), mkfit::runFittingTestPlex(), setInputFromCMSSW(), mkfit::TTreeValidation::setTrackExtras(), mkfit::TTreeValidation::setupCMSSWMatching(), and write_out().
|
static |
Definition at line 68 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 61 of file Event.h.
Referenced by clean_cms_seedtracks(), clean_cms_seedtracks_badlabel(), mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), main(), mkfit::TTreeValidation::makeCMSSWTkToSeedTkMap(), mkfit::TTreeValidation::makeSeedTkToCMSSWTkMap(), mkfit::TTreeValidation::makeSimTkToRecoTksMaps(), mkfit::StdSeq::prep_recotracks(), mkfit::StdSeq::prep_simtracks(), read_in(), relabel_bad_seedtracks(), relabel_cmsswtracks_from_seeds(), reset(), mkfit::StdSeq::root_val(), mkfit::runBtpCe_MultiIter(), mkfit::runBuildingTestPlexBestHit(), mkfit::runBuildingTestPlexCloneEngine(), mkfit::runBuildingTestPlexStandard(), select_tracks_iter(), setInputFromCMSSW(), mkfit::TTreeValidation::setTrackExtras(), mkfit::TTreeValidation::setTrackScoresDumbCMSSW(), mkfit::TTreeValidation::setupCMSSWMatching(), use_seeds_from_cmsswtracks(), and write_out().
|
mutable |
Definition at line 64 of file Event.h.
Referenced by mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), mkfit::TTreeValidation::makeRecoTkToSeedTkMapsDumbCMSSW(), mkfit::TTreeValidation::makeSimTkToRecoTksMaps(), mkfit::StdSeq::prep_recotracks(), reset(), and mkfit::TTreeValidation::setTrackExtras().
MCHitInfoVec mkfit::Event::simHitsInfo_ |
Definition at line 59 of file Event.h.
Referenced by mkfit::TTreeValidation::fillFullHitInfo(), mkfit::findSeedsByRoadSearch(), mkfit::TTreeValidation::getLastFoundHit(), main(), print_tracks(), printStats(), mkfit::StdSeq::Quality::quality_process(), read_in(), reset(), mkfit::TTreeValidation::setTrackExtras(), mkfit::StdSeq::track_print(), and write_out().
TrackVec mkfit::Event::simTracks_ |
Definition at line 61 of file Event.h.
Referenced by clean_cms_simtracks(), mkfit::TTreeValidation::fillCMSSWEfficiencyTree(), mkfit::TTreeValidation::fillCMSSWFakeRateTree(), mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), mkfit::TTreeValidation::fillFitTree(), mkfit::TTreeValidation::getLastFoundHit(), main(), mkfit::StdSeq::prep_simtracks(), printStats(), mkfit::StdSeq::Quality::quality_process(), read_in(), reset(), mkfit::runFittingTestPlex(), mkfit::TTreeValidation::setTrackExtras(), and write_out().
|
mutable |
Definition at line 64 of file Event.h.
Referenced by mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::StdSeq::prep_simtracks(), and reset().
TSVec mkfit::Event::simTrackStates_ |
Definition at line 67 of file Event.h.
Referenced by mkfit::TTreeValidation::fillEfficiencyTree(), mkfit::TTreeValidation::fillFakeRateTree(), mkfit::TTreeValidation::fillFitTree(), read_in(), reset(), and write_out().
Validation& mkfit::Event::validation_ |
Definition at line 50 of file Event.h.
Referenced by Event(), reset(), and validate().