/* * 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 "TROOT.h" #include "TSystem.h" #include "TApplication.h" #include "TString.h" #include "TH2.h" #include "THStack.h" #include "TLegend.h" #include "TPaveText.h" #include "TClonesArray.h" #include "TLorentzVector.h" #include "classes/DelphesClasses.h" #include "ExRootAnalysis/ExRootTreeReader.h" #include "ExRootAnalysis/ExRootTreeWriter.h" #include "ExRootAnalysis/ExRootTreeBranch.h" #include "ExRootAnalysis/ExRootResult.h" #include "ExRootAnalysis/ExRootUtilities.h" using namespace std; //------------------------------------------------------------------------------ // Here you can put your analysis macro #define MUON #include "Validation.C" //------------------------------------------------------------------------------ int main(int argc, char *argv[]) { char *appName = "Validation"; if(argc != 3) { cout << " Usage: " << appName << " input_file output_file" << endl; cout << " input_file - input file in ROOT format ('Delphes' tree)," << endl; cout << " output_file - output file in ROOT format" << endl; return 1; } gROOT->SetBatch(); int appargc = 1; char *appargv[] = {appName}; TApplication app(appName, &appargc, appargv); TString inputFile(argv[1]); TString outputFile(argv[2]); //------------------------------------------------------------------------------ // Here you call your macro's main function Validation(inputFile, outputFile); //------------------------------------------------------------------------------ }