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 ()
 
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::GenRunInfoProduct ( )

Definition at line 11 of file GenRunInfoProduct.cc.

Member Function Documentation

◆ crossSection()

double GenRunInfoProduct::crossSection ( ) const
inline

◆ externalXSecLO()

const XSec& GenRunInfoProduct::externalXSecLO ( ) const
inline

Definition at line 19 of file GenRunInfoProduct.h.

References externalXSecLO_.

19 { return externalXSecLO_; }

◆ externalXSecNLO()

const XSec& GenRunInfoProduct::externalXSecNLO ( ) const
inline

Definition at line 20 of file GenRunInfoProduct.h.

References externalXSecNLO_.

20 { return externalXSecNLO_; }

◆ filterEfficiency()

double GenRunInfoProduct::filterEfficiency ( ) const
inline

Definition at line 21 of file GenRunInfoProduct.h.

References externalFilterEfficiency_.

21 { return externalFilterEfficiency_; }
double externalFilterEfficiency_

◆ internalXSec()

const XSec& GenRunInfoProduct::internalXSec ( ) const
inline

◆ isProductEqual()

bool GenRunInfoProduct::isProductEqual ( const GenRunInfoProduct other) const

Definition at line 13 of file GenRunInfoProduct.cc.

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

13  {
14  bool result = externalXSecLO_ == other.externalXSecLO_ && externalXSecNLO_ == other.externalXSecNLO_ &&
15  externalFilterEfficiency_ == other.externalFilterEfficiency_;
16  if (not result) {
17  edm::LogWarning("GenRunInfoProduct|ProductsNotMergeable")
18  << "You are merging runs with different cross-sections and/or "
19  "filter efficiencies (from GenRunInfoProduct)\n"
20  "The resulting cross-section will not be consistent."
21  << std::endl;
22  }
23 
24  return result;
25 }
double externalFilterEfficiency_
Log< level::Warning, false > LogWarning

◆ setExternalXSecLO()

void GenRunInfoProduct::setExternalXSecLO ( const XSec xsec)
inline

Definition at line 26 of file GenRunInfoProduct.h.

References externalXSecLO_.

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

26 { externalXSecLO_ = xsec; }

◆ setExternalXSecNLO()

void GenRunInfoProduct::setExternalXSecNLO ( const XSec xsec)
inline

Definition at line 27 of file GenRunInfoProduct.h.

References externalXSecNLO_.

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

27 { externalXSecNLO_ = xsec; }

◆ setFilterEfficiency()

void GenRunInfoProduct::setFilterEfficiency ( double  effic)
inline

Definition at line 28 of file GenRunInfoProduct.h.

References externalFilterEfficiency_.

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

28 { externalFilterEfficiency_ = effic; }
double externalFilterEfficiency_

◆ setInternalXSec()

void GenRunInfoProduct::setInternalXSec ( const XSec xsec)
inline

Member Data Documentation

◆ externalFilterEfficiency_

double GenRunInfoProduct::externalFilterEfficiency_
private

Definition at line 62 of file GenRunInfoProduct.h.

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

◆ externalXSecLO_

XSec GenRunInfoProduct::externalXSecLO_
private

◆ externalXSecNLO_

XSec GenRunInfoProduct::externalXSecNLO_
private

Definition at line 61 of file GenRunInfoProduct.h.

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

◆ internalXSec_

XSec GenRunInfoProduct::internalXSec_
private

Definition at line 60 of file GenRunInfoProduct.h.

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