 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=Scanning_Tips_and_Tricks</id>
	<title>Scanning Tips and Tricks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=Scanning_Tips_and_Tricks"/>
	<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Scanning_Tips_and_Tricks&amp;action=history"/>
	<updated>2026-05-14T18:34:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=Scanning_Tips_and_Tricks&amp;diff=435&amp;oldid=prev</id>
		<title>Lhep: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Scanning_Tips_and_Tricks&amp;diff=435&amp;oldid=prev"/>
		<updated>2015-03-18T07:49:28Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Scanforth===&lt;br /&gt;
* follow the tracks from the primary vertex&lt;br /&gt;
* at all stopping points, open a volume&lt;br /&gt;
* volume: 3 up, 5 down, 7x7 mm2 (max 7x7 mm2 at the 5th plate down)&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
===About Brick Number===&lt;br /&gt;
Example you have to scan brick 36423&lt;br /&gt;
&lt;br /&gt;
in the scanning scripts put 36423&lt;br /&gt;
but in Sysal (ChangerStatus.txt file) the brick number MUST be ONLY the 4 last number : 6423&lt;br /&gt;
&lt;br /&gt;
===Create Prediction (for the ScanForth for ex)===&lt;br /&gt;
manually create prediction for the scan forth: [[Create Scanforth Prediction]]&lt;br /&gt;
&lt;br /&gt;
or here:&lt;br /&gt;
 {&lt;br /&gt;
 #include &amp;quot;scan.C&amp;quot;&lt;br /&gt;
 EdbScanProc        sproc;&lt;br /&gt;
 sproc.eProcDirClient=&amp;quot;/terabig/scan/MICROSCOPE3/ONLINE&amp;quot;; // work directory&lt;br /&gt;
 EdbPattern pred;&lt;br /&gt;
 // track stopped at pl24	&lt;br /&gt;
 pred-&amp;gt;AddSegment(1,44480.9,16508.4,-0.123,0.04,32); // last BT from the track in linked_tracks.root (-&amp;gt; affine transformation applied!)&lt;br /&gt;
 EdbAffine2D *aff = new EdbAffine2D(0.998787,-0.003071,0.000637,0.995767,326.291107,-348.701843); // AFF from Pl24&lt;br /&gt;
 int id[4]={36423,24,1,300};	&lt;br /&gt;
 aff-&amp;gt;Invert(); // to &amp;quot;unapply&amp;quot; AFF transformation&lt;br /&gt;
 pred.Transform(aff); // to &amp;quot;unapply&amp;quot; AFF transformation&lt;br /&gt;
 pred.Print();&lt;br /&gt;
 OverwriteErrors(pred,50.,50.,0.,0.6,0.6);&lt;br /&gt;
 sproc.WritePred(pred,id); &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===Screen Function===&lt;br /&gt;
All the scanning processes should be started in a screen function in order to be able to access from everywhere. In addition, it&amp;#039;s very easy to kill an process when it hangs (just kill the screen).&lt;br /&gt;
&lt;br /&gt;
 - screen -S myscreen : create a new screen&lt;br /&gt;
 - screen -r : reattach to the screen&lt;br /&gt;
 - screen -x : additionally attach to the screen&lt;br /&gt;
 - inside the screen in order to deattach: Ctrl A D&lt;br /&gt;
 - inside the screen to close: exit&lt;br /&gt;
&lt;br /&gt;
===Avoid Odyssey Crashes===&lt;br /&gt;
Start process with a remote desktop and when it&amp;#039;s running, close the remote desktop.&lt;br /&gt;
&lt;br /&gt;
 rdesktop -g 1272x930 -k de-ch -u scanner lheppc9&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Scanning efficiency issues ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Dear Francesco,&lt;br /&gt;
&lt;br /&gt;
this happens when you hit the tracking timeout. In this case, ZERO tracks&lt;br /&gt;
are generated.&lt;br /&gt;
Try increasing the timeout in SmartTracker8.xxx&lt;br /&gt;
Cheers&lt;br /&gt;
&lt;br /&gt;
Cristiano&lt;br /&gt;
&lt;br /&gt;
----- Original Message -----&lt;br /&gt;
From: &amp;quot;Francesco Di Capua&amp;quot; &amp;lt;fdicapua@mail.cern.ch&amp;gt;&lt;br /&gt;
To: &amp;lt;opera-scanonline@cern.ch&amp;gt;&lt;br /&gt;
Sent: Friday, July 18, 2008 10:38 AM&lt;br /&gt;
Subject: sysal with high fog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt; Dear All,&lt;br /&gt;
&amp;gt; we received a brick (n.117472) related to the CC event 22877818 with very&lt;br /&gt;
&amp;gt; high level of fog,&lt;br /&gt;
&amp;gt; we located and reconstructed vertex in intercalibration areas (see&lt;br /&gt;
&amp;gt; picture),&lt;br /&gt;
&amp;gt; in order to have a reasonable scanning speed the intercalibration areas&lt;br /&gt;
&amp;gt; was done with high treshold (900,840) and slope tolerance to 0.4 rad.&lt;br /&gt;
&amp;gt; Quality of data is not very good, low efficiency and a lot of views with&lt;br /&gt;
&amp;gt; few tracks found (see surface plot).&lt;br /&gt;
&amp;gt; Trying to do a better quality volume for vertex analysis, we tried to&lt;br /&gt;
&amp;gt; decrease tresholds and increase slope tolerance to 0.6, but we found a&lt;br /&gt;
&amp;gt; strange behaviour of Sysal, the scanning seem to start but not microtracks&lt;br /&gt;
&amp;gt; at all are found during data taking.&lt;br /&gt;
&amp;gt; Do you have any suggestion for parameters to be used in this difficult&lt;br /&gt;
&amp;gt; conditions?&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt; Thanks&lt;br /&gt;
&amp;gt; Francesco&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Track momentum calculation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Letter  from Frederic:&lt;br /&gt;
Dear all,&lt;br /&gt;
&lt;br /&gt;
I add a new function in check_vertex_totalscan.C which allows to &lt;br /&gt;
estiomate the momentum of a track (using MCS from Magali study). You &lt;br /&gt;
just have to call the function PMCS with the trackID as argument. &lt;br /&gt;
Exemple below:&lt;br /&gt;
&lt;br /&gt;
void PMCS(int IDTR)&lt;br /&gt;
{&lt;br /&gt;
   //EdbTrackFitter tf; // create track fitter object&lt;br /&gt;
   EdbMomentumEstimator tf;&lt;br /&gt;
    tf.SetParPMS_Mag(); //set parameters for detheta=f(theta) (angular &lt;br /&gt;
dependance of BT resolution)&lt;br /&gt;
     tf.eDT0=0.002;      //Change a parameter&lt;br /&gt;
     for(int i=0; i&amp;lt;gAli-&amp;gt;Ntracks(); i++ ){&lt;br /&gt;
       EdbTrackP *t = gAli-&amp;gt;GetTrack(i);&lt;br /&gt;
       float p = tf.PMS_Mag(*t);&lt;br /&gt;
       float pmin=tf.ePmin;  // 90% CL minimum momentum&lt;br /&gt;
       float pmax=tf.ePmax;  // 90% CL maximum momentum&lt;br /&gt;
       if (IDTR == t-&amp;gt;ID())cout &amp;lt;&amp;lt; p &amp;lt;&amp;lt; &amp;quot; - &amp;quot; &amp;lt;&amp;lt; fabs(p-pmin) &amp;lt;&amp;lt; &amp;quot; + &amp;quot; &lt;br /&gt;
&amp;lt;&amp;lt; fabs(p-pmax) &amp;lt;&amp;lt;endl;&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Track momentum calculation for scanback or scanforth track===&lt;br /&gt;
  &lt;br /&gt;
  A new script /terabig/scan/macros/testP.C do the momentum calculation of a track using data &lt;br /&gt;
  from scanback or scanforth. It works in the same way as explain above. (see comments inside&lt;br /&gt;
  the scripts for details).&lt;br /&gt;
&lt;br /&gt;
===Vertex between 2 BT (or tracks)===&lt;br /&gt;
  A new script /terabig/scan/macros/vertex_BT.C allows to calculate the vertex position between 2 BT.&lt;br /&gt;
  It returns the vertex position and the IP (the closest distance between the 2 BT).&lt;br /&gt;
  In the same script you have another possibilty to estimate the vertex position between a known BT &lt;br /&gt;
  ( that you have to specify) and all the BT from  a cp file (that you have to specify).&lt;br /&gt;
&lt;br /&gt;
=== IP between a vertex and a BT (or track)===&lt;br /&gt;
&lt;br /&gt;
  The script /terabig/scan/macros/vertex.C allows to check if a BT from a cp file &lt;br /&gt;
  can be attached to a known vertex that you have to specify.&lt;br /&gt;
  The output is the IP of the BT w.r.t to the vertex.&lt;br /&gt;
&lt;br /&gt;
=== Change placement of emulsion on stage ===&lt;br /&gt;
to do this, you have to change two settings in the opposit way&lt;br /&gt;
&lt;br /&gt;
* in PlateChanger, change in Stage Homing the Stage limiter offset on X and Y&lt;br /&gt;
* in Machine default of the Stage, change the XYreference (in opposit way)&lt;/div&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
</feed>