#include <iostream>
#include <string>
#include <vector>
#include <map>
#include "Jeep/JParser.hh"
#include "TH1.h"
#include "TFile.h"
#include "TKey.h"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 15 of file JMergeNB.cc.
29 catch(
const exception &error) {
30 ERROR(error.what() << endl);
37 cout <<
" Now processing: " << *
i << endl;
38 TFile
in(
i->c_str() ,
"read");
40 TIter iter(
in.GetListOfKeys());
42 for(TKey *key; (key = (TKey*) iter.Next()) != NULL; ){
44 TH1* h =
dynamic_cast<TH1*
>(key->ReadObj());
48 map_type::iterator p = zmap.find(h->GetName());
52 p = zmap.insert( make_pair( h->GetName(), (TH1*) h->Clone() )).first;
61 for (map_type::iterator
i = zmap.begin();
i != zmap.end(); ++
i) {
62 i->second->SetDirectory(0);
68 TFile output(outFile.c_str() ,
"recreate") ;
69 for (map_type::iterator
i = zmap.begin();
i != zmap.end(); ++
i) {
71 TH1D* hist = (TH1D*)
i->second;
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
std::map< int, range_type > map_type