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() [1/2]

GenRunInfoProduct::GenRunInfoProduct ( )

Definition at line 11 of file GenRunInfoProduct.cc.

◆ GenRunInfoProduct() [2/2]

GenRunInfoProduct::GenRunInfoProduct ( const GenRunInfoProduct other)

Definition at line 13 of file GenRunInfoProduct.cc.

14  : internalXSec_(other.internalXSec_),
15  externalXSecLO_(other.externalXSecLO_),
16  externalXSecNLO_(other.externalXSecNLO_),
17  externalFilterEfficiency_(other.externalFilterEfficiency_) {}
double externalFilterEfficiency_

Member Function Documentation

◆ crossSection()

double GenRunInfoProduct::crossSection ( ) const
inline

◆ externalXSecLO()

const XSec& GenRunInfoProduct::externalXSecLO ( ) const
inline

Definition at line 20 of file GenRunInfoProduct.h.

References externalXSecLO_.

20 { return externalXSecLO_; }

◆ externalXSecNLO()

const XSec& GenRunInfoProduct::externalXSecNLO ( ) const
inline

Definition at line 21 of file GenRunInfoProduct.h.

References externalXSecNLO_.

21 { return externalXSecNLO_; }

◆ filterEfficiency()

double GenRunInfoProduct::filterEfficiency ( ) const
inline

Definition at line 22 of file GenRunInfoProduct.h.

References externalFilterEfficiency_.

22 { return externalFilterEfficiency_; }
double externalFilterEfficiency_

◆ internalXSec()

const XSec& GenRunInfoProduct::internalXSec ( ) const
inline

◆ isProductEqual()

bool GenRunInfoProduct::isProductEqual ( const GenRunInfoProduct other) const

Definition at line 19 of file GenRunInfoProduct.cc.

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

19  {
20  bool result = externalXSecLO_ == other.externalXSecLO_ && externalXSecNLO_ == other.externalXSecNLO_ &&
21  externalFilterEfficiency_ == other.externalFilterEfficiency_;
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_
Log< level::Warning, false > LogWarning

◆ setExternalXSecLO()

void GenRunInfoProduct::setExternalXSecLO ( const XSec xsec)
inline

Definition at line 27 of file GenRunInfoProduct.h.

References externalXSecLO_.

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

27 { externalXSecLO_ = xsec; }

◆ setExternalXSecNLO()

void GenRunInfoProduct::setExternalXSecNLO ( const XSec xsec)
inline

Definition at line 28 of file GenRunInfoProduct.h.

References externalXSecNLO_.

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

28 { externalXSecNLO_ = xsec; }

◆ setFilterEfficiency()

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_

◆ setInternalXSec()

void GenRunInfoProduct::setInternalXSec ( const XSec xsec)
inline

Member Data Documentation

◆ externalFilterEfficiency_

double GenRunInfoProduct::externalFilterEfficiency_
private

Definition at line 64 of file GenRunInfoProduct.h.

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

◆ externalXSecLO_

XSec GenRunInfoProduct::externalXSecLO_
private

◆ externalXSecNLO_

XSec GenRunInfoProduct::externalXSecNLO_
private

Definition at line 63 of file GenRunInfoProduct.h.

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

◆ internalXSec_

XSec GenRunInfoProduct::internalXSec_
private

Definition at line 62 of file GenRunInfoProduct.h.

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