<?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=At_IIHE</id>
	<title>At IIHE - 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=At_IIHE"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=At_IIHE&amp;action=history"/>
	<updated>2026-04-20T23:43:02Z</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=At_IIHE&amp;diff=22&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === Login to a machine and define the CMS environment variables === *login to the lxpub2 or lxpub3 machine   e.g: ssh -X username@lxpub2.iihe.ac.be *source the CMS environmen...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=At_IIHE&amp;diff=22&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === Login to a machine and define the CMS environment variables === *login to the lxpub2 or lxpub3 machine   e.g: ssh -X username@lxpub2.iihe.ac.be *source the CMS environmen...&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;
=== Login to a machine and define the CMS environment variables ===&lt;br /&gt;
*login to the lxpub2 or lxpub3 machine&lt;br /&gt;
  e.g: ssh -X username@lxpub2.iihe.ac.be&lt;br /&gt;
*source the CMS environment&lt;br /&gt;
  setenv VO_CMS_SW_DIR /msa3/cmssoft&lt;br /&gt;
  source $VO_CMS_SW_DIR/cmsset_default.csh ## initialize the cms env&lt;br /&gt;
*define the code cvs repository&lt;br /&gt;
  alias cmscvsroot &amp;#039;source $CMS_PATH/utils/cmscvsroot.csh&amp;#039;&lt;br /&gt;
  cmscvsroot CMSSW&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=== Prepare the CMSSW working area ===&lt;br /&gt;
Follow these steps:&lt;br /&gt;
*install a CMSSW working area, go to the src subdirectory and prepare to compile and run&lt;br /&gt;
  scramv1 p CMSSW CMSSW_1_0_1; cd CMSSW_1_0_1/src; eval &amp;lt;tt&amp;gt;scramv1 runtime -csh&amp;lt;/tt&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=== Get the necessary code and compile it ===&lt;br /&gt;
*log onto the cvs code server; type 98passwd as password&lt;br /&gt;
  cvs login&lt;br /&gt;
  CVS password: &lt;br /&gt;
*checkout the source code of the libraries that you want to use or modify. Here we will use the interface to the Pythia event generator&lt;br /&gt;
  cvs co -r CMSSW_1_0_1 IOMC/GeneratorInterface/test; cd IOMC/GeneratorInterface/test&lt;br /&gt;
*compile the code&lt;br /&gt;
  scramv1 b&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
=== Run CMSSW interactively and produce a few events ===&lt;br /&gt;
The parameters for CMSSW are specified in a text file called the config file. This file can include other config files using the #include directive. Let&amp;#039;s run the standard example which produces Higgs events decaying into 4 muons in the final state, and plots a few distributions:&lt;br /&gt;
  cmsRun pythiaHZZ4mu+analysis.cfg&lt;br /&gt;
&lt;br /&gt;
You should see two root files appear: one with the generated events stored in HepMC format, and one with the distribution histograms. Did it work ? In case of problems, do not hesitate to contact Jan Heyninck or Pascal Vanlaer. &lt;br /&gt;
&lt;br /&gt;
At this stage you should learn more about CMSSW by studying the &lt;br /&gt;
[https://uimon.cern.ch/twiki/bin/view/CMS/WorkBook CMSSW Workbook], chapters 2 to 4.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&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>