ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since 7b461f6 was 090fe5e, checked in by pavel <pavel@…>, 11 years ago |
add Example1.cpp
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | #include <iostream>
|
---|
2 | #include <utility>
|
---|
3 | #include <vector>
|
---|
4 |
|
---|
5 | #include "TROOT.h"
|
---|
6 | #include "TSystem.h"
|
---|
7 | #include "TApplication.h"
|
---|
8 |
|
---|
9 | #include "TString.h"
|
---|
10 |
|
---|
11 | #include "TH2.h"
|
---|
12 | #include "THStack.h"
|
---|
13 | #include "TLegend.h"
|
---|
14 | #include "TPaveText.h"
|
---|
15 | #include "TClonesArray.h"
|
---|
16 | #include "TLorentzVector.h"
|
---|
17 |
|
---|
18 | #include "classes/DelphesClasses.h"
|
---|
19 |
|
---|
20 | #include "ExRootAnalysis/ExRootTreeReader.h"
|
---|
21 | #include "ExRootAnalysis/ExRootTreeWriter.h"
|
---|
22 | #include "ExRootAnalysis/ExRootTreeBranch.h"
|
---|
23 | #include "ExRootAnalysis/ExRootResult.h"
|
---|
24 | #include "ExRootAnalysis/ExRootUtilities.h"
|
---|
25 |
|
---|
26 | using namespace std;
|
---|
27 |
|
---|
28 | //------------------------------------------------------------------------------
|
---|
29 |
|
---|
30 | // Here you can put your analysis macro
|
---|
31 |
|
---|
32 | #include "Example3.C"
|
---|
33 |
|
---|
34 | //------------------------------------------------------------------------------
|
---|
35 |
|
---|
36 | int main(int argc, char *argv[])
|
---|
37 | {
|
---|
38 | char *appName = "Example1";
|
---|
39 |
|
---|
40 | if(argc != 2)
|
---|
41 | {
|
---|
42 | cout << " Usage: " << appName << " input_file" << endl;
|
---|
43 | cout << " input_file - input file in ROOT format ('Delphes' tree)," << endl;
|
---|
44 | return 1;
|
---|
45 | }
|
---|
46 |
|
---|
47 | gROOT->SetBatch();
|
---|
48 |
|
---|
49 | int appargc = 1;
|
---|
50 | char *appargv[] = {appName};
|
---|
51 | TApplication app(appName, &appargc, appargv);
|
---|
52 |
|
---|
53 | TString inputFile(argv[1]);
|
---|
54 |
|
---|
55 | //------------------------------------------------------------------------------
|
---|
56 |
|
---|
57 | // Here you call your macro's main function
|
---|
58 |
|
---|
59 | Example3(inputFile);
|
---|
60 |
|
---|
61 | //------------------------------------------------------------------------------
|
---|
62 |
|
---|
63 | }
|
---|
64 |
|
---|
65 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.