Skip to content
Snippets Groups Projects
Commit 9456f381 authored by Mark Sutton's avatar Mark Sutton Committed by Jiri Masik
Browse files

Allow the maximum d0 to be det analysis-by-analysis

Allow the maximum d0 to be det analysis-by-analysis

For the muIso tracking, the d0 range (4mm) used in the trigger is smaller than for the muon tracking (10mm)
and so the muIso tracking appears to be ~ 60 % lower in efficiency if we use tha reference sample
with |d0| < 10 mm. These changes allow the reference sample for the muIso tracking to use a custom d0 limit
of 4 mm commensurate with the selection used in the trigger reconstruction.
parent e00bcb23
Branches svn/tags/GAUDI_v19r4-pre@6013
No related tags found
3 merge requests!756102024-11-05: merge of 24.0 into main,!75544Allow the maximum d0 to be det analysis-by-analysis,!75127Draft: Seeder types rebase2 grid fix
......@@ -2278,10 +2278,11 @@ int main(int argc, char** argv)
// (which is ideally pT ordered e.g. 0, 1, 3)
}
/// check configuration is provided ...
if ( cf ) {
/// remove any tracks below the pt threshold if one is specifed for the analysis
/// remove any tracks below the pt threshold if one is specifed for the analysis
if ( cf ) {
std::string ptconfig = cf->config().postvalue("pt");
if ( ptconfig!="" ) {
double pt = std::atof( ptconfig.c_str() );
......@@ -2293,6 +2294,21 @@ int main(int argc, char** argv)
refp_vec = reft;
}
}
/// remove any tracks outside the d0 region if one is specifed for the analysis
std::string d0config = cf->config().postvalue("d0");
if ( d0config!="" ) {
double d0 = std::atof( d0config.c_str() );
if ( d0>0 ) {
std::vector<TIDA::Track*> reft; reft.reserve(refp_vec.size());
for ( std::vector<TIDA::Track*>::const_iterator itr=refp_vec.begin() ; itr!=refp_vec.end() ; ++itr ) {
if ( std::fabs((*itr)->a0())<=d0 ) reft.push_back( *itr );
}
refp_vec = reft;
}
}
}
/// if requesting an object match, remove any tracks which correspond to an object
......
......@@ -9,17 +9,17 @@ testChains = {
"HLT_mu6_idperf_L1MU5VF:HLT_IDTrack_Muon_FTF:HLT_Roi_L2SAMuon",
"HLT_mu6_idperf_L1MU5VF:HLT_IDTrack_Muon_IDTrig:HLT_Roi_L2SAMuon",
"HLT_mu6_ivarmedium_L1MU5VF:HLT_IDTrack_MuonIso_FTF:HLT_Roi_MuonIso",
"HLT_mu6_ivarmedium_L1MU5VF:HLT_IDTrack_MuonIso_IDTrig:HLT_Roi_MuonIso",
"HLT_mu6_ivarmedium_L1MU5VF:HLT_IDTrack_MuonIso_FTF:HLT_Roi_MuonIso:post:d0=4",
"HLT_mu6_ivarmedium_L1MU5VF:HLT_IDTrack_MuonIso_IDTrig:HLT_Roi_MuonIso:post:d0=4",
"HLT_mu24_idperf_L1MU14FCH:HLT_IDTrack_Muon_FTF:HLT_Roi_L2SAMuon",
"HLT_mu24_idperf_L1MU14FCH:HLT_IDTrack_Muon_IDTrig:HLT_Roi_L2SAMuon",
"HLT_mu26_ivarmedium_L1MU14FCH:HLT_IDTrack_MuonIso_FTF:HLT_Roi_MuonIso",
"HLT_mu26_ivarmedium_L1MU14FCH:HLT_IDTrack_MuonIso_IDTrig:HLT_Roi_MuonIso",
"HLT_mu28_ivarmedium_L1MU14FCH:HLT_IDTrack_MuonIso_FTF:HLT_Roi_MuonIso",
"HLT_mu28_ivarmedium_L1MU14FCH:HLT_IDTrack_MuonIso_IDTrig:HLT_Roi_MuonIso",
"HLT_mu26_ivarperf_L1MU14FCH:HLT_IDTrack_MuonIso_FTF:HLT_Roi_MuonIso",
"HLT_mu26_ivarperf_L1MU14FCH:HLT_IDTrack_MuonIso_IDTrig:HLT_Roi_MuonIso",
"HLT_mu26_ivarmedium_L1MU14FCH:HLT_IDTrack_MuonIso_FTF:HLT_Roi_MuonIso:post:d0=4",
"HLT_mu26_ivarmedium_L1MU14FCH:HLT_IDTrack_MuonIso_IDTrig:HLT_Roi_MuonIso:post:d0=4",
"HLT_mu28_ivarmedium_L1MU14FCH:HLT_IDTrack_MuonIso_FTF:HLT_Roi_MuonIso:post:d0=4",
"HLT_mu28_ivarmedium_L1MU14FCH:HLT_IDTrack_MuonIso_IDTrig:HLT_Roi_MuonIso:post:d0=4",
"HLT_mu26_ivarperf_L1MU14FCH:HLT_IDTrack_MuonIso_FTF:HLT_Roi_MuonIso:post:d0=4",
"HLT_mu26_ivarperf_L1MU14FCH:HLT_IDTrack_MuonIso_IDTrig:HLT_Roi_MuonIso:post:d0=4",
"HLT_mu6_idperf_L1MU5VF:HLT_IDTrack_Muon_IDTrig:HLT_Roi_L2SAMuon",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment