CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
GenRunInfoProduct Class Reference

#include <GenRunInfoProduct.h>

Classes

struct  XSec
 

Public Member Functions

double crossSection () const
 
const XSecexternalXSecLO () const
 
const XSecexternalXSecNLO () const
 
double filterEfficiency () const
 
 GenRunInfoProduct ()
 
 GenRunInfoProduct (const GenRunInfoProduct &other)
 
const XSecinternalXSec () const
 
bool isProductEqual (const GenRunInfoProduct &other) const
 
void setExternalXSecLO (const XSec &xsec)
 
void setExternalXSecNLO (const XSec &xsec)
 
void setFilterEfficiency (double effic)
 
void setInternalXSec (const XSec &xsec)
 

Private Attributes

double externalFilterEfficiency_
 
XSec externalXSecLO_
 
XSec externalXSecNLO_
 
XSec internalXSec_
 

Detailed Description

Definition at line 8 of file GenRunInfoProduct.h.

Constructor & Destructor Documentation

GenRunInfoProduct::GenRunInfoProduct ( )

Definition at line 11 of file GenRunInfoProduct.cc.

11  :
13 {
14 }
double externalFilterEfficiency_
GenRunInfoProduct::GenRunInfoProduct ( const GenRunInfoProduct other)

Member Function Documentation

double GenRunInfoProduct::crossSection ( ) const
inline
const XSec& GenRunInfoProduct::externalXSecLO ( ) const
inline

Definition at line 20 of file GenRunInfoProduct.h.

References externalXSecLO_.

20 { return externalXSecLO_; }
const XSec& GenRunInfoProduct::externalXSecNLO ( ) const
inline

Definition at line 21 of file GenRunInfoProduct.h.

References externalXSecNLO_.

21 { return externalXSecNLO_; }
double GenRunInfoProduct::filterEfficiency ( ) const
inline

Definition at line 22 of file GenRunInfoProduct.h.

References externalFilterEfficiency_.

22 { return externalFilterEfficiency_; }
double externalFilterEfficiency_
const XSec& GenRunInfoProduct::internalXSec ( ) const
inline
bool GenRunInfoProduct::isProductEqual ( const GenRunInfoProduct other) const

Definition at line 24 of file GenRunInfoProduct.cc.

References externalFilterEfficiency_, externalXSecLO_, externalXSecNLO_, and mps_fire::result.

Referenced by crossSection().

25 {
26  bool result = externalXSecLO_ == other.externalXSecLO_ &&
29  if( not result) {
30  edm::LogWarning("GenRunInfoProduct|ProductsNotMergeable")
31  << "You are merging runs with different cross-sections and/or "
32  "filter efficiencies (from GenRunInfoProduct)\n"
33  "The resulting cross-section will not be consistent." << std::endl;
34  }
35 
36  return result;
37 }
double externalFilterEfficiency_
void GenRunInfoProduct::setExternalXSecLO ( const XSec xsec)
inline
void GenRunInfoProduct::setExternalXSecNLO ( const XSec xsec)
inline
void GenRunInfoProduct::setFilterEfficiency ( double  effic)
inline

Definition at line 29 of file GenRunInfoProduct.h.

References externalFilterEfficiency_.

Referenced by gen::BaseHadronizer::BaseHadronizer().

29 { externalFilterEfficiency_ = effic; }
double externalFilterEfficiency_
void GenRunInfoProduct::setInternalXSec ( const XSec xsec)
inline

Member Data Documentation

double GenRunInfoProduct::externalFilterEfficiency_
private

Definition at line 68 of file GenRunInfoProduct.h.

Referenced by filterEfficiency(), isProductEqual(), and setFilterEfficiency().

XSec GenRunInfoProduct::externalXSecLO_
private
XSec GenRunInfoProduct::externalXSecNLO_
private

Definition at line 67 of file GenRunInfoProduct.h.

Referenced by externalXSecNLO(), isProductEqual(), and setExternalXSecNLO().

XSec GenRunInfoProduct::internalXSec_
private

Definition at line 66 of file GenRunInfoProduct.h.

Referenced by crossSection(), internalXSec(), and setInternalXSec().