#include <iostream>
#include <fstream>
#include "TString.h"
#include "TRegexp.h"
#include "TFile.h"
#include "Jeep/JParser.hh"
#include "JTest_t.hh"
#include "JTestDictionary.hh"
#include "JGizmo/JRootObjectID.hh"
#include "JGizmo/JGizmoToolkit.hh"
#include "JSupport/JMeta.hh"
Go to the source code of this file.
Definition at line 24 of file JMantisShrimp.cc.
33 ERROR(
"File: " << pattern->getFullFilename() <<
" not opened." << endl);
37 const TRegexp regexp(pattern->getObjectName());
39 TIter iter(dir->GetListOfKeys());
41 for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
43 const TString tag(key->GetName());
45 if (tag.Contains(regexp)) {
48 p->SetUniqueID(dir->GetUUID().GetUUIDNumber());
49 listOfObjects.push_back(p);
TDirectory * getDirectory(const JRootObjectID &id)
Get TDirectory pointer.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 63 of file JMantisShrimp.cc.
76 zap[
't'] =
make_field(test,
"Test parameters");
77 zap[
'o'] =
make_field(output,
"output file") =
"out.root";
80 catch(
const exception &error) {
81 ERROR(error.what() << endl);
88 istringstream iss(test);
98 d[testID]->test(*object_a,*object_b);
102 TFile out(output.c_str(),
"recreate");
105 d[testID]->write(cout);
106 d[testID]->save(&out,
"");
Utility class to parse command line options.
vector< TObject * > getListOfObjects(vector< JRootObjectID > listOfPatterns)
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
bool putObject(TDirectory *dir, const T &object)
Write object to ROOT directory.