1 #ifndef RecoTracker_MkFitCore_standalone_TTreeValidation_h 2 #define RecoTracker_MkFitCore_standalone_TTreeValidation_h 9 class TTreeValidation :
public Validation {
16 #include <unordered_map> 77 std::vector<int>& lyrs,
78 std::vector<int>& idxs,
79 std::vector<int>& mcTkIDs,
80 std::vector<float>& xs,
81 std::vector<float>& ys,
82 std::vector<float>& zs);
94 std::unique_ptr<TFile>
f_;
std::vector< int > hitlyrs_mc_seed_FR_
std::vector< int > hitidxs_build_ceff_
std::unique_ptr< TFile > f_
std::unique_ptr< TTree > cmsswfrtree_
std::vector< int > hitmcTkIDs_fit_FR_
TkIDToTkIDMap fitToSeedMapDumbCMSSW_
std::vector< float > & emeta_up_fit_
void setTrackExtras(Event &ev) override
void fillFitTree(const Event &ev) override
int nHitsMatched_build_FR_
std::vector< TrackExtra > TrackExtraVec
int nHits_cmssw_build_cFR_
std::vector< int > hitidxs_mc_build_ceff_
void initializeCMSSWFakeRateTree()
TkIDToTkIDVecMap simToBuildMap_
std::vector< float > hitzs_mc_seed_FR_
std::vector< float > & ez_hit_fit_
int iTkMatches_build_cFR_
void makeRecoTkToSeedTkMapsDumbCMSSW(Event &ev) override
std::unordered_map< int, FitValLayMap > TkIDtoFitValLayMapMap
std::vector< int > hitlyrs_build_cFR_
std::vector< int > hitmcTkIDs_mc_fit_FR_
TkIDToTkIDVecMap simToFitMap_
void makeCMSSWTkToSeedTkMap(Event &ev) override
void fillCMSSWFakeRateTree(const Event &ev) override
void makeSeedTkToCMSSWTkMap(Event &ev) override
int lastlyr_cmssw_build_cFR_
std::vector< int > hitlyrs_fit_FR_
std::vector< float > hitzs_seed_eff_
std::vector< int > hitidxs_fit_cFR_
float hitchi2_build_ceff_
std::vector< int > hitmcTkIDs_mc_seed_FR_
std::vector< int > hitidxs_cmssw_fit_cFR_
std::vector< int > hitidxs_build_FR_
int getMaskAssignment(const int refID)
int nHitsMatched_fit_ceff_
std::vector< float > hitxs_mc_fit_FR_
int seedID_cmssw_fit_cFR_
std::vector< float > & ez_prop_fit_
TkIDToTkIDMap buildToCmsswMap_
std::vector< float > hitxs_fit_eff_
float eta_cmssw_build_cFR_
void setTrackScoresDumbCMSSW(Event &) override
std::vector< float > & mphi_up_fit_
void mapSeedTkToRecoTk(const TrackVec &evt_tracks, const TrackExtraVec &evt_extras, TkIDToTkIDMap &seedTkMap)
float nLayers_cmssw_ceff_
std::vector< int > hitlyrs_mc_cFR_
TkIDToTkIDVecMap cmsswToBuildMap_
std::vector< int > hitlyrs_build_eff_
void saveTTrees() override
std::vector< float > & mphi_sim_fit_
float fracHitsMatched_build_FR_
TkIDToTkIDMap seedToCmsswMap_
int seedID_cmssw_build_cFR_
TkIDToTkIDMap fitToBuildMap_
void makeRecoTkToSeedTkMapDumbCMSSW(const TrackExtraVec &recoextras, const TrackExtraVec &seedextras, TkIDToTkIDMap &recoToSeedMap)
std::vector< int > hitmcTkIDs_mc_build_FR_
std::vector< int > hitidxs_mc_build_FR_
std::vector< float > & pphi_prop_fit_
std::vector< float > & meta_up_fit_
std::unordered_map< int, std::vector< int > > TkIDToTkIDVecMap
std::vector< int > hitlyrs_seed_eff_
std::vector< int > hitidxs_fit_ceff_
std::vector< float > & ept_up_fit_
void fillConfigTree() override
float fracHitsMatched_fit_eff_
int cmsswmask_build_ceff_
float fracHitsMatched_build_eff_
std::vector< float > hitys_build_eff_
std::vector< int > hitlyrs_cmssw_build_cFR_
float fracHitsMatched_build_cFR_
ULong64_t itermask_fit_eff_
std::vector< float > & emphi_sim_fit_
constexpr std::array< uint8_t, layerIndexSize > layer
std::vector< int > hitlyrs_fit_cFR_
std::vector< int > hitidxs_seed_FR_
int nTkMatches_build_ceff_
TkIDToTkIDMap seedToFitMap_
float phi_cmssw_build_cFR_
int nHitsMatched_fit_eff_
std::vector< int > hitidxs_fit_FR_
std::vector< float > & pphi_hit_fit_
std::vector< float > & pt_up_fit_
std::vector< float > & pphi_sim_fit_
std::vector< int > hitidxs_mc_eff_
std::vector< int > hitmcTkIDs_mc_eff_
std::unique_ptr< TTree > cmsswefftree_
void fillFakeRateTree(const Event &ev) override
std::vector< float > hitys_mc_fit_FR_
std::vector< int > hitidxs_mc_cFR_
void setupCMSSWMatching(const Event &ev, RedTrackVec &reducedCMSSW, LayIdxIDVecMapMap &cmsswHitIDMap)
std::vector< int > hitlyrs_build_ceff_
float helixchi2_build_ceff_
float fracHitsMatched_fit_cFR_
std::vector< int > hitlyrs_build_FR_
std::vector< float > hitxs_build_eff_
std::vector< int > hitlyrs_fit_eff_
std::unordered_map< int, int > TkIDToTkIDMap
std::unique_ptr< TTree > fittree_
std::vector< float > & ez_sim_fit_
std::unique_ptr< TTree > efftree_
std::vector< int > hitidxs_mc_fit_FR_
std::vector< int > hitidxs_cmssw_build_cFR_
ULong64_t iterduplmask_build_ceff_
std::vector< ReducedTrack > RedTrackVec
std::vector< float > & z_sim_fit_
int lastlyr_cmssw_fit_cFR_
float pt_cmssw_build_cFR_
float helixchi2_seed_eff_
std::vector< float > hitzs_mc_build_FR_
std::vector< float > & emeta_sim_fit_
std::vector< int > hitmcTkIDs_fit_eff_
void makeRecoTkToRecoTkMap(TkIDToTkIDMap &refToPairMap, const TrackVec &reftracks, const TrackExtraVec &refextras, const TrackVec &pairtracks, const TrackExtraVec &pairextras)
float nLayers_mc_build_FR_
std::vector< float > hitxs_seed_FR_
void fillCMSSWEfficiencyTree(const Event &ev) override
int nHitsMatched_build_eff_
TkIDToTkIDMap candToSeedMapDumbCMSSW_
std::vector< int > hitidxs_cmssw_ceff_
std::vector< float > hitys_mc_eff_
void makeCMSSWTkToRecoTksMaps(Event &ev) override
TkIDtoFitValLayMapMap fitValTkMapMap_
float nLayers_cmssw_build_cFR_
std::vector< int > hitlyrs_cmssw_fit_cFR_
void initializeConfigTree()
void mapRefTkToRecoTks(const TrackVec &evt_tracks, TrackExtraVec &evt_extras, TkIDToTkIDVecMap &refTkMap)
ULong64_t algo_seed_ceff_
std::vector< float > hitxs_build_FR_
TTreeValidation(std::string fileName, const TrackerInfo *trk_info)
ULong64_t itermask_build_eff_
int nHitsMatched_seed_eff_
std::vector< float > hitzs_seed_FR_
float fracHitsMatched_seed_FR_
int getLastFoundHit(const int trackMCHitID, const int mcTrackID, const Event &ev)
std::vector< int > hitidxs_build_cFR_
std::vector< float > & meta_sim_fit_
ULong64_t iterduplmask_fit_ceff_
std::vector< float > hitxs_fit_FR_
std::vector< float > hitxs_mc_build_FR_
std::vector< float > & epphi_hit_fit_
std::vector< Track > TrackVec
std::vector< float > hitxs_seed_eff_
std::vector< float > hitys_build_FR_
std::vector< float > & emphi_up_fit_
std::vector< float > hitys_seed_FR_
std::vector< float > hitzs_mc_eff_
std::map< int, FitVal > FitValLayMap
TkIDToTkIDMap seedToBuildMap_
float helixchi2_build_eff_
TkIDToTkIDVecMap simToSeedMap_
float fracHitsMatched_fit_FR_
std::vector< float > hitzs_build_eff_
void fillEfficiencyTree(const Event &ev) override
int nHitsMatched_build_ceff_
float nLayers_cmssw_fit_cFR_
ULong64_t iterduplmask_seed_eff_
std::vector< int > hitmcTkIDs_seed_FR_
std::vector< float > & ept_sim_fit_
std::vector< float > fvs_[nfvs_]
float helixchi2_build_FR_
float fracHitsMatched_seed_eff_
std::vector< float > hitzs_fit_eff_
std::vector< float > hitzs_build_FR_
std::vector< float > hitzs_mc_fit_FR_
void fillFullHitInfo(const Event &ev, const Track &track, std::vector< int > &lyrs, std::vector< int > &idxs, std::vector< int > &mcTkIDs, std::vector< float > &xs, std::vector< float > &ys, std::vector< float > &zs)
ULong64_t iterduplmask_fit_eff_
ULong64_t itermask_build_ceff_
std::vector< float > hitxs_mc_seed_FR_
void alignTracks(TrackVec &evt_tracks, TrackExtraVec &evt_extra, bool alignExtra) override
std::vector< float > & z_hit_fit_
std::vector< float > & epphi_prop_fit_
ULong64_t itermask_seed_eff_
std::vector< int > hitidxs_build_eff_
float nLayers_build_ceff_
std::vector< float > hitys_mc_build_FR_
float nLayers_mc_seed_FR_
std::vector< int > hitlyrs_mc_eff_
std::vector< int > hitlyrs_mc_fit_FR_
float fracHitsMatched_fit_ceff_
std::vector< int > hitmcTkIDs_build_eff_
std::vector< float > hitys_fit_eff_
std::vector< float > hitzs_fit_FR_
std::vector< float > hitxs_mc_eff_
void storeSeedAndMCID(Event &ev)
void makeRecoTkToRecoTkMaps(Event &ev) override
std::vector< int > hitlyrs_seed_FR_
std::vector< int > hitlyrs_cmssw_ceff_
int nTkMatches_build_eff_
std::vector< float > hitys_mc_seed_FR_
std::vector< int > hitlyrs_fit_ceff_
int mcTrackID_build_ceff_
void initializeFakeRateTree()
std::vector< int > hitlyrs_mc_fit_ceff_
std::vector< int > hitidxs_mc_fit_ceff_
float helixchi2_build_cFR_
TkIDToTkIDVecMap cmsswToFitMap_
void initializeEfficiencyTree()
std::vector< int > hitmcTkIDs_build_FR_
int nHitsMatched_seed_FR_
TkIDToTkIDMap cmsswToSeedMap_
std::vector< float > hitys_fit_FR_
int nHitsMatched_fit_cFR_
std::map< int, std::map< int, std::vector< int > > > LayIdxIDVecMapMap
std::vector< int > hitmcTkIDs_seed_eff_
std::vector< int > hitlyrs_mc_build_ceff_
std::vector< float > hitys_seed_eff_
void makeSimTkToRecoTksMaps(Event &ev) override
std::unique_ptr< TTree > frtree_
std::vector< int > hitidxs_mc_seed_FR_
std::vector< float > & pt_sim_fit_
std::vector< float > & z_prop_fit_
void makeSeedTkToRecoTkMaps(Event &ev) override
void resetValidationMaps() override
ULong64_t iterduplmask_build_eff_
void initializeCMSSWEfficiencyTree()
void collectFitInfo(const FitVal &tmpfitval, int tkid, int layer) override
TkIDToTkIDMap buildToFitMap_
int nHitsMatched_build_cFR_
std::vector< int > hitidxs_seed_eff_
void fillMinHitInfo(const Track &track, std::vector< int > &lyrs, std::vector< int > &idxs)
std::unique_ptr< TTree > configtree_
std::vector< float > & epphi_sim_fit_
ULong64_t itermask_fit_ceff_
float helixchi2_fit_ceff_
float fracHitsMatched_build_ceff_
std::vector< int > hitidxs_fit_eff_
std::vector< int > hitlyrs_mc_build_FR_