|
[Rivet] [HepData] Question about format plain inputAndy Buckley andy.buckley at cern.chFri Feb 10 11:51:27 GMT 2017
Thanks Graeme, There is already the option of such a "mapping", I think, in that the name/path of a histogram in Rivet isn't tied to the variable name. You can organise the storage of histogram pointers in whichever way is most convenient (arrays of pointers combined with a for loop over the indices being a convenient way to implement analyses where e.g. the same observables are computed for several different particle or event selections). Using the HepData IDs rather than rewriting the .yoda file is strongly recommended -- and should be essential for any analyses submitted to us -- because otherwise keeping the reference data up to date "automatically" will be impossible. Cheers, Andy On 10/02/17 10:55, Juan Manuel Grados Luyando wrote: > Dear Graeme, > > thanks a lot for your answer. Now I understand the meaning of those > numbers haha. > > mmh I will have to think on what is the best way to change the things I > have. > > Thanks for the explanation and the options you suggested. > > Cheers, > Juan > > >> On 10 Feb 2017, at 11:43, Graeme Watt <Graeme.Watt at durham.ac.uk >> <mailto:Graeme.Watt at durham.ac.uk>> wrote: >> >> Dear Juan, >> >> The path (e.g. "d01-x01-y01") in the YODA format exported from HepData >> is generated automatically from the table/dataset number (01-03 in >> your example) and the number of the x and y axes within the table >> (always 01 for tables with "*data: x : y"). It's been requested in >> the past to allow an option in the HepData input file to allow some >> override of the automatic path names, but I think it would be better >> to allow some kind of "mapping" to be coded within the Rivet analysis >> between the HepData histogram names and the Rivet histogram names, for >> cases where they don't match. At present, however, you probably need >> to change your Rivet analysis to match the automatic HepData path >> names. The only alternative rearrangement of your tables I can see, >> assuming that the pt values are common to all three tables, is: >> >> *dataset: pp 13 TeV >> *qual: Selection : Inelastic : NSD : SD >> *yheader: $number of entries$ >> *xheader: $pt$ >> *data: x : y : y : y >> {Data points here} >> *dataend: >> >> which would give: >> >> /REF/d01-x01-y01 >> /REF/d01-x01-y02 >> /REF/d01-x01-y03 >> >> Best regards, >> Graeme Watt (HepData) >> >> >> On 10/02/17 10:04, Juan Manuel Grados Luyando wrote: >>> Dear developers, >>> >>> (Not sure to whom is more appropriate to ask, so I ask both) >>> >>> I have a question on how to set my plain input file. >>> >>> I want, after transforming my txt file to yoda with the tool at >>> http://hepdata.cedar.ac.uk/input, to have the order I prefer for the >>> references: d01-x01-y01. >>> >>> >>> For instance, If I give as input something like: >>> >>> *author: >>> *reference: >>> *status: >>> *experiment: >>> *detector: >>> *title: pp collisions at sqrt(s) = 13 TeV >>> *comment: CERN-LHC. >>> >>> *dataset: pp 13 TeV >>> *qual:Selection : Inelastic >>> *yheader: $number of entries$ >>> *xheader: $pt$ >>> *data: x : y >>> {Data points here} >>> *dataend: >>> >>> *dataset: pp 13 TeV >>> *qual:Selection : NSD >>> *yheader: $number of entries$ >>> *xheader: $pt$ >>> *data: x : y >>> {Data points here} >>> *dataend: >>> >>> *dataset: pp 13 TeV >>> *qual:Selection : SD >>> *yheader: $number of entries$ >>> *xheader: $pt$ >>> *data: x : y >>> {Data points here} >>> *dataend: >>> >>> >>> >>> I will get my yoda file with the references like: >>> >>> /REF/d01-x01-y01 >>> /REF/d02-x01-y01 >>> /REF/d03-x01-y01 >>> >>> >>> But I want something like: >>> >>> /REF/d01-x01-y01 >>> /REF/d01-x02-y01 >>> /REF/d01-x01-y03 >>> >>> >>> *What I can change in my text file to get the order I want for the >>> references?* >>> >>> >>> Thanks a lot! >>> >>> Cheers, >>> Juan Manuel Grados Luyando >>> >>> >>> >>> _______________________________________________ >>> HepData mailing list >>> HepData at projects.hepforge.org >>> https://www.hepforge.org/lists/listinfo/hepdata >> > > > > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/rivet > -- Dr Andy Buckley, Lecturer / Royal Society University Research Fellow Particle Physics Expt Group, University of Glasgow
More information about the Rivet mailing list |