CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
shell Namespace Reference

Functions

def close_connections
 
def connect
 

Variables

list connections = []
 

Detailed Description

Contains classes for shell part of framework - basically a collection of classes that are designed to be invoked on the command line.

Function Documentation

def shell.close_connections (   verbose = True)

Definition at line 20 of file shell.py.

References print().

20 
21 def close_connections(verbose=True):
22  global connections
23  for connection in connections:
24  connection_string = "%s/%s" % (connection.connection_data["database_name"], connection.connection_data["schema"])
25  connection.tear_down()
26  if verbose:
print("Connection to %s was closed." % connection_string)
def close_connections
Definition: shell.py:20
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def shell.connect (   connection_data = None,
  mode = "r",
  map_blobs = False,
  secrets = None,
  pooling = True 
)

Definition at line 13 of file shell.py.

References querying.connect().

Referenced by shell_tests.shell_tests.test_init_shell().

13 
14 def connect(connection_data=None, mode="r", map_blobs=False, secrets=None, pooling=True):
15  if connection_data == None:
16  connection_data = "frontier://FrontierProd/CMS_CONDITIONS"
17  connection = querying.connect(connection_data, mode=mode, map_blobs=map_blobs, secrets=secrets, pooling=pooling)
18  connections.append(connection)
19  return connection
def connect
Definition: shell.py:13
def connect
Definition: querying.py:453

Variable Documentation

list shell.connections = []

Definition at line 10 of file shell.py.

Referenced by SiStripFineDelayHit.beginRun(), TrackerDpgAnalysis.beginRun(), SiStripCondObjBuilderFromDb.buildAnalysisRelatedObjects(), SiStripCondObjBuilderFromDb.buildFECRelatedObjects(), SiStripCondObjBuilderFromDb.buildFEDRelatedObjects(), and sistrip::SpyEventMatcherModule.findL1IDandAPVAddress().