22 int main(
int argc, 
char **argv)
 
   31     JParser<> zap(
"Auxiliary program to print ROOT TTree information.");
 
   38   catch(
const exception &error) {
 
   39     FATAL(error.what() << endl);
 
   42   gErrorIgnoreLevel = kFatal;
 
   44   int number_of_errors = 0;
 
   48     TFile* 
file = TFile::Open(file_name->c_str());
 
   50     cout << *file_name << flush;
 
   56       TIter iter(file->GetListOfKeys(), kIterBackward);
 
   58       for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
 
   60         TKey* p = 
dynamic_cast<TKey*
>(file->GetListOfKeys()->Before(key));
 
   62         if (p == NULL || strcmp(key->GetName(), p->GetName()) != 0) {                      
 
   64           TTree* tree = 
dynamic_cast<TTree*
>(key->ReadObj());
 
   68             TBranch* branch = 
dynamic_cast<TBranch*
>(tree->GetListOfBranches()->At(0));    
 
   71               cout << setw(24) << left  <<  key->GetName()             << 
' ' 
   72                    << setw(32) << left  <<  branch->GetClassName()     << 
' '  
   73                    << setw(10) << right <<  tree->GetEntries()         << 
' ' 
   74                    << setw( 6) << right << (tree->GetTotBytes() >> 20) << 
" [MB]" << endl;
 
   84       cout << 
" not opened." << endl;
 
   88   return (number_of_errors == 0 ? 0 : 1);
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
then usage $script[< detector identifier >< run range >]< QA/QCfile > nExample script to produce data quality plots nWhen a detector identifier and run range are data are downloaded from the database nand subsequently stored in the given QA QC file
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose messaging. 
 
Utility class to parse command line options.