29 int main(
int argc, 
char **argv)
 
   40     JParser<> zap(
"Auxiliary program to make stack of ROOT histograms.");
 
   42     zap[
'f'] = 
make_field(inputFile,  
"<input file>:<object name>");
 
   48   catch(
const exception &error) {
 
   49     FATAL(error.what() << endl);
 
   57     DEBUG(
"Input: " << *input << endl);
 
   62       ERROR(
"File: " << input->getFullFilename() << 
" not opened." << endl);
 
   66     const TRegexp regexp(input->getObjectName());
 
   68     TIter iter(dir->GetListOfKeys());
 
   70     for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
 
   72       const TString tag(key->GetName());
 
   74       DEBUG(
"Key: " << tag << 
" match = " << tag.Contains(regexp) << endl);
 
   78       if (tag.Contains(regexp) && 
isTObject(key)) {
 
   80         TH1* h1 = 
dynamic_cast<TH1*
>(key->ReadObj());
 
   85             hs = 
new THStack(
MAKE_CSTRING(h1->GetName() << 
"_s"), NULL);
 
General purpose messaging.
 
#define DEBUG(A)
Message macros.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
I/O formatting auxiliaries.
 
#define MAKE_CSTRING(A)
Make C-string.
 
int main(int argc, char **argv)
 
Utility class to parse command line options.
 
TDirectory * getDirectory(const JRootObjectID &id)
Get TDirectory pointer.
 
bool isTObject(const TKey *key)
Check if given key corresponds to a TObject.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).