CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
lhef::LHERunInfo Class Reference

#include <LHERunInfo.h>

Classes

struct  Counter
 
class  Header
 
struct  Process
 
struct  XSec
 

Public Types

enum  CountMode { kTried = 0, kSelected, kKilled, kAccepted }
 

Public Member Functions

void addComment (const std::string &line)
 
void addHeader (const Header &header)
 
void count (int process, CountMode count, double eventWeight=1.0, double brWeight=1.0, double matchWeight=1.0)
 
std::vector< std::string > findHeader (const std::string &tag) const
 
const std::vector< std::string > & getComments () const
 
const std::vector< Header > & getHeaders () const
 
const int getHEPIDWTUP () const
 
const HEPRUPgetHEPRUP () const
 
const std::vector< Process > & getLumiProcesses () const
 
void initLumi ()
 
 LHERunInfo (std::istream &in)
 
 LHERunInfo (const HEPRUP &heprup)
 
 LHERunInfo (const HEPRUP &heprup, const std::vector< LHERunInfoProduct::Header > &headers, const std::vector< std::string > &comments)
 
 LHERunInfo (const LHERunInfoProduct &product)
 
bool operator!= (const LHERunInfo &other) const
 
bool operator== (const LHERunInfo &other) const
 
std::pair< int, int > pdfSetTranslation () const
 
void statistics () const
 
XSec xsec () const
 
 ~LHERunInfo ()
 

Private Member Functions

void init ()
 

Private Attributes

std::vector< std::string > comments
 
std::vector< Headerheaders
 
HEPRUP heprup
 
std::vector< Processprocesses
 
std::vector< ProcessprocessesLumi
 

Detailed Description

Definition at line 25 of file LHERunInfo.h.

Member Enumeration Documentation

Enumerator
kTried 
kSelected 
kKilled 
kAccepted 

Definition at line 66 of file LHERunInfo.h.

Constructor & Destructor Documentation

lhef::LHERunInfo::LHERunInfo ( std::istream &  in)

Definition at line 41 of file LHERunInfo.cc.

lhef::LHERunInfo::LHERunInfo ( const HEPRUP heprup)

Definition at line 79 of file LHERunInfo.cc.

lhef::LHERunInfo::LHERunInfo ( const HEPRUP heprup,
const std::vector< LHERunInfoProduct::Header > &  headers,
const std::vector< std::string > &  comments 
)

Definition at line 85 of file LHERunInfo.cc.

lhef::LHERunInfo::LHERunInfo ( const LHERunInfoProduct product)

Definition at line 98 of file LHERunInfo.cc.

lhef::LHERunInfo::~LHERunInfo ( )

Definition at line 109 of file LHERunInfo.cc.

Member Function Documentation

void lhef::LHERunInfo::addComment ( const std::string &  line)
inline

Definition at line 64 of file LHERunInfo.h.

64 { comments.push_back(line); }
std::vector< std::string > comments
Definition: LHERunInfo.h:168
void lhef::LHERunInfo::addHeader ( const Header header)
inline

Definition at line 63 of file LHERunInfo.h.

63 { headers.push_back(header); }
std::vector< Header > headers
Definition: LHERunInfo.h:167
void lhef::LHERunInfo::count ( int  process,
CountMode  count,
double  eventWeight = 1.0,
double  brWeight = 1.0,
double  matchWeight = 1.0 
)

Definition at line 147 of file LHERunInfo.cc.

std::vector< std::string > lhef::LHERunInfo::findHeader ( const std::string &  tag) const

Definition at line 523 of file LHERunInfo.cc.

const std::vector<std::string>& lhef::LHERunInfo::getComments ( ) const
inline

Definition at line 59 of file LHERunInfo.h.

References comments.

59 { return comments; }
std::vector< std::string > comments
Definition: LHERunInfo.h:168
const std::vector<Header>& lhef::LHERunInfo::getHeaders ( ) const
inline

Definition at line 58 of file LHERunInfo.h.

References headers.

58 { return headers; }
std::vector< Header > headers
Definition: LHERunInfo.h:167
const int lhef::LHERunInfo::getHEPIDWTUP ( ) const
inline

Definition at line 172 of file LHERunInfo.h.

References lhef::HEPRUP::IDWTUP.

172 {return heprup.IDWTUP;}
const HEPRUP* lhef::LHERunInfo::getHEPRUP ( ) const
inline

Definition at line 52 of file LHERunInfo.h.

References heprup.

Referenced by gen::FortranCallback::fillHeader(), ThePEG::LesHouchesInterface::open(), and JetMatchingHook::setLHERunInfo().

52 { return &heprup; }
const std::vector<Process>& lhef::LHERunInfo::getLumiProcesses ( ) const
inline

Definition at line 171 of file LHERunInfo.h.

References processesLumi.

171 {return processesLumi;}
std::vector< Process > processesLumi
Definition: LHERunInfo.h:175
void lhef::LHERunInfo::init ( void  )
private

Definition at line 113 of file LHERunInfo.cc.

void lhef::LHERunInfo::initLumi ( )

Definition at line 125 of file LHERunInfo.cc.

bool lhef::LHERunInfo::operator!= ( const LHERunInfo other) const
inline

Definition at line 55 of file LHERunInfo.h.

56  { return !(*this == other); }
bool lhef::LHERunInfo::operator== ( const LHERunInfo other) const

Definition at line 142 of file LHERunInfo.cc.

std::pair< int, int > lhef::LHERunInfo::pdfSetTranslation ( ) const

Definition at line 635 of file LHERunInfo.cc.

void lhef::LHERunInfo::statistics ( ) const

Definition at line 297 of file LHERunInfo.cc.

LHERunInfo::XSec lhef::LHERunInfo::xsec ( ) const

Definition at line 199 of file LHERunInfo.cc.

Member Data Documentation

std::vector<std::string> lhef::LHERunInfo::comments
private

Definition at line 168 of file LHERunInfo.h.

Referenced by getComments().

std::vector<Header> lhef::LHERunInfo::headers
private

Definition at line 167 of file LHERunInfo.h.

Referenced by getHeaders().

HEPRUP lhef::LHERunInfo::heprup
private

Definition at line 165 of file LHERunInfo.h.

Referenced by getHEPRUP().

std::vector<Process> lhef::LHERunInfo::processes
private

Definition at line 166 of file LHERunInfo.h.

std::vector<Process> lhef::LHERunInfo::processesLumi
private

Definition at line 175 of file LHERunInfo.h.

Referenced by getLumiProcesses().