Go Back to: C++ Manual General Site

LDMX.Conditions package

Submodules

LDMX.Conditions.SimpleCSVTableProvider module

SimpleCSVTableProvider

Specialization of ConditionsObjectProvider for simple tables indexed by detid

class LDMX.Conditions.SimpleCSVTableProvider.SimpleCSVDoubleTableProvider(objName, columns)

Bases: SimpleCSVTableProvider

Provider for tables of doubles

class LDMX.Conditions.SimpleCSVTableProvider.SimpleCSVIntegerTableProvider(objName, columns)

Bases: SimpleCSVTableProvider

Provider for tables of integers

class LDMX.Conditions.SimpleCSVTableProvider.SimpleCSVTableEntry(url)

Bases: object

One entry in the providing table

This defines an “entry” in the table provider corresponding to a certain Interval Of Validity (IOV). The entry can be be valid between two run number, over all time, only for MC, only for Data, or for both. The entry is retrieved from a URL location.

Parameters:

url (str) – URL to download the table entry from

setIOV(firstRun, lastRun)

Set the Interval Of Validity for this table entry

Parameters:
  • firstRun (int) – First run number that this entry is valid for

  • lastRun (int) – Last run number that this entry is valid for

class LDMX.Conditions.SimpleCSVTableProvider.SimpleCSVTableProvider(objName, dataType, columns)

Bases: ConditionsObjectProvider

Provides a uniform table of a specific type

Parametrs

objNamestr

Name of object that this provider provides (e.g. EcalGains)

dataTypestr

Name of type of data stored in this table (e.g. “int” or “double”)

columnslist of str

List of column names for this table

conditions_baseURLstr

Base location for URLs, filling the LDMX_CONDITION_BASEURL parameter inside any table’s URL

entriesURLstr

URL to a CSV table mapping tables to specific intervals of validity. Optional.

validForAllRows(values)

Define a value to use for all rows instead of downloading the table from a URL

Parameters:

values (list) – A value for each column to use for all rows

validForRuns(url, firstRun, lastRun)

Add an entry to this provider that is valid between the input run numbers

Parameters:
  • url (str) – Location to download the table from

  • firstRun (int) – First run number that this entry is valid for

  • lastRun (int) – Last run number that this entry is valid for

validForever(url)

Add an entry to this provider that is valid forever and for all run types (data or MC)

Parameters:

url (str) – Location to download the table from

Module contents