[Rivet] RIVET scripts

Chris Pollard cpollard at cern.ch
Sun Mar 12 23:25:49 GMT 2017


Hi Genius,

> 1.) flat2yoda : It gives following error :
>
>
>
>
>
>
> *File "/cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/cmssw/CMSSW_8_1_0/external/slc6_amd64_gcc530/bin/flat2yoda <http://cms.cern.ch/slc6_amd64_gcc530/cms/cmssw/CMSSW_8_1_0/external/slc6_amd64_gcc530/bin/flat2yoda>", line 23    opts, args = parser.parse_args()       ^SyntaxError: invalid syntax*
> I looked into the /cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/cmssw/CMSSW_8_1_0/external/slc6_amd64_gcc530/bin/flat2yoda file and found that on line 21,
> the closing bracket is missing. I think this could be the source of the error.
>
> 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.
>
>
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?

https://yoda.hepforge.org/trac/browser/bin/flat2yoda

>

> 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
> cross-sections values .  I am using the following command for root 2 yoda
> conversion :
>  *root2yoda Data_muon.root*
> It gives the Data_muon.yoda as output.
>
> I tried plotting these outputs using *rivet-mkhtml Data_muon.yoda*
> command, but it gives .dat file as output.
>
> I even tried comparing this Data_muon.yoda to MC, but the output histogram
> only shows the MC distribution.
>
> I am attaching the Data_muon.root and Data_muon.yoda  with this mail.
>

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.

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20170312/6e8e0670/attachment.html>


More information about the Rivet mailing list