Fork me on GitHub

Changeset edeb0f0 in git for classes


Ignore:
Timestamp:
Aug 9, 2018, 12:52:20 PM (6 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
ef97f2a
Parents:
ba45abf
Message:

added cross section and error in hepmc event class and reader

Location:
classes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesClasses.h

    rba45abf redeb0f0  
    103103
    104104  Float_t Weight; // weight for the event
     105  Float_t CrossSection; // cross-section in pb
     106  Float_t CrossSectionError; // cross-section error in pb
    105107
    106108  Float_t Scale; // energy scale, see hep-ph/0109068 | event_scale()
     
    118120  Float_t PDF1; // PDF (id1, x1, Q) | pdf_info()->pdf1()
    119121  Float_t PDF2; // PDF (id2, x2, Q) | pdf_info()->pdf2()
     122
     123
    120124
    121125  ClassDef(HepMCEvent, 2)
  • classes/DelphesHepMCReader.cc

    rba45abf redeb0f0  
    199199    }
    200200  }
     201 
     202  else if(key == 'C')
     203  {
     204    rc = bufferStream.ReadDbl(fCrossSection)
     205      && bufferStream.ReadDbl(fCrossSectionError);
     206  }
     207 
    201208  else if(key == 'F')
    202209  {
     
    315322  element->MPI = fMPI;
    316323  element->Weight = fWeight.size() > 0 ? fWeight[0] : 1.0;
     324  element->CrossSection = fCrossSection;
     325  element->CrossSectionError = fCrossSectionError;
    317326  element->Scale = fScale;
    318327  element->AlphaQED = fAlphaQED;
  • classes/DelphesHepMCReader.h

    rba45abf redeb0f0  
    8787  std::vector< double > fWeight;
    8888
     89  double fCrossSection, fCrossSectionError;
     90
    8991  int fID1, fID2;
    9092  double fX1, fX2, fScalePDF, fPDF1, fPDF2;
Note: See TracChangeset for help on using the changeset viewer.