<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 18/05/10 14:05, Flavia Dias wrote:
<blockquote
 cite="mid:AANLkTilD1jn6jPYZp5P0_tMkqEsX8gkOpmecxYfcIow2@mail.gmail.com"
 type="cite">
  <div>Hello all,</div>
  <div><br>
  </div>
  <div>I'm trying to make my own analysis on Rivet 1.2.1, installed in
my home directory.</div>
  <div><br>
  </div>
  <div>First, my problem is, I am able to compile it with no errors
using the command:</div>
  <div><br>
  </div>
&nbsp;g++ -fPIC -o libRivetMuonAnalysis.so -shared
-I/home/fladias/RIVET/local/include -I/afs/<a moz-do-not-send="true"
 href="http://cern.ch/sw/lcg/external/HepMC/2.05.00/slc4_amd64_gcc34/include">cern.ch/sw/lcg/external/HepMC/2.05.00/slc4_amd64_gcc34/include</a>
-I/afs/<a moz-do-not-send="true"
 href="http://cern.ch/sw/lcg/external/Boost/1.34.1/slc4_amd64_gcc34/include/boost-1_34_1">cern.ch/sw/lcg/external/Boost/1.34.1/slc4_amd64_gcc34/include/boost-1_34_1</a>
MuonAnalysis.cc
  <div><br>
  </div>
  <div><br>
  </div>
  <div>But then, if I run rivet --list-analysis, my analysis won't be
listed.</div>
</blockquote>
You need to copy the RivetMuonAnalysis.so to some place where Rivet can
find it.<br>
You can use 'rivet-config --libdir' to see where Rivet looks for
libraries by<br>
default.<br>
<br>
<blockquote
 cite="mid:AANLkTilD1jn6jPYZp5P0_tMkqEsX8gkOpmecxYfcIow2@mail.gmail.com"
 type="cite">
  <div><br>
  </div>
  <div>The code I use is attached.&nbsp;</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div>The other thing is: I'll have some data from D0 to create a AIDA
file and use the automatic histogram booking to use in this analysis.
The data will be public released around next week. How should I proceed
to use the data as a reference file for my analysis?</div>
</blockquote>
<br>
The file has to have the same name as the analysis, so in your case
maybe D0_NEW_DATA.aida<br>
<br>
You can edit a flat file for convenience and convert it to aida later
with flat2aida.<br>
<br>
The flatfile should look like this:<br>
<br>
# BEGIN HISTOGRAM /REF/D0_NEW_DATA/d01-x01-y01<br>
AidaPath=/REF/D0_NEW_DATA/d01-x01-y01<br>
## xlow&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xhigh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yval&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yerrminus&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yerrplus<br>
1.000000e+00&nbsp;&nbsp;&nbsp; 1.250000e+00&nbsp;&nbsp;&nbsp; 2.644330e-01&nbsp;&nbsp;&nbsp; 1.448710e-02&nbsp;&nbsp;&nbsp;
1.448710e-02<br>
1.250000e+00&nbsp;&nbsp;&nbsp; 1.500000e+00&nbsp;&nbsp;&nbsp; 3.543480e-01&nbsp;&nbsp;&nbsp; 1.907530e-02&nbsp;&nbsp;&nbsp;
1.907530e-02<br>
1.500000e+00&nbsp;&nbsp;&nbsp; 1.750000e+00&nbsp;&nbsp;&nbsp; 4.518360e-01&nbsp;&nbsp;&nbsp; 2.404250e-02&nbsp;&nbsp;&nbsp;
2.404250e-02<br>
# END HISTOGRAM<br>
<br>
the next histogram could for instance be /REF/D0_NEW_DATA/d02-x01-y01<br>
and so on<br>
<br>
The histograms should be booked if you use <br>
h1= bookHistogram1D(1, 1, 1);<br>
h2= bookHistogram1D(2, 1, 1)<br>
&nbsp;<br>
Hope that helps,<br>
Holger<br>
<br>
<br>
<blockquote
 cite="mid:AANLkTilD1jn6jPYZp5P0_tMkqEsX8gkOpmecxYfcIow2@mail.gmail.com"
 type="cite">
  <div><br>
  </div>
  <div>Thank you very much,</div>
  <div><br>
  </div>
  <div>Best Regards,</div>
  <div><br>
  </div>
  <div>Flavia</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Rivet mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rivet@projects.hepforge.org">Rivet@projects.hepforge.org</a>
<a class="moz-txt-link-freetext" href="http://www.hepforge.org/lists/listinfo/rivet">http://www.hepforge.org/lists/listinfo/rivet</a></pre>
</blockquote>
<br>
</body>
</html>