#include <TString.h>
#include "MdtCalibT0/T0MTHistos.h"
#include "TClass.h"
#include "TDirectory.h"
#include "TFile.h"
#include "TH1.h"
#include "TKey.h"
#include "TObject.h"
#include "TROOT.h"
#include "cstdlib"
#include "iostream"
#include "string"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 21 of file T0Fit.cxx.
24 throw std::runtime_error(
25 Form(
"File: %s, Line: %d\nT0Fit::main() - Usage: %s <input file> <output file>!", __FILE__, __LINE__,
argv[0]));
28 TROOT wurscht(
"wurscht",
"wurscht");
36 throw std::runtime_error(
37 Form(
"File: %s, Line: %d\nT0Fit::main() - Cannot find TDirectory 'MT_t0_fitter' in file %s!", __FILE__, __LINE__,
argv[1]));
40 TIter nextkey(
dir->GetListOfKeys());
43 while ((
key = (TKey *)nextkey())) {
44 TObject *
obj =
key->ReadObj();
45 if (
obj->IsA()->InheritsFrom(
"TH1F")) {
47 if (
hist == NULL)
continue;
49 if (
hname ==
"t_spec_Summary")
continue;
50 hist->GetListOfFunctions()->Clear();