#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_, layerHits_, and MuonTCMETValueMapProducer_cff::nLayers.
Event::Event | ( | Validation & | v, |
int | evtID, | ||
int | nLayers | ||
) |
Definition at line 26 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 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(), ALCARECOTkAlJpsiMuMu_cff::charge, mkfit::TrackBase::charge(), PVValHelper::eta, calostep_cfi::Eta1, f, mkfit::TrackBase::invpT(), mkfit::TrackBase::momEta(), mkfit::TrackBase::momPhi(), mkfit::Track::nFoundHits(), nHits, funct::pow(), DiDispStaMuonMonitor_cfi::pt, mkfit::TrackBase::pT(), DetachedQuadStep_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 754 of file Event.cc.
References visDQMUpload::buf, 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::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, createfilelist::int, cmsLHEtoEOSManager::l, layerHitMasks_, layerHits_, and findQualityFiles::size.
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, createfilelist::int, cmsLHEtoEOSManager::l, layerHitMasks_, layerHits_, and findQualityFiles::size.
void Event::kludge_cms_hit_errors | ( | ) |
Definition at line 462 of file Event.cc.
References 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 539 of file Event.cc.
References mkfit::getScoreCand(), heavyIonCSV_trainingSettings::idx, layerHits_, nt, simHitsInfo_, submitPVValidationJobs::t, and tracks.
void Event::printStats | ( | const TrackVec & | trks, |
TrackExtraVec & | trkextras | ||
) |
Definition at line 90 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 206 of file Event.cc.
References mkfit::DataFile::advancePosToNextEvent(), beamSpot_, mkfit::cmsswSeeds, cmsswTracks_, relativeConstraints::empty, mkfit::DataFile::f_fp, personalPlayback::fp, mkfit::DataFile::hasBeamSpot(), mkfit::DataFile::hasCmsswTracks(), mkfit::DataFile::hasHitIterMasks(), mkfit::DataFile::hasSeeds(), mkfit::DataFile::hasSimTrackStates(), heavyIonCSV_trainingSettings::idx, createfilelist::int, kludge_cms_hit_errors(), mkfit::Config::kludgeCmsHitErrors, layerHitMasks_, layerHits_, cms::cuda::nh, nt, mkfit::Config::nTracks, read_tracks(), mkfit::Config::readCmsswTracks, mkfit::Config::seedInput, seedTracks_, mkfit::Config::silent, simHitsInfo_, simTracks_, simTrackStates_, findQualityFiles::size, mathSSE::sqrt(), contentValuesCheck::ss, submitPVValidationJobs::t, funct::void, x, hit::x, hit::y, and hit::z.
int Event::read_tracks | ( | FILE * | fp, |
TrackVec & | tracks, | ||
bool | skip_reading = false |
||
) |
Definition at line 429 of file Event.cc.
References personalPlayback::fp, mps_fire::i, and tracks.
Referenced by read_in().
void Event::relabel_bad_seedtracks | ( | ) |
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_.
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(), analysisFilters_cff::algorithms, cmsswTracks_, spr::find(), createfilelist::int, dqmiodumpmetadata::n, nt, and seedTracks_.
Definition at line 455 of file Event.cc.
References hfClusterShapes_cfi::hits, layerHits_, eostools::move(), DetachedQuadStep_cff::seeds, 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_.
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(), createfilelist::int, layerHitMasks_, layerHits_, mutex, cms::cuda::nh, seedTracks_, simHitsInfo_, simTracks_, simTrackStates_, findQualityFiles::size, and write_tracks().
int Event::write_tracks | ( | FILE * | fp, |
const TrackVec & | tracks | ||
) |
Definition at line 405 of file Event.cc.
References personalPlayback::fp, mps_fire::i, createfilelist::int, and tracks.
Referenced by write_out().
BeamSpot mkfit::Event::beamSpot_ |
Definition at line 56 of file Event.h.
Referenced by read_in(), reset(), and write_out().
TrackVec mkfit::Event::candidateTracks_ |
|
mutable |
TrackVec mkfit::Event::cmsswTracks_ |
Definition at line 62 of file Event.h.
Referenced by read_in(), relabel_cmsswtracks_from_seeds(), reset(), select_tracks_iter(), use_seeds_from_cmsswtracks(), and write_out().
|
mutable |
|
private |
|
mutable |
std::vector<std::vector<uint64_t> > mkfit::Event::layerHitMasks_ |
Definition at line 58 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 57 of file Event.h.
Referenced by Event(), fill_hitmask_bool_vectors(), kludge_cms_hit_errors(), print_tracks(), printStats(), read_in(), reset(), setInputFromCMSSW(), 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(), 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 59 of file Event.h.
Referenced by print_tracks(), printStats(), read_in(), reset(), and write_out().
TrackVec mkfit::Event::simTracks_ |
Definition at line 61 of file Event.h.
Referenced by clean_cms_simtracks(), printStats(), read_in(), reset(), and write_out().
|
mutable |
TSVec mkfit::Event::simTrackStates_ |
Definition at line 67 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().