ATLAS Offline Software
Namespaces | Functions | Variables
GetAllXsec.py File Reference

Go to the source code of this file.

Namespaces

 GetAllXsec
 

Functions

def GetAllXsec.is_number (s)
 

Variables

 GetAllXsec.format
 
 GetAllXsec.datefmt
 
 GetAllXsec.log = logging.getLogger("myXsecLogger")
 
 GetAllXsec.mainFolder = os.getcwd()
 
string GetAllXsec.xsecFolder = mainFolder+"/XsecFiles/"
 
 GetAllXsec.allProcesses = DefineTags.ReturnSampleCategory()
 
 GetAllXsec.allFolders_mc15 = glob.glob(mainFolder+"/AllSampleInfo_mc15_13TeV/DSID*/*")
 
 GetAllXsec.allFolders_mc16 = glob.glob(mainFolder+"/AllSampleInfo_mc16_13TeV/DSID*/*")
 
 GetAllXsec.allFolders = allFolders_mc15 + allFolders_mc16
 
list GetAllXsec.allXsec = []
 
list GetAllXsec.processed_DSIDs = []
 
tuple GetAllXsec.DSID = (entry.split("XXX/"))[1]
 
 GetAllXsec.statusFiles_list = glob.glob(entry+"/Status*.txt")
 
int GetAllXsec.nEvents = 0
 
 GetAllXsec.AllInfo = StatusFiles.StatusFileReader(iStatus)
 
 GetAllXsec.totalEvents = AllInfo.totalEvents
 
 GetAllXsec.inputFile = iStatus
 
 GetAllXsec.SortingTag = AllInfo.SortingTag
 
 GetAllXsec.xsec = AllInfo.Xsec
 
 GetAllXsec.filterEff = AllInfo.filterEff
 
 GetAllXsec.kFactor = AllInfo.kFactor
 
 GetAllXsec.dataset = AllInfo.dataset
 
 GetAllXsec.higherOrderXsec = AllInfo.higherOrderXsec
 
 GetAllXsec.higherOrderXsecSample = str(float(xsec)*float(kFactor)*float(filterEff))
 
int GetAllXsec.nEv_mc15 = 0.
 
int GetAllXsec.nEv_mc16a = 0.
 
int GetAllXsec.nEv_mc16c = 0.
 
int GetAllXsec.nEv_mc16d = 0.
 
int GetAllXsec.nEv_mc16e = 0.
 
 GetAllXsec.arrayAOD_mc15 = SimpleFunctions.GetArraysFromTxtWithString(mainFolder+"/AllSampleInfo_mc15_13TeV/SummaryInfo/ListAOD_mc15_13TeV..txt", DSID)
 
 GetAllXsec.arrayAOD_mc16 = SimpleFunctions.GetArraysFromTxtWithString(mainFolder+"/AllSampleInfo_mc16_13TeV/SummaryInfo/ListAOD_mc16_13TeV..txt", DSID)
 
string GetAllXsec.SampleLumi = "Undef"
 
 GetAllXsec.datasetSplit = dataset.split(".evgen")
 
 GetAllXsec.datasetLabel = dataset
 
list GetAllXsec.entry = ["", "", "", "", "", "", "", "", "", ""]
 
list GetAllXsec.tableEntry = [DSID, datasetLabel, str(float(xsec)), str(float(filterEff)), higherOrderXsec, str(float(kFactor)), SortingTag, str(SampleLumi), str(nEv_mc15), str(nEv_mc16a), str(nEv_mc16c), str(nEv_mc16d), str(nEv_mc16e), higherOrderXsecSample]
 
string GetAllXsec.OutputFile = xsecFolder+"/list_Xsec_"+Process+".txt"
 
 GetAllXsec.f = open(OutputFile, "w")
 
 GetAllXsec.finalXsec = str(float(entry[2])*float(entry[3])*float(entry[5]))