<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=TopTreeProducer</id>
	<title>TopTreeProducer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=TopTreeProducer"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TopTreeProducer&amp;action=history"/>
	<updated>2026-05-30T22:56:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=TopTreeProducer&amp;diff=288&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot;  === TopTreeProducer ===  ==== Aims &amp; design ====  TopTreeProducer should produce a &quot;light&quot; TTree which will be a subset of PAT-uples. &lt;br&gt; Running over the TopTree sho...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TopTreeProducer&amp;diff=288&amp;oldid=prev"/>
		<updated>2015-08-26T12:29:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  === TopTreeProducer ===  ==== Aims &amp;amp; design ====  TopTreeProducer should produce a &amp;quot;light&amp;quot; TTree which will be a subset of PAT-uples. &amp;lt;br&amp;gt; Running over the TopTree sho...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
=== TopTreeProducer ===&lt;br /&gt;
&lt;br /&gt;
==== Aims &amp;amp; design ====&lt;br /&gt;
&lt;br /&gt;
TopTreeProducer should produce a &amp;quot;light&amp;quot; TTree which will be a subset of PAT-uples. &amp;lt;br&amp;gt;&lt;br /&gt;
Running over the TopTree should be the last step before making final plots.&amp;lt;br&amp;gt;&lt;br /&gt;
==== Aims: ====&lt;br /&gt;
*Running other all datasets quickly to study the selection&lt;br /&gt;
*Once the analysis are tuned on signal: running over signal and background to tune some parameters&lt;br /&gt;
*Producing the &amp;quot;final plots&amp;quot;&lt;br /&gt;
==== Design: ====&lt;br /&gt;
*Create one class per &amp;quot;object&amp;quot; &amp;amp; one &amp;quot;analyzer&amp;quot; to fill it&lt;br /&gt;
*Create one branch per &amp;quot;objects&amp;quot; in the root-file&lt;br /&gt;
 *&lt;br /&gt;
==== Requirements: ====&lt;br /&gt;
*Code will be put on CVS&lt;br /&gt;
*In the cff file, user can choose the input collection and turn on/off the different modules&lt;br /&gt;
&lt;br /&gt;
==== Versions  ====&lt;br /&gt;
Existing cvs branches:&lt;br /&gt;
&lt;br /&gt;
***MAIN&lt;br /&gt;
***CMSSW_22X&lt;br /&gt;
***CMSSW_31X &lt;br /&gt;
***CMSSW_35X&lt;br /&gt;
***CMSSW_36X&lt;br /&gt;
***CMSSW_311X&lt;br /&gt;
***CMSSW_41X&lt;br /&gt;
***CMSSW_42X&lt;br /&gt;
&lt;br /&gt;
Tags to be used per release:&lt;br /&gt;
***For CMSSW_22X release use tag: CMSSW_22X&lt;br /&gt;
***For CMSSW_31X release use tag: CMSSW_33X_v3&lt;br /&gt;
***For CMSSW_330 release use tag: CMSSW_33X_v3&lt;br /&gt;
***For CMSSW_33X (&amp;gt;= CMSSW_331) release use tag: CMSSW_33X_v4&lt;br /&gt;
***For CMSSW_35X release use tag: CMSSW_35X_v16 (Check the changelog if you want to produce TopTree&amp;#039;s with this tag!!!)&lt;br /&gt;
***For CMSSW_36X on 35X samples, use tag: CMSSW_36X_v1_patch3&lt;br /&gt;
***For CMSSW_36X on 36X samples, use tag: &lt;br /&gt;
***For CMSSW_41X release, use tag: CMSSW_41X_v3&lt;br /&gt;
****Check out in addition:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cvs co -r V01-06-00 RecoBTag/SecondaryVertex&lt;br /&gt;
cvs co -r CMSSW_4_2_3 RecoVertex/PrimaryVertexProducer&lt;br /&gt;
cvs co -r CMSSW_4_2_3 TrackingTools/TrajectoryState&lt;br /&gt;
cvs co -r V04-07-02 PhysicsTools/PFCandProducer           &lt;br /&gt;
cvs co -r V00-03-10 PhysicsTools/SelectorUtils&lt;br /&gt;
cvs co -r V08-02-11 PhysicsTools/UtilAlgos&lt;br /&gt;
cvs co -r V02-04-16 RecoJets/Configuration                           &lt;br /&gt;
cvs co -r V04-01-00 RecoJets/JetAlgorithms                           &lt;br /&gt;
cvs co -r V05-05-03-00 RecoJets/JetProducers&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
***For CMSSW_42X release, use tag: &lt;br /&gt;
&lt;br /&gt;
Branch to be used for development:&lt;br /&gt;
&lt;br /&gt;
***For CMSSW_22X use branch: CMSSW_22X&lt;br /&gt;
***For CMSSW_31X use branch: CMSSW_31X&lt;br /&gt;
***For CMSSW_33X use branch: CMSSW_31X&lt;br /&gt;
***For CMSSW_35X use branch: CMSSW_35X&lt;br /&gt;
***For CMSSW_36X on 35X samples, use branch: CMSSW_36Xon35X&lt;br /&gt;
***For CMSSW_36X on 36X samples, use branch: CMSSW_36X&lt;br /&gt;
***For CMSSW_311X use branch: CMSSW_311X&lt;br /&gt;
***For CMSSW_41X use branch: CMSSW_41X&lt;br /&gt;
****Check out in addition:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cvs co -r V01-06-00 RecoBTag/SecondaryVertex&lt;br /&gt;
cvs co -r CMSSW_4_2_3 RecoVertex/PrimaryVertexProducer&lt;br /&gt;
cvs co -r CMSSW_4_2_3 TrackingTools/TrajectoryState&lt;br /&gt;
cvs co -r V04-07-02 PhysicsTools/PFCandProducer           &lt;br /&gt;
cvs co -r V00-03-10 PhysicsTools/SelectorUtils&lt;br /&gt;
cvs co -r V08-02-11 PhysicsTools/UtilAlgos&lt;br /&gt;
cvs co -r V02-04-16 RecoJets/Configuration                           &lt;br /&gt;
cvs co -r V04-01-00 RecoJets/JetAlgorithms                           &lt;br /&gt;
cvs co -r V05-05-03-00 RecoJets/JetProducers&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
***For CMSSW_42X use branch: CMSSW_42X&lt;br /&gt;
***If you produced stable code, commit it under the proper branch and create a CVS tag to be used for production.&lt;br /&gt;
&lt;br /&gt;
Changelog of the development of the TopTreeProducer: [[TopTreeProducer_Changelog| TopTreeProducer_Changelog]]&lt;br /&gt;
&lt;br /&gt;
On lxplus (at cern) to check out you need to do:&lt;br /&gt;
cvs co -r MyTag -d TopBrussels/TopTreeProducer UserCode/TopBrussels/TopTreeProducer &lt;br /&gt;
The -d option will put it in a correct directory to be able to compile the code.&lt;br /&gt;
&lt;br /&gt;
ex: doing cvs co -r CMSSW_41X UserCode/TopBrussels/SanityChecker will checkout the latest development for 41X series.&amp;lt;br&amp;gt;&lt;br /&gt;
It still possible to use tag which are linked or not to a branch:&lt;br /&gt;
&lt;br /&gt;
*cvs co -r v2 UserCode/TopBrussels/TopTreeProducer : last version working with &amp;quot;old CMSSW tag&amp;quot; (TtGenEvent home made)&lt;br /&gt;
*cvs co -r CMSSW_227_TQAF_V04-08-07_v2 UserCode/TopBrussels/TopTreeProducer: version working with CMSSW_2_2_7 &amp;amp; TQAF V04-08-07&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;REMARK&amp;#039;&amp;#039;&amp;#039; One schould use TQAF V04-08-08 to have the genevent properly working!&lt;br /&gt;
&lt;br /&gt;
==== TopTree skimmer ====&lt;br /&gt;
&lt;br /&gt;
The TopTree skimmer is present since the CMSSW_35X_v6 tag.&lt;br /&gt;
More information can be found in http://w3.iihe.ac.be/Indico_IIHE/getFile.py/access?contribId=9&amp;amp;resId=0&amp;amp;materialId=slides&amp;amp;confId=134&lt;br /&gt;
&lt;br /&gt;
==== How to use ====&lt;br /&gt;
*You can checkout the code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cvs co -r v1 UserCode/TopBrussels/TopTreeProducer&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
*To produce a TopTree: &amp;lt;tt&amp;gt; cd test; cmsRun TopTreeProducer.py &amp;lt;/tt&amp;gt;&lt;br /&gt;
*To run macro over TopTrees have a look to test/README &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#############################&lt;br /&gt;
# To run the code        ###&lt;br /&gt;
############################&lt;br /&gt;
&lt;br /&gt;
Change booleans &amp;amp; input files if needed in TopTreeProducer.py&lt;br /&gt;
cmsRun TopTreeProducer.py&lt;br /&gt;
&lt;br /&gt;
#############################&lt;br /&gt;
# To run Macro            ###&lt;br /&gt;
############################&lt;br /&gt;
&lt;br /&gt;
root -l&lt;br /&gt;
.X rootlogon.C&lt;br /&gt;
.L Macro.C++&lt;br /&gt;
Macro()&lt;br /&gt;
&lt;br /&gt;
#############################&lt;br /&gt;
# To run code compiled    ###&lt;br /&gt;
############################&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.&lt;br /&gt;
g++  -L &amp;lt;tt&amp;gt;pwd&amp;lt;/tt&amp;gt; -l Toto -I &amp;lt;tt&amp;gt;root-config --incdir&amp;lt;/tt&amp;gt; &amp;lt;tt&amp;gt;root-config --libs&amp;lt;/tt&amp;gt; Code.C -o Code&lt;br /&gt;
./Code&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Objects: ====&lt;br /&gt;
*CaloJet (since CMSSW_35X)&lt;br /&gt;
*PFJet (since CMSSW_35X)&lt;br /&gt;
*Jet (everything before CMSSW_35X)&lt;br /&gt;
*MET&lt;br /&gt;
*Muon&lt;br /&gt;
*Electron&lt;br /&gt;
*HLT &lt;br /&gt;
*MCInfo&lt;br /&gt;
*Primary vertex&lt;br /&gt;
*Event Info (type of sample &amp;amp; so on )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>