<?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=TQAFMeltingPot</id>
	<title>TQAFMeltingPot - 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=TQAFMeltingPot"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TQAFMeltingPot&amp;action=history"/>
	<updated>2026-04-20T11:14:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=TQAFMeltingPot&amp;diff=293&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot;  == TQAF Melting Pot Info Page ==  The TQAF Melting Pot is a directory [http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/TopBrussels/TQAFMeltingPot/ /UserCode/TopBrusse...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TQAFMeltingPot&amp;diff=293&amp;oldid=prev"/>
		<updated>2015-08-26T12:29:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  == TQAF Melting Pot Info Page ==  The TQAF Melting Pot is a directory [http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/TopBrussels/TQAFMeltingPot/ /UserCode/TopBrusse...&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;
== TQAF Melting Pot Info Page ==&lt;br /&gt;
&lt;br /&gt;
The TQAF Melting Pot is a directory [http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/TopBrussels/TQAFMeltingPot/ /UserCode/TopBrussels/TQAFMeltingPot] that contains all the files that are embedded in the TQAF but are not (yet) part of the official TQAF. Currently following code is there:&lt;br /&gt;
*TtSemiMuEventSelection: EDFilter to select a certain amount of jets and muons above a threshold. This can be used as an event selection in your analysis&lt;br /&gt;
*TtSemiMuJetSelection : EDProducer to produce new jet collections containing, most likely, the four jets originating from the top quark decays (both hadronic and leptonic). &lt;br /&gt;
&lt;br /&gt;
There is a script &amp;quot;fileputter.sh&amp;quot; to copy all the files from the melting pot to the correct location in the TQAF. Don&amp;#039;t forget to change the permissions of the file. Make sure you have set the CMSSW environment correctly with &amp;#039;&amp;#039;cmsenv&amp;#039;&amp;#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod u+x fileputter.sh&lt;br /&gt;
./fileputter.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
=== TtSemiMuSelection ===&lt;br /&gt;
This filter can be used to perform an event selection based on the semileptonic muon decay topology&lt;br /&gt;
&lt;br /&gt;
==== Related files ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/UserCode/TopBrussels/TQAFMeltingPot/TtSemiMuEventSelection.cc&lt;br /&gt;
/UserCode/TopBrussels/TQAFMeltingPot/ttSemiMuEventSelection_cfi.py&lt;br /&gt;
/UserCode/TopBrussels/TQAFMeltingPot/BuildFile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
In the config file &amp;#039;&amp;#039;ttSemiMuEventSelection_cfi.py&amp;#039;&amp;#039; you can define the cuts you want to apply on the jets and the muon&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
muons           = cms.InputTag(&amp;quot;selectedLayer1Muons&amp;quot;),&lt;br /&gt;
jets            = cms.InputTag(&amp;quot;selectedLayer1Jets&amp;quot;),&lt;br /&gt;
mets            = cms.InputTag(&amp;quot;selectedLayer1METs&amp;quot;),&lt;br /&gt;
nMuons          = cms.uint32(1),     #### require at least 1 muon,&lt;br /&gt;
muonEta         = cms.double(2.1),   #    within |eta|&amp;lt;2.1 &lt;br /&gt;
muonPt          = cms.double(30),    #    with pt&amp;gt;30&lt;br /&gt;
muonRelIso      = cms.double(0.95),  #    relative isolation &amp;gt; 0.95&lt;br /&gt;
muonVetoEM      = cms.double(4),     #    EM energy in veto cone &amp;lt; 4&lt;br /&gt;
muonVetoHad     = cms.double(6),     #### Had energy in veto conde &amp;lt; 6&lt;br /&gt;
nLeadingJets    = cms.uint32(4),     #### require at least 4 jets&lt;br /&gt;
leadingJetsEta  = cms.double(2.4),   #    within |eta| &amp;lt; 2.4&lt;br /&gt;
leadingJetsPt   = cms.double(40),    #### with pt &amp;gt; 40&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Include in your cfg file ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
process.load(&amp;#039;TopQuarkAnalysis.TopEventSelection.ttSemiMuEventSelection_cfi&amp;#039;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
=== TopJetSelection ===&lt;br /&gt;
This producer creates new collections of four jets which are most probably the jets coming the semi-muonic top quark decays.&lt;br /&gt;
For the time being, three collections are produced based on three different matching algorithms :&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;MC Truth based matching&amp;#039;&amp;#039;&amp;#039; : the selected jets are the ones that match the partons.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Sequential matching&amp;#039;&amp;#039;&amp;#039; : first loop over all jets in order to find the two jets which produce an invariant mass as close as possible to the W boson mass. And then loop over the remaining jets to find the jet that produces with the two previously selected jets an invariant mass as close as possible to the top quark mass. The last jet is selected among the remaining jet as the one which produces with the selected muon an invariant mass as close as possible to the expected value (to be defined in the cff file).&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ChiSquare based matching&amp;#039;&amp;#039;&amp;#039; (recommended as the most powerful for the moment) : this method selects the jets that minimize a chisquare that assignes the jets coming from the W boson, the hadronic top quark and the b-jet coming from the leptonic top quark. For more info, see http://indico.cern.ch/getFile.py/access?contribId=1&amp;amp;resId=0&amp;amp;materialId=slides&amp;amp;confId=45143&lt;br /&gt;
&lt;br /&gt;
==== Related files ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/UserCode/TopBrussels/TQAFMeltingPot/TtSemiMuJetSelection/src/TtSemiMuJetSelection.cc&lt;br /&gt;
/UserCode/TopBrussels/TQAFMeltingPot/TtSemiMuJetSelection/python/ttSemiMuJetSelection_cfi.py&lt;br /&gt;
/UserCode/TopBrussels/TQAFMeltingPot/TtSemiMuJetSelection/test/ttSemiMuJetSelection_cfg.py&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Description ====&lt;br /&gt;
In the config file &amp;#039;&amp;#039;ttSemiMuJetSelection_cfi.py&amp;#039;&amp;#039; you can define several settings :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
matchedLayer1Jets = cms.EDProducer(&amp;#039;TtSemiMuJetSelection&amp;#039;,&lt;br /&gt;
    electronTag     = cms.InputTag(&amp;quot;selectedLayer1Electrons&amp;quot;),&lt;br /&gt;
    muonTag         = cms.InputTag(&amp;quot;selectedLayer1Muons&amp;quot;),&lt;br /&gt;
    jetTag          = cms.InputTag(&amp;quot;selectedLayer1Jets&amp;quot;),&lt;br /&gt;
    #jetTag          = cms.InputTag(&amp;quot;selectedLayer1Jets&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;SKIMsemilep&amp;quot;),&lt;br /&gt;
    metTag          = cms.InputTag(&amp;quot;selectedLayer1METs&amp;quot;),&lt;br /&gt;
    TopMass         = cms.double(172.4), # Top quark mass (GeV/c²), world average, July 2008&lt;br /&gt;
    WMass           = cms.double(80.4),  # W boson mass (GeV/c²)&lt;br /&gt;
    blMass          = cms.double(91.1),  # bl invariant mass (GeV/c²)&lt;br /&gt;
    LepTopMassResol = cms.double(15.6),  # resolution of the leptonic top quark mass&lt;br /&gt;
    LepblMassResol  = cms.double(36.0),  # resolution of the bl invariant mass&lt;br /&gt;
    HadTopMassResol = cms.double(12.5),  # resolution of the hadronic top quark mass&lt;br /&gt;
    HadWMassResol   = cms.double(7.6),   # resolution of the hadronic W boson mass&lt;br /&gt;
    NjetsForComb    = cms.uint32(7),     # max number of jets considered for the matching procedure&lt;br /&gt;
    JetPtThreshold  = cms.double(30),    # only jets with pt&amp;gt;JetPtThreshold are considered in this module&lt;br /&gt;
    JetEtaThreshold = cms.double(2.4),   # only jets with eta&amp;gt;JetEtaThreshold are considered in this module&lt;br /&gt;
    verboselevel    = cms.int32(1)       # Debug verbosity level (up to 5): 0 = no output&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If the module is run successfully, the following new branches are available in the output ROOT file :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
patJets_matchedLayer1Jets_GenMatch_TtSemiMuJetSel&lt;br /&gt;
patJets_matchedLayer1Jets_SeqMatch_TtSemiMuJetSel&lt;br /&gt;
patJets_matchedLayer1Jets_ChiSqMatch_TtSemiMuJetSel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
They can now be used as input for your own analysis module.&lt;br /&gt;
==== Include in your cfg file ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
process.load(&amp;#039;TopQuarkAnalysis.TtSemiMuJetSelection.ttSemiMuJetSelection_cfi&amp;#039;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&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>