-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the ntuple processor and add an example macro
- Loading branch information
Showing
4 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Example of creating a ROOT Ntuple output file | ||
|
||
/glg4debug/glg4param omit_muon_processes 1.0 | ||
/glg4debug/glg4param omit_hadronic_processes 1.0 | ||
|
||
/rat/db/set DETECTOR experiment "cylinder" | ||
/rat/db/set DETECTOR geo_file "cylinder/cylinder.geo" | ||
|
||
/run/initialize | ||
|
||
# BEGIN EVENT LOOP | ||
|
||
/rat/proc count | ||
/rat/procset update 10 | ||
|
||
# The first argument is the output filename, and the following arguments | ||
# are a list of the Ntuples to write. The fields in these Ntuples are defined | ||
# in NTUPLE.ratdb. | ||
/rat/proc python | ||
/rat/procset class "ratproc.Ntuple('ntuple.root', 'mc')" | ||
|
||
#END EVENT LOOP | ||
|
||
/generator/add combo gun:fill | ||
/generator/vtx/set e- 0 0 0 10.0 | ||
/generator/pos/set 0 0 0 | ||
/generator/rate/set 1.0 | ||
|
||
/run/beamOn 100 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from count import Count | ||
from hist import Hist | ||
from deltat import DeltaT | ||
from ntuple import Ntuple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters