Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10664235
simpleExample.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
782 B
Subscribers
None
simpleExample.py
View Options
#!/usr/bin/env python
from
SpartyJetConfig
import
*
#===============================================
# Create a jet builder(MessageLevel = INFO)------
builder
=
SJ
.
JetBuilder
(
SJ
.
INFO
)
# Create input object and add to builder --------
input
=
SJ
.
StdTextInput
(
'../data/J1_Clusters.dat'
)
builder
.
configure_input
(
input
)
# Create jet finder and add to builder ----------
antikt4
=
SJ
.
FastJet
.
FastJetFinder
(
'AntiKt4'
,
fj
.
antikt_algorithm
,
0.4
)
builder
.
add_default_alg
(
antikt4
)
# Configure text output--------------------------
builder
.
add_text_output
(
"../data/output/simple.dat"
)
# Configure ntuple 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:33 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4835079
Default Alt Text
simpleExample.py (782 B)
Attached To
rSPARTYJETSVN spartyjetsvn
Event Timeline
Log In to Comment