From fb1e348ea2b5da873da6c83eabf0af29de4ee143 Mon Sep 17 00:00:00 2001 From: Salavat Date: Wed, 20 Mar 2024 09:25:33 +0100 Subject: [PATCH] some cleaning --- .../test/macros/RelValHarvest_2023.py | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/Validation/CaloTowers/test/macros/RelValHarvest_2023.py b/Validation/CaloTowers/test/macros/RelValHarvest_2023.py index 385228e142f08..51b37f4ca154c 100755 --- a/Validation/CaloTowers/test/macros/RelValHarvest_2023.py +++ b/Validation/CaloTowers/test/macros/RelValHarvest_2023.py @@ -48,8 +48,6 @@ def getDataSets( dsFlags = {'RelValMinBias_14TeV__':'MinBias'}, if str in line: # extract dataset path path = line.split('\'')[1].strip() - #print("Getting DQM output from dataset: %s"%path) - # if (path.find("Ideal") > 0 or path.find("design") > 0 or path.find("DQM") < 0 or path.find("Pixel") > 0 or path.find("2021") > 0 or path.find("FastSim") > 0 or path.find("asymptotic") > 0): #skip for unnecessary samples if (path.find("2023") < 0): continue print(path.split("/")[-1]) #path @@ -58,27 +56,8 @@ def getDataSets( dsFlags = {'RelValMinBias_14TeV__':'MinBias'}, # construct file name fname = path.split("/")[-1] - #print "smDebug2: ",fname # create file name for use with hcal scripts info = fname.split("__")[2].replace(label, "").strip("-") - #print "smDebug3: ",info - #The Data sample have an additional piece put in. We strip it out so that the MC and DATA code can be common - - # if camType == "DATA": - # iparts = info.split("_") - # info = "" - # skip = False - # for fragment in iparts: - # if skip: - # info = info.strip("_") - # skip = False - # continue - # if fragment == "RelVal": - # skip = True - # continue - # info += fragment - # info += "_" - # info = info.strip("_") ofn = ofnBlank%{"sample":dsFlags[str],"label":slabel,"info":info} if camType == "DATA": @@ -108,15 +87,6 @@ def getDataSets( dsFlags = {'RelValMinBias_14TeV__':'MinBias'}, if printDS: return - # Copy the single pion scan part from Salavat's directory - # spFileName = "pi50scan%s_fullGeom_ECALHCAL_CaloTowers.root"%slabel #->original line - #spFileName = "pi50scan%s_ECALHCAL_CaloTowers.root"%slabel - #cpCommand = "cp /afs/cern.ch/user/a/abdullin/public/pi50_scan/%s ."%spFileName - #if not os.path.isfile(spFileName): - # print cpCommand - # os.system(cpCommand) - # print "" - ##End Functions