GWOLLUM  4.2.0
Tools for gravitational-wave analyses
gwl-txt-to-tree.cc File Reference

Program to generate a ROOT TTree structure in a ROOT file using parameters saved in a text file. More...

#include "CUtils.h"
#include "TFile.h"
#include "TTree.h"
Include dependency graph for gwl-txt-to-tree.cc:

Functions

int main (int argc, char *argv[])
 

Detailed Description

Program to generate a ROOT TTree structure in a ROOT file using parameters saved in a text file.

cerr<<endl;
cerr<<"usage:"<<endl;
cerr<<argv[0]<<" [input text file] [tree name] [column headers]"<<endl;
cerr<<endl;
cerr<<" [input text file]: txt file with columns of data"<<endl;
cerr<<" [tree name] : name for output tree"<<endl;
cerr<<" [column headers] : list of columns to read"<<endl;
cerr<<" name/type"<<endl;
cerr<<" I for integer"<<endl;
cerr<<" F for float"<<endl;
cerr<<" D for double"<<endl;
cerr<<" C for character string"<<endl;
cerr<<" ex: gps/D:frequency/D:SNR/D"<<endl;
cerr<<" *All* columns must be listed"<<endl;
cerr<<" For accepted format, see: https://root.cern.ch/doc/master/classTTree.html#addcolumnoffundamentaltypes"<<endl;
cerr<<endl;
cerr<<" Also accepted: name1:name2:... (all columns are considered as float)"<<endl;
cerr<<endl;
cerr<<" See also: https://root.cern.ch/doc/master/classTTree.html#a9c8da1fbc68221b31c21e55bddf72ce7"<<endl;
cerr<<endl;
Author
Florent Robinet - florent.robinet@ijclab.in2p3.fr

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

[gwl-txt-to-tree-usage]

[gwl-txt-to-tree-usage]