<div dir="ltr">Hi Genius,<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="direction:ltr;font-family:tahoma;color:rgb(0,0,0);font-size:10pt"><pre><font face="Tahoma">1.) flat2yoda : </font><font face="Tahoma"><font face="Tahoma">It gives following error :</font><i><br><br>File "/cvmfs/<a href="http://cms.cern.ch/slc6_amd64_gcc530/cms/cmssw/CMSSW_8_1_0/external/slc6_amd64_gcc530/bin/flat2yoda" target="_blank">cms.cern.ch/slc6_<wbr>amd64_gcc530/cms/cmssw/CMSSW_<wbr>8_1_0/external/slc6_amd64_<wbr>gcc530/bin/flat2yoda</a>", line 23<br>    opts, args = parser.parse_args()<br>       ^<br>SyntaxError: invalid syntax<br><br></i></font><br><font face="Tahoma">I looked into the /cvmfs/<a href="http://cms.cern.ch/slc6_amd64_gcc530/cms/cmssw/CMSSW_8_1_0/external/slc6_amd64_gcc530/bin/flat2yoda" target="_blank">cms.cern.ch/slc6_amd64_<wbr>gcc530/cms/cmssw/CMSSW_8_1_0/<wbr>external/slc6_amd64_gcc530/<wbr>bin/flat2yoda</a> file and found that on line 21, <br>the closing bracket is missing. I think this could be the source of the error.<br><br>I was suggested to write to the authors, to get it fixed in subsequent CMSSW releases. It could be great if you can look into this.</font></pre></div></div></blockquote><div><br></div><div>ok looking at the most up-to-date version of this script, I don't see an (obvious) issue on line 21. Do you know which version of YODA is installed in your particular CMSSW release? Is the latest file different from what you have?</div><div><br></div><div><a href="https://yoda.hepforge.org/trac/browser/bin/flat2yoda">https://yoda.hepforge.org/trac/browser/bin/flat2yoda</a> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="direction:ltr;font-family:tahoma;color:rgb(0,0,0);font-size:10pt"></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="direction:ltr;font-family:tahoma;color:rgb(0,0,0);font-size:10pt">
2.) root2yoda :  I tried using this script giving TH1D histogram as input, in the same CMSSW version. But the output yoda file varies my input cross-section numbers and I get different
<br>
cross-sections values .  I am using the following command for root 2 yoda conversion :
<br>
<font color="000080"> <i>root2yoda Data_muon.root</i></font><br>
It gives the Data_muon.yoda as output.<br>
<br>
I tried plotting these outputs using<font color="000080"> <i>rivet-mkhtml Data_muon.yoda</i></font> command, but it gives .dat file as output.
<br>
<br>
I even tried comparing this Data_muon.yoda to MC, but the output histogram only shows the MC distribution.<br>
<br>
I am attaching the Data_muon.root and Data_muon.yoda  with this mail.<br></div></div></blockquote><div><br></div><div>Can you tell me if the entries in the histogram you're trying to convert have been divided by the bin widths? I suspect the YODA converter expects the entries to have been normalized this way.</div><div><br></div><div>Chris</div></div></div></div>