hej is hosted by Hepforge, IPPP Durham
HEJ 2.1.4
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
HEJ::SherpaLHEReader Class Reference

Les Houches Event file reader for LHE files created by Sherpa. More...

#include <LesHouchesReader.hh>

Inheritance diagram for HEJ::SherpaLHEReader:
Collaboration diagram for HEJ::SherpaLHEReader:

Public Member Functions

 SherpaLHEReader (std::string const &filename)
 Inialise Reader for a Sherpa LHE file. More...
 
bool read_event () override
 Read an event. More...
 
optional< size_t > number_events () const override
 Guess number of events from header. More...
 
- Public Member Functions inherited from HEJ::LesHouchesReader
 LesHouchesReader (std::string const &filename)
 Contruct object reading from the given file. More...
 
bool read_event () override
 Read an event. More...
 
std::string const & header () const override
 Access header text. More...
 
LHEF::HEPRUP const & heprup () const override
 Access run information. More...
 
LHEF::HEPEUP const & hepeup () const override
 Access last read event. More...
 
- Public Member Functions inherited from HEJ::EventReader
virtual bool read_event ()=0
 Read an event. More...
 
virtual std::string const & header () const =0
 Access header text. More...
 
virtual LHEF::HEPRUP const & heprup () const =0
 Access run information. More...
 
virtual LHEF::HEPEUP const & hepeup () const =0
 Access last read event. More...
 
virtual optional< std::size_t > number_events () const
 Guess number of events from header. More...
 
virtual ~EventReader ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from HEJ::LesHouchesReader
LHEF::Reader & reader ()
 Underlying reader. More...
 

Detailed Description

Les Houches Event file reader for LHE files created by Sherpa.

In Sherpa the cross section is given by sum(weights)/(number of trials). This EventReader converts the weights such that cross section=sum(weights)

Note
Reading from a pipe is not possible!

Constructor & Destructor Documentation

◆ SherpaLHEReader()

HEJ::SherpaLHEReader::SherpaLHEReader ( std::string const &  filename)
explicit

Inialise Reader for a Sherpa LHE file.

Member Function Documentation

◆ number_events()

optional< size_t > HEJ::SherpaLHEReader::number_events ( ) const
inlineoverridevirtual

Guess number of events from header.

Reimplemented from HEJ::EventReader.

◆ read_event()

bool HEJ::SherpaLHEReader::read_event ( )
overridevirtual

Read an event.

Reimplemented from HEJ::LesHouchesReader.


The documentation for this class was generated from the following file: