Dear Sudeshna
Yes, you can write,
There is an example project for showing the access to databases.
$ROMESYS/examples/dbexample/
For writing, an example is
$ROMESYS/examples/dbexample/src/tasks/RDBTWriteFolders.cpp
If you prefer to use normal SQL queries rather than using the ROME DB path. An example is,
$ROMESYS/examples/dbexample/src/tasks/RDBTMakeQuery.cpp
By using SQL query, you can do anything about DB.
More information is in wiki,
https://bitbucket.org/muegamma/rome3/wiki/Database
Best regards,
Ryu
> I need some suggestions on how to write some data to a mySQL database via ROME.
>
> I am calculating a quantity CTag and making a TGraph of CTag/event in ROME. Now
> if I want to write it to a mySQL what shall I do?
>
> From the manual I found that we can read from a database DAQ (SQL) system. That
> it reads the main input data from a database. And I looked into the example
> under'rome/examples/stepbystepdbdaq'.
>
> But is there any way I can write the calculated CTags and Event Numbers to a SQL
> database?
>
> Thanks for any suggestion! |