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

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:
65  contents = "".join(handle.readlines())
66  data = json.loads(contents)
67  self._data = data
68  self._sub_data = data
69 
def __init__(self, json_file_name)
Definition: data_sources.py:61
static std::string join(char **cmd)
Definition: RemoteFile.cc:18

Member Function Documentation

def data_sources.json_file.__str__ (   self)
def data_sources.json_file.data (   self)
def data_sources.json_file.raw (   self)

Definition at line 73 of file data_sources.py.

References data_sources.node._data, and HcalTriggerKey._data.

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

Member Data Documentation

data_sources.json_file._data
private
data_sources.json_file._file_name
private

Definition at line 63 of file data_sources.py.

data_sources.json_file._sub_data
private

Definition at line 68 of file data_sources.py.