rewrite.lib.utils package

Submodules

rewrite.lib.utils.WriterToMongoDB module

class rewrite.lib.utils.WriterToMongoDB.WriterToMongoDB(logger=None)[source]

Bases: object

Writes incoming data to the MongoDB for storage

DBWriter()[source]
runDaemon()[source]

rewrite.lib.utils.ReaderFromMongoDB module

class rewrite.lib.utils.ReaderFromMongoDB.ReaderFromMongoDB(logger=None)[source]

Bases: object

Class that read data from MongoDB and sends it as if it were coming from a DAQ card. This is a basic version, which can be extended. Inits the MongoDB connection and the zeromq socket. This needs to start before any analysis.

clear_queues()[source]

Fake function. Just for API compatibility

do(arg)[source]

Fake function. Just for API compatibility

get_temp_and_pressure()[source]

Fake function. Just for API compatibility

read_scalars()[source]

Fake function. Just for API compatibility

reset_scalars()[source]

Fake function. Just for API compatibility

run()[source]

Get data from a certain timeframe from the db and then sends it through the socket.

setRunning(state)[source]

Fake function. Just for API compatibility

set_threashold(ch0, ch1, ch2, ch3)[source]

Fake function. Just for API compatibility

setup_channel(ch0, ch1, ch2, ch3, coincidence)[source]

Fake function. Just for API compatibility

start_reading_data()[source]

Fake function. Just for API compatibility

stop_reading_data()[source]

Fake function. Just for API compatibility

Module contents