/*
* Delphes: a framework for fast simulation of a generic collider experiment
* Copyright (C) 2012-2014 Universite catholique de Louvain (UCL), Belgium
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include
#include
#include
#include "TApplication.h"
#include "TROOT.h"
#include "TSystem.h"
#include "TString.h"
#include "TClonesArray.h"
#include "TH2.h"
#include "THStack.h"
#include "TLegend.h"
#include "TLorentzVector.h"
#include "TPaveText.h"
#include "classes/DelphesClasses.h"
#include "ExRootAnalysis/ExRootResult.h"
#include "ExRootAnalysis/ExRootTreeBranch.h"
#include "ExRootAnalysis/ExRootTreeReader.h"
#include "ExRootAnalysis/ExRootTreeWriter.h"
#include "ExRootAnalysis/ExRootUtilities.h"
using namespace std;
//------------------------------------------------------------------------------
// Here you can put your analysis macro
#include "Example1.C"
//------------------------------------------------------------------------------
int main(int argc, char *argv[])
{
char *appName = "Example1";
if(argc != 2)
{
cout << " Usage: " << appName << " input_file" << endl;
cout << " input_file - input file in ROOT format ('Delphes' tree)," << endl;
return 1;
}
gROOT->SetBatch();
int appargc = 1;
char *appargv[] = {appName};
TApplication app(appName, &appargc, appargv);
TString inputFile(argv[1]);
//------------------------------------------------------------------------------
// Here you call your macro's main function
Example1(inputFile);
//------------------------------------------------------------------------------
}