CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
data_sources.json_file Class Reference
Inheritance diagram for data_sources.json_file:
data_sources.data_source data_sources.node

Public Member Functions

def __init__ (self, json_file_name)
 
def __str__ (self)
 
def data (self)
 
def raw (self)
 
- Public Member Functions inherited from data_sources.data_source
def __init__ (self)
 
def __repr__ (self)
 
def get_data (self)
 
- Public Member Functions inherited from data_sources.node
def __init__ (self, data=None)
 
def __str__ (self)
 
def add_child (self, node_data)
 
def child (self, index)
 
def children (self)
 
def data (self)
 
def is_leaf (self)
 
def left_child (self)
 
def right_child (self)
 

Private Attributes

 _data
 
 _file_name
 
 _sub_data
 

Detailed Description

Definition at line 55 of file data_sources.py.

Constructor & Destructor Documentation

◆ __init__()

def data_sources.json_file.__init__ (   self,
  json_file_name 
)

Definition at line 61 of file data_sources.py.

61  def __init__(self, json_file_name):
62  # read the file, then parse into JSON object
63  self._file_name = json_file_name
64  with open(self._file_name, "r") as handle: contents = "".join(handle.readlines())
65  data = json.loads(contents)
66  self._data = data
67  self._sub_data = data
68 
69 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Member Function Documentation

◆ __str__()

◆ data()

def data_sources.json_file.data (   self)

Definition at line 70 of file data_sources.py.

References data_sources.node._data, and conddb2hdf5.DBPayload._data.

Referenced by data_sources.json_list.as_dicts(), data_sources.json_list.as_table(), data_sources.json_list.get_members(), and data_sources.json_list.last().

70  def data(self):
71  return json_data_node.make(self._data)
72 
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ raw()

def data_sources.json_file.raw (   self)

Definition at line 73 of file data_sources.py.

References data_sources.node._data, and conddb2hdf5.DBPayload._data.

73  def raw(self):
74  return self._data
75 

Member Data Documentation

◆ _data

◆ _file_name

data_sources.json_file._file_name
private

Definition at line 63 of file data_sources.py.

◆ _sub_data

data_sources.json_file._sub_data
private

Definition at line 68 of file data_sources.py.