[Rivet] How to initialize AxesDefinition?

Debarati Roy debarati.roy at cern.ch
Thu Oct 23 09:58:23 BST 2014


Hi Experts,
                 Could you please point me to some example or let me know how one can initialize the AxesDefinition in the .cc ? I tried with this(inside the init() method with Rivet 2.2x version),
.....................................................................................................................
const FinalState fs(-2.6, 2.6, 0.0*GeV);
      addProjection(FastJets(fs, FastJets::ANTIKT, 0.5), "Jets");

      const AxesDefinition& ax(fs);
      addProjection(ax, "Axes");
.......................................................................................................................
But I am getting the following error,
.......................................................................................................................
error: invalid initialization of reference of type ‘const Rivet::AxesDefinition&’ from expression of type ‘const Rivet::FinalState’
.........................................................................................................................
 This is needed to use new Hemispeheres calc methid in the following way(inside analyze method),
.......................................................................................................................
Hemispheres hemi(ax);
      hemi.calc(n,jets);
      if (debug == true)
    {
      const double B = hemi.Bsum();
    }
.....................................................................................................................

Thanks,
Debarati


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20141023/c19af65b/attachment.html>


More information about the Rivet mailing list