| 212 | === Some general root file options === |
| 213 | |
| 214 | The output file name can be changed with {{{--out}}} and the tree name with {{{--tree}}}. |
| 215 | |
| 216 | {{{ |
| 217 | fact@ihp-pc45:~/FACT++/build> rootifysql -f --query="SELECT 1" --out newfile.root --tree MyTree |
| 218 | [...] |
| 219 | Opening file 'newfile.root' [compression=1]... |
| 220 | Writing data to tree 'MyTree' |
| 221 | [...] |
| 222 | }}} |
| 223 | |
| 224 | To update en existing file use {{{--update}}}. |
| 225 | |
| 226 | {{{ |
| 227 | fact@ihp-pc45:~/FACT++/build> rootifysql --update --query="SELECT 1" --out newfile.root --tree MyNewTree |
| 228 | [...] |
| 229 | Opening file 'newfile.root' [compression=1]... |
| 230 | Writing data to tree 'MyTree' |
| 231 | [...] |
| 232 | }}} |
| 233 | |
| 234 | Note that this will always create a new tree in an existing file. You can not update an existing tree. |
| 235 | |
| 236 | The compression can be changed with {{{-c}}} (short for {{{--compression}}}) |
| 237 | |
| 238 | {{{ |
| 239 | fact@ihp-pc45:~/FACT++/build> rootifysql --update --query="SELECT 1" |
| 240 | [...] |
| 241 | Opening file 'rootifysql.root' [compression=9]... |
| 242 | [...] |
| 243 | }}} |
| 244 | |
| 245 | |
| 246 | |