ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since 50d7259 was a8782e8, checked in by Michele Selvaggi <michele.selvaggi@…>, 10 years ago |
replace examples by cards
|
-
Property mode
set to
100644
|
File size:
793 bytes
|
Rev | Line | |
---|
[d7d2da3] | 1 | /*
|
---|
| 2 | root -l examples/DelphesBrowser.C
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | {
|
---|
| 6 | #include <stdexcept>
|
---|
| 7 | gSystem->Load("libDelphes");
|
---|
| 8 |
|
---|
| 9 | TFile *outputFile = TFile::Open("test.root", "RECREATE");
|
---|
| 10 | ExRootTreeWriter *treeWriter = new ExRootTreeWriter(outputFile, "Delphes");
|
---|
| 11 |
|
---|
| 12 | ExRootConfReader *confReader = new ExRootConfReader;
|
---|
| 13 |
|
---|
| 14 | Delphes *modularDelphes = new Delphes("Delphes");
|
---|
| 15 |
|
---|
| 16 | TObjArray *allParticleOutputArray = modularDelphes->ExportArray("allParticles");
|
---|
| 17 | TObjArray *stableParticleOutputArray = modularDelphes->ExportArray("stableParticles");
|
---|
| 18 | TObjArray *partonOutputArray = modularDelphes->ExportArray("partons");
|
---|
| 19 |
|
---|
[a8782e8] | 20 | confReader->ReadFile("cards/delphes_card_CMS.tcl");
|
---|
[d7d2da3] | 21 |
|
---|
| 22 | modularDelphes->SetConfReader(confReader);
|
---|
| 23 | modularDelphes->SetTreeWriter(treeWriter);
|
---|
| 24 |
|
---|
| 25 | modularDelphes->InitTask();
|
---|
| 26 |
|
---|
| 27 | TBrowser browser;
|
---|
[a8782e8] | 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.