Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10664219
testMergeOutput.C
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
testMergeOutput.C
View Options
{
gSystem
->
Load
(
"libTree.so"
)
;
// needed with recent ROOT version
gSystem
->
Load
(
"libPhysics.so"
);
gSystem
->
Load
(
"../libs/libJetCore.so"
);
gSystem
->
Load
(
"../libs/libJetTools.so"
);
gSystem
->
Load
(
"../libs/libATLASJet.so"
);
// load libExtras.so before !
using
namespace
SpartyJet
;
// This is the main class
JetBuilder
builder
;
JetBuilder
builder2
;
// configure an interface to the tree --------------
//atlas::CBNTInput input;
NtupleInputMaker
input
(
NtupleInputMaker
::
EtaPhiPtE_vector_float
);
// give variable names
input
.
set_prefix
(
"Cluster_"
);
input
.
set_variables
(
"eta"
,
"phi"
,
"p_T"
,
"e"
);
input
.
set_n_name
(
"N"
);
input
.
set_masslessMode
(
true
);
// consider clusters as massless
// Give a name to input :
input
.
set_name
(
"InputJet"
);
// give input file and tree names
input
.
setFileTree
(
"../data/J2_clusters.root"
,
"clusterTree"
);
// Finally assign input class to the builder
builder
.
configure_input
((
InputMaker
*
)
&
input
);
builder2
.
configure_input
((
InputMaker
*
)
&
input
);
// ------------------------------------------------
// Get energy scale from Input class
double
GeV
=
input
.
getGeV
();
// Schedule 2 algorithms --------------------------------
// instanciate a jet finder tool, configure it and add it to the builder
atlas
::
FastKtTool
*
fastkt
=
new
atlas
::
FastKtTool
(
"FastKt"
);
fastkt
->
simple_config
(
"Standard"
,
0.7
)
;
builder
.
add_default_alg
(
fastkt
);
atlas
::
ConeFinderTool
*
coneF
=
new
atlas
::
ConeFinderTool
(
"ConeFinder"
);
coneF
->
set_config
(
0.7
,
2
*
GeV
,
0.5
);
builder2
.
add_default_alg
(
coneF
);
// ------------------------------------------------
// atlas::FastKtTool * fastkta = new atlas::FastKtTool("FastKtAA");
// fastkta->simple_config("Aachen",0.7);
// builder.add_default_alg(fastkta , true);
// Other settings ---------------------------------
// configure min Pt cuts for input and output jets
//builder.set_default_cut(0,2*GeV);
// Schedule calculation of some jet moments
EtaPhiMomentTool
*
mom
=
new
EtaPhiMomentTool
(
"EtaPhiMom"
);
builder
.
add_moments
(
mom
);
// Give final file and tree name
builder
.
configure_output
(
"myTree"
,
"../data/output/testMergeOutput.root"
);
builder2
.
configure_output
(
"myTree2"
,
"../data/output/testMergeOutput.root"
,
true
);
// ------------------------------------------------
// Run !! ------------------------------------------
builder
.
silent_mode
();
builder
.
process_events
(
10
);
builder2
.
silent_mode
();
builder2
.
process_events
(
10
);
// ------------------------------------------------
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 6:33 AM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4818484
Default Alt Text
testMergeOutput.C (2 KB)
Attached To
rSPARTYJETSVN spartyjetsvn
Event Timeline
Log In to Comment