Skip to content
Snippets Groups Projects
Commit b643c90e authored by Claudia Merlassino's avatar Claudia Merlassino Committed by Frank Winklmeier
Browse files

SUSYTools AF3 PRW

SUSYTools AF3 PRW
parent 12c283e7
No related branches found
No related tags found
42 merge requests!66406ZDC & ZDC LED monitoring updates,!66102ZDC & RPD monitoring update,!65937Draft: Updated post-processing and plotting scripts for 2023 data in ZLumi_Scripts directory,!65537ZDC - Fix problem with swapping of low and high gain data,!64732Add hypo for time-significance based selection of HLT jets,!64579Draft: Replace status() with functions from TruthUtils,!64531gFex Simulation Updates,!64529gFEX simulation updates,!64426CREST server URL parameter added in IOVDbSvc,!64423CREST server URL parameter added in IOVDbSvc,!64403Draft: ZFinder for jet super ROI,!64345potential bug,!64193Fix WriteDecorHandleKey type for ftag electron barcode decorators,!64090Configuration of AFP+dijet chains,!63927Update NSWPRDValAlg output filenames,!63828Revert "Merge branch 'skip.PyUtils-20230618' into '23.0'",!63827Draft: Updated logic in DQTGlobalWZFinderAlg for trigger function if DQ.useTrigger flag is disabled,!6382423.0-coverity-FPGATrackSimMaps,!63790Draft: replacing HT1000 preselj180 with HT1000 preselcHT450,!63694Draft: Add histograms for overflow monitoring in L1Topo,!63616Substituting hard-coded Z5/Z1 ratio values with soft-coded ones,!63486Draft: Added fragments to record extra infor from HI reco,!63316WIP: Changing default value of tolerance in STEP propagator,!63264Draft: Pass by reference in FTF loops,!63164bugfix NswCondTestAlg,!63067add inner-coincidence plots to TGC offline DQ,!63027Fixing large-R jets collection name,!63010Update R22 derivations to use large-R jet pre-recommendations calibration,!62744Draft: Z-Counting Release 23 Pandas Scripts Directory,!62682CREST data dump option added for IOVDbSvc,!62533createTagMetaInfoFS update,!62410Remove deprecated LLP1 config,!62396Add Iso and Trigger key properties in the example Alg,!62387Draft: Improve Trigger EGamma Emulator python code,!62384store Electron LH (charge ID selector) as float rather than double in derivations,!62222Draft: Replace outdated code with STL,!62134AF3: mirror showers for positrons and negative hadrons,!62001MuonCondTest: Fix compilation with clang15.,!61907Draft: Remove boost from HepMCWeightSvc,!61808SUSYTools AF3 PRW,!60432Add linear extrapolation in old charge calibration (ATLASRECTS-7337),!58516Draft: optimization in simulation
......@@ -835,7 +835,7 @@ StatusCode SUSYObjDef_xAOD::initialize() {
std::string simFlavour = "";
ATH_CHECK( AthAnalysisHelper::retrieveMetadata("/Simulation/Parameters", "SimulationFlavour", simFlavour, inputMetaStore() ) );
boost::to_upper(simFlavour);
local_isAtlfast = (simFlavour.find("ATLFASTII") != std::string::npos);
local_isAtlfast = (simFlavour.find("ATLFAST") != std::string::npos);
}
if (local_isData) {m_dataSource = Data;}
else {
......@@ -940,7 +940,8 @@ StatusCode SUSYObjDef_xAOD::autoconfigurePileupRWTool(const std::string& PRWfile
float dsid = -999;
std::string amiTag("");
std::string mcCampaignMD("");
std::string simType = (isAtlfast() ? "AFII" : "FS");
std::string simFlavour("");
std::string simType("");
const xAOD::FileMetaData* fmd = nullptr;
// configure PRW rtag options from m_autoconfigPRWRtags string
......@@ -966,6 +967,12 @@ StatusCode SUSYObjDef_xAOD::autoconfigurePileupRWTool(const std::string& PRWfile
if ( inputMetaStore()->contains<xAOD::FileMetaData>("FileMetaData") && inputMetaStore()->retrieve(fmd,"FileMetaData").isSuccess() ) {
fmd->value(xAOD::FileMetaData::mcProcID, dsid);
fmd->value(xAOD::FileMetaData::amiTag, amiTag);
fmd->value(xAOD::FileMetaData::simFlavour, simFlavour);
if(simFlavour.find("ATLFASTII")==0) simType = "AFII";
else if(simFlavour.find("ATLFAST3")==0) simType = "AF3";
else simType = "FS";
bool found = false;
while ( mcCampaignMD.empty() ) {
for ( const auto& campaign_rtags : PRWRtags ) { // consider all campaigns
......
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