Index: /trunk/madgraph_events.list
===================================================================
--- /trunk/madgraph_events.list	(revision 3)
+++ /trunk/madgraph_events.list	(revision 3)
@@ -0,0 +1,1 @@
+unweighted_events.root
Index: /trunk/madgraph_plots_card.tcl
===================================================================
--- /trunk/madgraph_plots_card.tcl	(revision 3)
+++ /trunk/madgraph_plots_card.tcl	(revision 3)
@@ -0,0 +1,68 @@
+##############################################################################
+# Input collections (specify ROOT tree name and file listing input ROOT files)
+##############################################################################
+
+add InputCollection {LHEF madgraph_events.list}
+
+#######################################
+# Order of execution of various modules
+#######################################
+
+set ExecutionPath {
+  classification merger analysis
+}
+
+#################
+# Analysis module
+#################
+
+module MadGraphAnalysis analysis {
+  set InputArray "merger/candidates"
+  set IsUnWeighted true
+  set OutputFile "madgraph_plots.root"
+}
+
+########################
+# Particle classes meger
+########################
+
+module MadGraphClassMerger merger {
+  set InputArray "classification/particles"
+  set OutputArray "candidates"
+}
+
+########################
+# Particle class filters
+########################
+
+module MadGraphClassFilter classification {
+
+  add ParticleStatus 1 2
+
+  add ClassParticles jet {1 -1 2 -2 3 -3 21}
+  add ClassParticles c {4 -4}
+  add ClassParticles b {5 -5}
+
+  add ClassParticles t {6}
+  add ClassParticles #bar{t} {-6}
+
+#  add ClassParticles lepton {11 -11 13 -13 15 -15}
+#  add ClassParticles neutrino {12 -12 14 -14 16 -16}
+
+  add ClassParticles e {11 -11}
+  add ClassParticles #mu {13 -13}
+  add ClassParticles #tau {15 -15}
+
+  add ClassParticles #nu_{e} {12 -12}
+  add ClassParticles #nu_{#mu} {14 -14}
+  add ClassParticles #nu_{#tau} {16 -16}
+
+#  add ClassParticles g {21}
+
+  add ClassParticles #gamma {22}
+  add ClassParticles Z^{0} {23}
+  add ClassParticles W^{+} {24}
+  add ClassParticles W^{-} {-24}
+  add ClassParticles h^{0} {25}
+}
+
Index: /trunk/matching_plots_card.tcl
===================================================================
--- /trunk/matching_plots_card.tcl	(revision 3)
+++ /trunk/matching_plots_card.tcl	(revision 3)
@@ -0,0 +1,103 @@
+##############################################################################
+# Input collections (specify ROOT tree name and file listing input ROOT files)
+##############################################################################
+
+add InputCollection {STDHEP pythia_events.list}
+
+set OutputFile Matching
+set TreeName Matching
+
+#######################################
+# Order of execution of various modules
+#######################################
+
+set ExecutionPath {
+  pythiafix initstateselection showerselection partonjetfinder jetparticleselection hadronjetfinder treewriter
+}
+
+###############################
+# Fix partilce's daughter index
+###############################
+
+module PythiaFix pythiafix
+
+#################
+# Parton selector
+#################
+
+module MadGraphPartonSelector initstateselection {
+  set PartonIDs {1 2 3 4 5 21}
+  set ExcludedAncestorIDs {6 23 24}
+}
+
+#################
+# Parton selector
+#################
+
+module MadGraphShowerPartonSelector showerselection {
+  set EtaMax 5.0
+  set PartonIDs {1 2 3 4 5 21}
+  set ExcludedAncestorIDs {6 23 24}
+}
+
+###################
+# Parton jet finder
+###################
+
+module MadGraphKtJetFinder partonjetfinder {
+  set InputArray "showerselection/candidates"
+
+  set CollisionType 4
+  set DistanceScheme 3
+  set RecombinationScheme 3
+  set ParameterR 1.0
+
+  set Exclusive true
+  set ECut 1.0
+  set DCut 2500.0
+  
+  set ParticleNumberMin 2
+}
+
+##############################
+# Hadron jet particle selector
+##############################
+
+module MadGraphJetParticleSelector jetparticleselection {
+  set SpecialParticleIDs {11 13 15}
+  set ExcludedAncestorIDs {22 23 24}
+  set ExcludedParticleIDs {12 14 16}
+}
+
+###################
+# Hadron jet finder
+###################
+
+module MadGraphKtJetFinder hadronjetfinder {
+  set InputArray "jetparticleselection/candidates"
+
+  set CollisionType 4
+  set DistanceScheme 3
+  set RecombinationScheme 3
+  set ParameterR 1.0
+
+  set Exclusive true
+  set ECut 1.0
+  set DCut 2500.0
+  
+  set ParticleNumberMin 2
+}
+
+##################
+# ROOT tree writer
+##################
+
+module MadGraphMatchingTreeWriter treewriter {
+  set InputPartonArrayJets "partonjetfinder/candidates"
+  set InputHadronArrayJets "hadronjetfinder/candidates"
+  set InputArrayMatching "partonjetfinder/matching"
+  set InputArrayPartons "initstateselection/candidates"
+  set JetPTMin 20.0
+  set JetEtaMax 4.5
+}
+
Index: /trunk/pythia_events.list
===================================================================
--- /trunk/pythia_events.list	(revision 3)
+++ /trunk/pythia_events.list	(revision 3)
@@ -0,0 +1,1 @@
+../run_04_1_pythia_events.root
Index: /trunk/pythia_plots_card.tcl
===================================================================
--- /trunk/pythia_plots_card.tcl	(revision 3)
+++ /trunk/pythia_plots_card.tcl	(revision 3)
@@ -0,0 +1,71 @@
+##############################################################################
+# Input collections (specify ROOT tree name and file listing input ROOT files)
+##############################################################################
+
+add InputCollection {STDHEP pythia_events.list}
+
+#######################
+# Output ROOT file name
+#######################
+
+set OutputFile MadSim.root
+
+#######################################
+# Order of execution of various modules
+#######################################
+
+set ExecutionPath {
+  leptonselection partonselection jetfinder merger analysis
+}
+
+#################
+# Lepton selector
+#################
+
+module MadGraphShowerLeptonSelector leptonselection {
+  add ParticleStatus 1
+  add ClassParticles e {11 -11}
+  add ClassParticles #mu {13 -13}
+}
+
+#################
+# Parton selector
+#################
+
+module MadGraphShowerPartonSelector partonselection {
+  set PartonIDs {1 2 3 4 5 21}
+}
+
+############
+# Jet finder
+############
+
+module MadGraphKtJetFinder jetfinder {
+  set InputArray "partonselection/candidates"
+
+  set CollisionType 4
+  set DistanceScheme 1
+  set RecombinationScheme 1
+  set ParameterR 1.0
+}
+
+#################################
+# Merge all input arrays into one
+#################################
+
+module MadGraphJetLeptonMerger merger {
+  set InputLeptonsArray "leptonselection/candidates"
+  set InputJetsArray "jetfinder/candidates"
+  set JetNumberMax 4
+}
+
+#################
+# Analysis module
+#################
+
+module MadGraphAnalysis analysis {
+  set InputArray "merger/candidates"
+  set IsUnWeighted false
+  set OutputFile "pythia_plots.root"
+}
+
