Skip to content
Snippets Groups Projects
Commit 28d9a266 authored by Jiri Masik's avatar Jiri Masik
Browse files

Merge branch 'muiso' into '24.0'

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

See merge request !75544
parents 09710044 9456f381
No related branches found
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