Skip to content
Snippets Groups Projects
Commit f529c5c7 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'SUSYTools_ShowerType' into 'main'

SUSYTools: Fix handling of Shower Type

See merge request !70984
parents 7481282c 1568578a
No related branches found
No related tags found
31 merge requests!78241Draft: FPGATrackSim: GenScan code refactor,!78236Draft: Switching Streams https://its.cern.ch/jira/browse/ATR-27417,!78056AFP monitoring: new synchronization and cleaning,!78041AFP monitoring: new synchronization and cleaning,!77990Updating TRT chip masks for L1TRT trigger simulation - ATR-28372,!77733Draft: add new HLT NN JVT, augmented with additional tracking information,!77731Draft: Updates to ZDC reconstruction,!77728Draft: updates to ZDC reconstruction,!77522Draft: sTGC Pad Trigger Emulator,!76725ZdcNtuple: Fix cppcheck warning.,!76611L1CaloFEXByteStream: Fix out-of-bounds array accesses.,!76475Punchthrough AF3 implementation in FastG4,!76474Punchthrough AF3 implementation in FastG4,!76343Draft: MooTrackBuilder: Recalibrate NSW hits in refine method,!75729New implementation of ZDC nonlinear FADC correction.,!75703Draft: Update to HI han config for HLT jets,!75184Draft: Update file heavyions_run.config,!74430Draft: Fixing upper bound for Delayed Jet Triggers,!73963Changing the path of the histograms to "Expert" area,!73875updating ID ART reference plots,!73874AtlasCLHEP_RandomGenerators: Fix cppcheck warnings.,!73449Add muon detectors to DarkJetPEBTLA partial event building,!73343Draft: [TrigEgamma] Add photon ringer chains on bootstrap mechanism,!72972Update L1Calo Jet Trigger Efficiency Monitoring algorithm,!72336Fixed TRT calibration crash,!72176Draft: Improving L1TopoOnline chain that now gets no-empty plots. Activating it by default,!72012Draft: Separate JiveXMLConfig.py into Config files,!71876Fix MET trigger name in MissingETMonitoring,!71820Draft: Adding new TLA End-Of-Fill (EOF) chains and removing obsolete DIPZ chains,!71279Draft: ATR-29330: Move L1_4J15 and the HLT chains seeded by it in the MC Menu,!70984SUSYTools: Fix handling of Shower Type
......@@ -1610,7 +1610,7 @@ StatusCode SUSYObjDef_xAOD::SUSYToolsInit()
else{
MCshowerID= "default"; // Powheg+Pythia8 (601229) - PhPy8EG_A14
if (m_showerType == 2) MCshowerID = "601414"; // POWHEG+Herwig721 - PhH7EG_A14
else if (m_showerType == 7) MCshowerID = "700660"; // Sherpa 2.2.12 - Sh_2212
else if (m_showerType == 6) MCshowerID = "700660"; // Sherpa 2.2.12 - Sh_2212
}
// btagEfficiencyTool
......
......@@ -168,18 +168,18 @@ namespace ST {
static inline int getMCShowerType(const std::string& sample_name) {
/** Get MC generator index for the b-tagging efficiency maps*/
// This needs VERY careful syncing with m_showerType in SUSYToolsInit! Change with care!
const static std::vector<TString> gen_mc_generator_keys = {"PowhegHerwig7","PhH7EG_H7UE", "SHERPA_221_", "SHERPA_2210","SHERPA_2211","SHERPA_2212", "aMcAtNloPy8","aMcAtNloHerwig7"};
const static std::vector<TString> gen_mc_generator_keys = {"POWHEGHERWIG7","PHH7EG", "SHERPA_221_", "SHERPA_2210","SHERPA_2211","SHERPA_2212", "AMCATNLOPY8","AMCATNLOHERWIG7"};
//pre-process sample name
TString tmp_name(sample_name);
tmp_name.ReplaceAll("Py8EG","PYTHIA8EVTGEN");
if(tmp_name.Contains("Py8EG") && !tmp_name.Contains("aMcAtNloPy8EG")) tmp_name.ReplaceAll("Py8EG","PYTHIA8EVTGEN");
if(tmp_name.Contains("Pythia") && !tmp_name.Contains("Pythia8") && !tmp_name.Contains("EvtGen")) tmp_name.ReplaceAll("Pythia","PYTHIA8EVTGEN");
if(tmp_name.Contains("Pythia8") && !tmp_name.Contains("EvtGen")) tmp_name.ReplaceAll("Pythia8","PYTHIA8EVTGEN");
if(tmp_name.Contains("Py8") && !tmp_name.Contains("EG")) tmp_name.ReplaceAll("Py8","PYTHIA8EVTGEN");
if(tmp_name.Contains("Sh_2")) tmp_name.ReplaceAll("Sh_2","SHERPA_2");
//capitalize the entire sample name
tmp_name.ToUpper();
//find shower type in name
unsigned int ishower = 0;
for( const auto & gen : gen_mc_generator_keys ){
......
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