Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10664330
ntupleExample.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
853 B
Subscribers
None
ntupleExample.py
View Options
#!/usr/bin/env python
from
SpartyJetConfig
import
*
#===============================================
# Create a jet builder---------------------------
builder
=
SJ
.
JetBuilder
(
SJ
.
INFO
)
# Configure input -------------------------------
## Cluster input
# (defined in python/SpartyJetConfig.py)
input
=
createNtupleInputMaker
(
'../data/J2_clusters_wPile.root'
,
inputprefix
=
'Cluster'
)
## Parton-level input
#input = createNtupleInputMaker('../data/Wenu3parton.root')
#input.set_pdgId_name('pdgId')
builder
.
configure_input
(
input
)
# Configure algorithms --------------------------
anti4
=
SJ
.
FastJet
.
FastJetFinder
(
'AntiKt4'
,
fj
.
antikt_algorithm
,
0.4
,
False
)
builder
.
add_default_alg
(
anti4
)
# Configure output--------------------------------
builder
.
configure_output
(
"SpartyJet_Tree"
,
"../data/output/simple.root"
)
# Run SpartyJet
builder
.
process_events
(
10
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Apr 24, 6:36 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4884717
Default Alt Text
ntupleExample.py (853 B)
Attached To
rSPARTYJETSVN spartyjetsvn
Event Timeline
Log In to Comment