Fork me on GitHub

source: svn/trunk/Examples/LHCO_Only.cpp@ 572

Last change on this file since 572 was 443, checked in by Xavier Rouby, 15 years ago

new header in all files

File size: 3.5 KB
Line 
1/***********************************************************************
2** **
3** /----------------------------------------------\ **
4** | Delphes, a framework for the fast simulation | **
5** | of a generic collider experiment | **
6** \------------- arXiv:0903.2225v1 ------------/ **
7** **
8** **
9** This package uses: **
10** ------------------ **
11** ROOT: Nucl. Inst. & Meth. in Phys. Res. A389 (1997) 81-86 **
12** FastJet algorithm: Phys. Lett. B641 (2006) [hep-ph/0512210] **
13** Hector: JINST 2:P09005 (2007) [physics.acc-ph:0707.1198v2] **
14** FROG: [hep-ex/0901.2718v1] **
15** HepMC: Comput. Phys. Commun.134 (2001) 41 **
16** **
17** ------------------------------------------------------------------ **
18** **
19** Main authors: **
20** ------------- **
21** **
22** Severine Ovyn Xavier Rouby **
23** severine.ovyn@uclouvain.be xavier.rouby@cern **
24** **
25** Center for Particle Physics and Phenomenology (CP3) **
26** Universite catholique de Louvain (UCL) **
27** Louvain-la-Neuve, Belgium **
28** **
29** Copyright (C) 2008-2009, **
30** All rights reserved. **
31** **
32***********************************************************************/
33
34/// \file LHCO_Only.cpp
35/// \brief standalone executable for running the LHCO-converter
36
37#include "TChain.h"
38#include "TFile.h"
39#include "TApplication.h"
40#include "LHCOConverter.h"
41
42#include "ExRootTreeReader.h"
43#include "ExRootTreeWriter.h"
44#include "ExRootTreeBranch.h"
45#include "BlockClasses.h"
46
47#include <iostream>
48#include <vector>
49#include <fstream>
50#include <iomanip>
51
52
53using namespace std;
54
55
56int main(int argc, char *argv[])
57{
58 int appargc = 2;
59 char *appName= new char[20];
60 char *appOpt= new char[20];
61 sprintf(appName,"LHCO_Only");
62 sprintf(appOpt,"-b");
63 char *appargv[] = {appName,appOpt};
64 TApplication app(appName, &appargc, appargv);
65 delete [] appName;
66 delete [] appOpt;
67
68 if(argc != 2 && argc !=3 ) {
69 cout << " Usage: " << argv[0] << " input_file [runlog_file] " << endl;
70 cout << " input_file - file in Delphes root format," << endl;
71 cout << " [runlog_file] - the corresponding log file (optional) "<<endl;
72 exit(1);
73 }
74
75 string rootfile = argv[1];
76 string logfile;
77 if(argc ==3) logfile=argv[2];
78
79 LHCOConverter converter(rootfile,logfile);
80 converter.CopyRunLogFile();
81 converter.ConvertExRootAnalysisToLHCO();
82
83 cout << "** Exiting..." << endl;
84
85}
86
Note: See TracBrowser for help on using the repository browser.