Last change
on this file since 1 was
1,
checked in by zerwas, 11 years ago
|
first import of structure, PYTHIA8 and DELPHES
|
File size:
733 bytes
|
Line | |
---|
1 | { |
---|
2 | #include <stdexcept> |
---|
3 | gSystem->Load("libDelphes"); |
---|
4 | |
---|
5 | TFile *outputFile = TFile::Open("test.root", "RECREATE"); |
---|
6 | ExRootTreeWriter *treeWriter = new ExRootTreeWriter(outputFile, "Delphes"); |
---|
7 | |
---|
8 | ExRootConfReader *confReader = new ExRootConfReader; |
---|
9 | |
---|
10 | Delphes *modularDelphes = new Delphes("Delphes"); |
---|
11 | |
---|
12 | TObjArray *particleOutputArray = modularDelphes->ExportArray("particles"); |
---|
13 | TObjArray *candidateOutputArray = modularDelphes->ExportArray("candidates"); |
---|
14 | TObjArray *partonOutputArray = modularDelphes->ExportArray("partons"); |
---|
15 | |
---|
16 | confReader->ReadFile("etc/delphes_card_CMS.tcl"); |
---|
17 | |
---|
18 | modularDelphes->SetConfReader(confReader); |
---|
19 | modularDelphes->SetTreeWriter(treeWriter); |
---|
20 | |
---|
21 | modularDelphes->InitTask(); |
---|
22 | |
---|
23 | TBrowser browser; |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.