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.

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 19 of file GenRunInfoProduct.cc.

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

Referenced by crossSection().

19  {
22  if (not result) {
23  edm::LogWarning("GenRunInfoProduct|ProductsNotMergeable")
24  << "You are merging runs with different cross-sections and/or "
25  "filter efficiencies (from GenRunInfoProduct)\n"
26  "The resulting cross-section will not be consistent."
27  << std::endl;
28  }
29 
30  return result;
31 }
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 64 of file GenRunInfoProduct.h.

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

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

Definition at line 63 of file GenRunInfoProduct.h.

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

XSec GenRunInfoProduct::internalXSec_
private

Definition at line 62 of file GenRunInfoProduct.h.

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