ATLAS Offline Software
Functions | Variables
GetAllXsec Namespace Reference

Functions

def is_number (s)
 

Variables

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

Function Documentation

◆ is_number()

def GetAllXsec.is_number (   s)

Definition at line 21 of file GetAllXsec.py.

21 def is_number(s):
22  try:
23  float(s)
24  return True
25  except ValueError:
26  return False
27 
28 

Variable Documentation

◆ allFolders

GetAllXsec.allFolders = allFolders_mc15 + allFolders_mc16

Definition at line 43 of file GetAllXsec.py.

◆ allFolders_mc15

GetAllXsec.allFolders_mc15 = glob.glob(mainFolder+"/AllSampleInfo_mc15_13TeV/DSID*/*")

Definition at line 37 of file GetAllXsec.py.

◆ allFolders_mc16

GetAllXsec.allFolders_mc16 = glob.glob(mainFolder+"/AllSampleInfo_mc16_13TeV/DSID*/*")

Definition at line 40 of file GetAllXsec.py.

◆ AllInfo

GetAllXsec.AllInfo = StatusFiles.StatusFileReader(iStatus)

Definition at line 67 of file GetAllXsec.py.

◆ allProcesses

GetAllXsec.allProcesses = DefineTags.ReturnSampleCategory()

Definition at line 34 of file GetAllXsec.py.

◆ allXsec

list GetAllXsec.allXsec = []

Definition at line 45 of file GetAllXsec.py.

◆ arrayAOD_mc15

GetAllXsec.arrayAOD_mc15 = SimpleFunctions.GetArraysFromTxtWithString(mainFolder+"/AllSampleInfo_mc15_13TeV/SummaryInfo/ListAOD_mc15_13TeV..txt", DSID)

Definition at line 111 of file GetAllXsec.py.

◆ arrayAOD_mc16

GetAllXsec.arrayAOD_mc16 = SimpleFunctions.GetArraysFromTxtWithString(mainFolder+"/AllSampleInfo_mc16_13TeV/SummaryInfo/ListAOD_mc16_13TeV..txt", DSID)

Definition at line 117 of file GetAllXsec.py.

◆ dataset

GetAllXsec.dataset = AllInfo.dataset

Definition at line 99 of file GetAllXsec.py.

◆ datasetLabel

GetAllXsec.datasetLabel = dataset

Definition at line 130 of file GetAllXsec.py.

◆ datasetSplit

GetAllXsec.datasetSplit = dataset.split(".evgen")

Definition at line 129 of file GetAllXsec.py.

◆ datefmt

GetAllXsec.datefmt

Definition at line 16 of file GetAllXsec.py.

◆ DSID

tuple GetAllXsec.DSID = (entry.split("XXX/"))[1]

Definition at line 53 of file GetAllXsec.py.

◆ entry

list GetAllXsec.entry = ["", "", "", "", "", "", "", "", "", ""]

Definition at line 132 of file GetAllXsec.py.

◆ f

GetAllXsec.f = open(OutputFile, "w")

Definition at line 148 of file GetAllXsec.py.

◆ filterEff

GetAllXsec.filterEff = AllInfo.filterEff

Definition at line 91 of file GetAllXsec.py.

◆ finalXsec

GetAllXsec.finalXsec = str(float(entry[2])*float(entry[3])*float(entry[5]))

Definition at line 155 of file GetAllXsec.py.

◆ format

GetAllXsec.format

Definition at line 16 of file GetAllXsec.py.

◆ higherOrderXsec

GetAllXsec.higherOrderXsec = AllInfo.higherOrderXsec

Definition at line 100 of file GetAllXsec.py.

◆ higherOrderXsecSample

GetAllXsec.higherOrderXsecSample = str(float(xsec)*float(kFactor)*float(filterEff))

Definition at line 101 of file GetAllXsec.py.

◆ inputFile

GetAllXsec.inputFile = iStatus

Definition at line 78 of file GetAllXsec.py.

◆ kFactor

GetAllXsec.kFactor = AllInfo.kFactor

Definition at line 95 of file GetAllXsec.py.

◆ log

GetAllXsec.log = logging.getLogger("myXsecLogger")

Definition at line 17 of file GetAllXsec.py.

◆ mainFolder

GetAllXsec.mainFolder = os.getcwd()

Definition at line 29 of file GetAllXsec.py.

◆ nEv_mc15

int GetAllXsec.nEv_mc15 = 0.

Definition at line 104 of file GetAllXsec.py.

◆ nEv_mc16a

int GetAllXsec.nEv_mc16a = 0.

Definition at line 105 of file GetAllXsec.py.

◆ nEv_mc16c

int GetAllXsec.nEv_mc16c = 0.

Definition at line 106 of file GetAllXsec.py.

◆ nEv_mc16d

int GetAllXsec.nEv_mc16d = 0.

Definition at line 107 of file GetAllXsec.py.

◆ nEv_mc16e

int GetAllXsec.nEv_mc16e = 0.

Definition at line 108 of file GetAllXsec.py.

◆ nEvents

GetAllXsec.nEvents = 0

Definition at line 63 of file GetAllXsec.py.

◆ OutputFile

string GetAllXsec.OutputFile = xsecFolder+"/list_Xsec_"+Process+".txt"

Definition at line 147 of file GetAllXsec.py.

◆ processed_DSIDs

list GetAllXsec.processed_DSIDs = []

Definition at line 49 of file GetAllXsec.py.

◆ SampleLumi

int GetAllXsec.SampleLumi = "Undef"

Definition at line 128 of file GetAllXsec.py.

◆ SortingTag

GetAllXsec.SortingTag = AllInfo.SortingTag

Definition at line 83 of file GetAllXsec.py.

◆ statusFiles_list

GetAllXsec.statusFiles_list = glob.glob(entry+"/Status*.txt")

Definition at line 58 of file GetAllXsec.py.

◆ tableEntry

Definition at line 142 of file GetAllXsec.py.

◆ totalEvents

int GetAllXsec.totalEvents = AllInfo.totalEvents

Definition at line 68 of file GetAllXsec.py.

◆ xsec

int GetAllXsec.xsec = AllInfo.Xsec

Definition at line 85 of file GetAllXsec.py.

◆ xsecFolder

string GetAllXsec.xsecFolder = mainFolder+"/XsecFiles/"

Definition at line 30 of file GetAllXsec.py.

GetAllXsec.is_number
def is_number(s)
Definition: GetAllXsec.py:21
readCCLHist.float
float
Definition: readCCLHist.py:83